Remove all super(); calls (#5009)

by calling:
  sed -i "/super();/d" $(git grep -l "super();")
This commit is contained in:
Дилян Палаузов
2025-09-07 13:17:48 +02:00
committed by GitHub
parent 459064fe5b
commit 961de1a2ca
49 changed files with 0 additions and 52 deletions
@@ -33,7 +33,6 @@ public class AudioException extends Exception {
* Constructs a new exception with null as its detail message.
*/
public AudioException() {
super();
}
/**
@@ -98,7 +98,6 @@ public class AudioServlet extends HttpServlet implements AudioHTTPServer {
@Activate
public AudioServlet(@Reference AudioSinkUtils audioSinkUtils) {
super();
this.audioSinkUtils = audioSinkUtils;
}
@@ -27,7 +27,6 @@ public class SimpleRuleActionHandlerDelegate extends SimpleActionHandler {
private SimpleRuleActionHandler handler;
public SimpleRuleActionHandlerDelegate(SimpleRuleActionHandler handler) {
super();
this.handler = handler;
}
@@ -27,7 +27,6 @@ public class ScriptEngineContainer {
private String identifier;
public ScriptEngineContainer(ScriptEngine scriptEngine, ScriptEngineFactory factory, String identifier) {
super();
this.scriptEngine = scriptEngine;
this.factory = factory;
this.identifier = identifier;
@@ -30,7 +30,6 @@ public class ActionBuilder extends ModuleBuilder<ActionBuilder, Action> {
private @Nullable Map<String, String> inputs;
protected ActionBuilder() {
super();
}
protected ActionBuilder(final Action action) {
@@ -30,7 +30,6 @@ public class ConditionBuilder extends ModuleBuilder<ConditionBuilder, Condition>
private @Nullable Map<String, String> inputs;
protected ConditionBuilder() {
super();
}
protected ConditionBuilder(final Condition condition) {
@@ -25,7 +25,6 @@ import org.openhab.core.automation.internal.TriggerImpl;
public class TriggerBuilder extends ModuleBuilder<TriggerBuilder, Trigger> {
protected TriggerBuilder() {
super();
}
protected TriggerBuilder(final Trigger condition) {
@@ -24,7 +24,6 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
public final class ConfigDescriptionParameterValidatorFactory {
private ConfigDescriptionParameterValidatorFactory() {
super();
}
/**
@@ -33,7 +33,6 @@ final class TypeIntrospections {
);
private TypeIntrospections() {
super();
}
/**
@@ -38,7 +38,6 @@ public final class ConfigStatusInfo {
* Creates a new {@link ConfigStatusInfo}.
*/
public ConfigStatusInfo() {
super();
}
/**
@@ -32,7 +32,6 @@ public abstract class ConfigStatusSource {
* @param entityId the id of the entity whose new configuration status is to be propagated
*/
public ConfigStatusSource(String entityId) {
super();
this.entityId = entityId;
}
@@ -28,7 +28,6 @@ public class ConversionException extends Exception {
private static final long serialVersionUID = 1L;
public ConversionException() {
super();
}
public ConversionException(String message) {
@@ -42,7 +42,6 @@ public class TokenResponseDTO {
*/
public TokenResponseDTO(String access_token, String token_type, Integer expires_in, String refresh_token,
String scope, User user) {
super();
this.access_token = access_token;
this.token_type = token_type;
this.expires_in = expires_in;
@@ -25,7 +25,6 @@ public class UserApiTokenDTO {
public String scope;
public UserApiTokenDTO(String name, Date createdTime, String scope) {
super();
this.name = name;
this.createdTime = createdTime;
this.scope = scope;
@@ -26,7 +26,6 @@ public class UserDTO {
public Collection<String> roles;
public UserDTO(User user) {
super();
this.name = user.getName();
this.roles = user.getRoles();
}
@@ -27,7 +27,6 @@ public class UserSessionDTO {
public String scope;
public UserSessionDTO(String sessionId, Date createdTime, Date lastRefreshTime, String clientId, String scope) {
super();
this.sessionId = sessionId;
this.createdTime = createdTime;
this.lastRefreshTime = lastRefreshTime;
@@ -29,7 +29,6 @@ public class AddonServiceDTO {
Set<AddonType> addonTypes;
public AddonServiceDTO(String id, String name, Set<AddonType> addonTypes) {
super();
this.id = id;
this.name = name;
this.addonTypes = addonTypes;
@@ -29,7 +29,6 @@ public class TileDTO {
public String imageUrl;
public TileDTO(String name, String url, @Nullable String overlay, String imageUrl) {
super();
this.name = name;
this.url = url;
this.overlay = overlay;
@@ -58,7 +58,6 @@ public class ModbusWriteCoilRequestBlueprint extends ModbusWriteRequestBlueprint
*/
public ModbusWriteCoilRequestBlueprint(int slaveId, int reference, BitArray data, boolean writeMultiple,
int maxTries) {
super();
this.slaveId = slaveId;
this.reference = reference;
this.bits = data;
@@ -43,7 +43,6 @@ public class ModbusWriteRegisterRequestBlueprint extends ModbusWriteRequestBluep
*/
public ModbusWriteRegisterRequestBlueprint(int slaveId, int reference, ModbusRegisterArray registers,
boolean writeMultiple, int maxTries) throws IllegalArgumentException {
super();
this.slaveId = slaveId;
this.reference = reference;
this.registers = registers;
@@ -35,7 +35,6 @@ public class BasicWriteTask implements WriteTask {
public BasicWriteTask(ModbusSlaveEndpoint endpoint, ModbusWriteRequestBlueprint request,
ModbusWriteCallback resultCallback, ModbusFailureCallback<ModbusWriteRequestBlueprint> failureCallback) {
super();
this.endpoint = endpoint;
this.request = request;
this.resultCallback = resultCallback;
@@ -28,7 +28,6 @@ public class ModbusResponseImpl implements ModbusResponse {
private int responseFunctionCode;
public ModbusResponseImpl(ModbusMessage response) {
super();
this.responseFunctionCode = response.getFunctionCode();
}
@@ -28,7 +28,6 @@ public class UnsupportedCommOperationException extends Exception {
private static final long serialVersionUID = 1L;
public UnsupportedCommOperationException() {
super();
}
public UnsupportedCommOperationException(Throwable cause) {
@@ -65,7 +65,6 @@ public class YamlItemFileConverter extends AbstractItemFileGenerator {
@Activate
public YamlItemFileConverter(final @Reference YamlModelRepository modelRepository,
final @Reference ConfigDescriptionRegistry configDescRegistry) {
super();
this.modelRepository = modelRepository;
this.configDescriptionRegistry = configDescRegistry;
}
@@ -30,7 +30,6 @@ public class ChannelGroupUID extends UID {
* class by reflection. Not intended to be used for normal instantiation.
*/
ChannelGroupUID() {
super();
}
/**
@@ -39,7 +39,6 @@ public class ChannelUID extends UID {
* class by reflection. Not intended to be used for normal instantiation.
*/
ChannelUID() {
super();
}
/**
@@ -28,7 +28,6 @@ public class ThingTypeUID extends UID {
* class by reflection. Not intended to be used for normal instantiation.
*/
ThingTypeUID() {
super();
}
public ThingTypeUID(String uid) {
@@ -34,7 +34,6 @@ public class ThingUID extends UID {
* class by reflection. Not intended to be used for normal instantiation.
*/
ThingUID() {
super();
}
/**
@@ -35,7 +35,6 @@ public abstract class UID extends AbstractUID {
* Constructor must be public, otherwise it cannot be called by subclasses from another package.
*/
public UID() {
super();
}
/**
@@ -36,7 +36,6 @@ public class ItemChannelLink extends AbstractLink {
* class by reflection. Not intended to be used for normal instantiation.
*/
ItemChannelLink() {
super();
this.channelUID = null;
this.configuration = new Configuration();
}
@@ -30,7 +30,6 @@ public class ChannelTypeUID extends UID {
* class by reflection. Not intended to be used for normal instantiation.
*/
ChannelTypeUID() {
super();
}
/**
@@ -50,7 +50,6 @@ public class UIComponent {
* @param componentType type of the component as known to the frontend
*/
public UIComponent(String componentType) {
super();
this.component = componentType;
this.config = new HashMap<>();
}
@@ -37,7 +37,6 @@ public class AsyncProxyServlet extends org.eclipse.jetty.proxy.AsyncProxyServlet
private final ProxyServletService service;
AsyncProxyServlet(ProxyServletService service) {
super();
this.service = service;
}
@@ -55,7 +55,6 @@ public class BlockingProxyServlet extends HttpServlet {
private static final int TIMEOUT = 15000;
BlockingProxyServlet(ProxyServletService service) {
super();
this.service = service;
if (!httpClient.isStarted()) {
try {
@@ -31,7 +31,6 @@ public class KSException extends Exception {
* Constructs a new exception with null as its detail message.
*/
public KSException() {
super();
}
/**
@@ -31,7 +31,6 @@ public class STTException extends Exception {
* Constructs a new exception with null as its detail message.
*/
public STTException() {
super();
}
/**
@@ -31,7 +31,6 @@ public class TTSException extends Exception {
* Constructs a new exception with null as its detail message.
*/
public TTSException() {
super();
}
/**
@@ -32,7 +32,6 @@ final class ExpressionAlternatives extends Expression {
* @param subExpressions the sub expressions that are tried/parsed as alternatives in the given order
*/
public ExpressionAlternatives(Expression... subExpressions) {
super();
this.subExpressions = List.of(Arrays.copyOf(subExpressions, subExpressions.length));
}
@@ -42,7 +42,6 @@ public final class ExpressionIdentifier extends Expression {
* @param stopper Expression that should not match, if the current token should be accepted as identifier
*/
public ExpressionIdentifier(AbstractRuleBasedInterpreter interpreter, Expression stopper) {
super();
this.interpreter = interpreter;
this.stopper = stopper;
}
@@ -58,7 +58,6 @@ public final class ExpressionLet extends Expression {
* @param tag the tag that should be set on the node. Null, if the node's tag should not be changed.
*/
public ExpressionLet(String name, Expression subExpression, Object value, Object tag) {
super();
if (name != null) {
this.name = name;
}
@@ -30,7 +30,6 @@ public final class ExpressionMatch extends Expression {
* @param pattern the token that has to match for successful parsing
*/
public ExpressionMatch(String pattern) {
super();
this.pattern = pattern;
}
@@ -32,7 +32,6 @@ public final class ExpressionSequence extends Expression {
* @param subExpressions the sub expressions that are parsed in the given order
*/
public ExpressionSequence(Expression... subExpressions) {
super();
this.subExpressions = List.of(Arrays.copyOf(subExpressions, subExpressions.length));
}
@@ -48,7 +48,6 @@ public final class InterpretationResult {
* @param response the textual response. Should be short, localized and understandable by non-technical users.
*/
public InterpretationResult(String response) {
super();
this.response = response;
this.success = true;
}
@@ -59,7 +58,6 @@ public final class InterpretationResult {
* @param exception the responsible exception
*/
public InterpretationResult(InterpretationException exception) {
super();
this.exception = exception;
this.success = false;
}
@@ -71,7 +69,6 @@ public final class InterpretationResult {
* @param response the textual response. Should be short, localized and understandable by non-technical users.
*/
public InterpretationResult(boolean success, String response) {
super();
this.success = success;
this.response = response;
}
@@ -44,7 +44,6 @@ public class ManagedUser implements User {
* @param passwordHash the result of the hashing of the salted password
*/
public ManagedUser(String name, String passwordSalt, String passwordHash) {
super();
this.name = name;
this.passwordSalt = passwordSalt;
this.passwordHash = passwordHash;
@@ -54,7 +54,6 @@ public class PendingToken {
*/
public PendingToken(String authorizationCode, String clientId, String redirectUri, String scope,
@Nullable String codeChallenge, @Nullable String codeChallengeMethod) {
super();
this.authorizationCode = authorizationCode;
this.clientId = clientId;
this.redirectUri = redirectUri;
@@ -44,7 +44,6 @@ public class UserSession {
* @param scope the granted scope provided when the client was authorized by the user
*/
public UserSession(String sessionId, String refreshToken, String clientId, String redirectUri, String scope) {
super();
this.sessionId = sessionId;
this.refreshToken = refreshToken;
this.createdTime = new Date();
@@ -82,7 +82,6 @@ public class WrappedScheduledExecutorService extends ScheduledThreadPoolExecutor
private final Runnable runnable;
protected TimedRunnable(@Nullable Runnable runnable) {
super();
this.runnable = Objects.requireNonNull(runnable);
}
@@ -104,7 +103,6 @@ public class WrappedScheduledExecutorService extends ScheduledThreadPoolExecutor
private final Callable<V> callable;
protected TimedCallable(@Nullable Callable<V> callable) {
super();
this.callable = Objects.requireNonNull(callable);
}
@@ -29,7 +29,6 @@ public final class MetadataKey extends AbstractUID {
* !!! DO NOT REMOVE - Gson needs it !!!
*/
MetadataKey() {
super();
}
/**
@@ -43,7 +43,6 @@ public class TestModuleTypeProvider implements ModuleTypeProvider {
public static final String CONDITION_TYPE = "conditionTypeUID";
public TestModuleTypeProvider() {
super();
}
private TriggerType createTriggerType() {