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