mirror of
https://github.com/danieldemus/openhab-core.git
synced 2026-07-29 12:34:22 +02:00
Remove all super(); calls (#5009)
by calling: sed -i "/super();/d" $(git grep -l "super();")
This commit is contained in:
-1
@@ -33,7 +33,6 @@ public class AudioException extends Exception {
|
||||
* Constructs a new exception with null as its detail message.
|
||||
*/
|
||||
public AudioException() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
-1
@@ -98,7 +98,6 @@ public class AudioServlet extends HttpServlet implements AudioHTTPServer {
|
||||
|
||||
@Activate
|
||||
public AudioServlet(@Reference AudioSinkUtils audioSinkUtils) {
|
||||
super();
|
||||
this.audioSinkUtils = audioSinkUtils;
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -27,7 +27,6 @@ public class SimpleRuleActionHandlerDelegate extends SimpleActionHandler {
|
||||
private SimpleRuleActionHandler handler;
|
||||
|
||||
public SimpleRuleActionHandlerDelegate(SimpleRuleActionHandler handler) {
|
||||
super();
|
||||
this.handler = handler;
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -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) {
|
||||
|
||||
-1
@@ -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) {
|
||||
|
||||
-1
@@ -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) {
|
||||
|
||||
-1
@@ -24,7 +24,6 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
public final class ConfigDescriptionParameterValidatorFactory {
|
||||
|
||||
private ConfigDescriptionParameterValidatorFactory() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
-1
@@ -33,7 +33,6 @@ final class TypeIntrospections {
|
||||
);
|
||||
|
||||
private TypeIntrospections() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
-1
@@ -38,7 +38,6 @@ public final class ConfigStatusInfo {
|
||||
* Creates a new {@link ConfigStatusInfo}.
|
||||
*/
|
||||
public ConfigStatusInfo() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -28,7 +28,6 @@ public class ConversionException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public ConversionException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public ConversionException(String message) {
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -26,7 +26,6 @@ public class UserDTO {
|
||||
public Collection<String> roles;
|
||||
|
||||
public UserDTO(User user) {
|
||||
super();
|
||||
this.name = user.getName();
|
||||
this.roles = user.getRoles();
|
||||
}
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -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;
|
||||
|
||||
-1
@@ -28,7 +28,6 @@ public class ModbusResponseImpl implements ModbusResponse {
|
||||
private int responseFunctionCode;
|
||||
|
||||
public ModbusResponseImpl(ModbusMessage response) {
|
||||
super();
|
||||
this.responseFunctionCode = response.getFunctionCode();
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -28,7 +28,6 @@ public class UnsupportedCommOperationException extends Exception {
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
public UnsupportedCommOperationException() {
|
||||
super();
|
||||
}
|
||||
|
||||
public UnsupportedCommOperationException(Throwable cause) {
|
||||
|
||||
-1
@@ -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;
|
||||
}
|
||||
|
||||
-1
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
-1
@@ -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();
|
||||
}
|
||||
|
||||
-1
@@ -30,7 +30,6 @@ public class ChannelTypeUID extends UID {
|
||||
* class by reflection. Not intended to be used for normal instantiation.
|
||||
*/
|
||||
ChannelTypeUID() {
|
||||
super();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
-1
@@ -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<>();
|
||||
}
|
||||
|
||||
-1
@@ -37,7 +37,6 @@ public class AsyncProxyServlet extends org.eclipse.jetty.proxy.AsyncProxyServlet
|
||||
private final ProxyServletService service;
|
||||
|
||||
AsyncProxyServlet(ProxyServletService service) {
|
||||
super();
|
||||
this.service = service;
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
-1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -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;
|
||||
}
|
||||
|
||||
-1
@@ -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;
|
||||
}
|
||||
|
||||
-1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
-1
@@ -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));
|
||||
}
|
||||
|
||||
|
||||
-3
@@ -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();
|
||||
|
||||
-2
@@ -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();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
-1
@@ -43,7 +43,6 @@ public class TestModuleTypeProvider implements ModuleTypeProvider {
|
||||
public static final String CONDITION_TYPE = "conditionTypeUID";
|
||||
|
||||
public TestModuleTypeProvider() {
|
||||
super();
|
||||
}
|
||||
|
||||
private TriggerType createTriggerType() {
|
||||
|
||||
Reference in New Issue
Block a user