Remove unnecessary semicolons (#16214)

This helps with stopping the proliferation of unnecessary semicolons.

Signed-off-by: Wouter Born <github@maindrain.net>
Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
Wouter Born 2024-01-05 23:56:58 +01:00 committed by Ciprian Pascu
parent 5b1e3c70ef
commit 9c6c475a1c
44 changed files with 56 additions and 56 deletions

View File

@ -802,4 +802,4 @@ public class AirqHandler extends BaseThingHandler {
} }
} }
} }
}; }

View File

@ -129,7 +129,7 @@ public class SmartHomeDevicesDiscovery extends AbstractDiscoveryService {
if (activateTimeStamp == null) { if (activateTimeStamp == null) {
this.activateTimeStamp = new Date().getTime(); this.activateTimeStamp = new Date().getTime();
} }
}; }
synchronized void setSmartHomeDevices(List<SmartHomeBaseDevice> deviceList) { synchronized void setSmartHomeDevices(List<SmartHomeBaseDevice> deviceList) {
int smartHomeDeviceDiscoveryMode = accountHandler.getSmartHomeDevicesDiscoveryMode(); int smartHomeDeviceDiscoveryMode = accountHandler.getSmartHomeDevicesDiscoveryMode();

View File

@ -23,4 +23,4 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
public enum CaddxDirection { public enum CaddxDirection {
IN, IN,
OUT OUT
}; }

View File

@ -26,4 +26,4 @@ public enum CaddxSource {
KEYPAD, KEYPAD,
PARTITION, PARTITION,
ZONE ZONE
}; }

View File

@ -1155,7 +1155,7 @@ public enum EcoTouchTags {
Bitfield, Bitfield,
Float, Float,
Enum Enum
}; }
/** /**
* The format of the response of the heat pump * The format of the response of the heat pump

View File

@ -42,7 +42,7 @@ public class FoobotAccountHandlerTest {
} catch (IOException e) { } catch (IOException e) {
throw new AssertionError(e.getMessage()); throw new AssertionError(e.getMessage());
} }
}; }
}; };
private final FoobotAccountHandler handler = new FoobotAccountHandler(bridge, connector); private final FoobotAccountHandler handler = new FoobotAccountHandler(bridge, connector);

View File

@ -45,7 +45,7 @@ public class FoobotDeviceHandlerTest {
} catch (IOException e) { } catch (IOException e) {
throw new AssertionError(e.getMessage()); throw new AssertionError(e.getMessage());
} }
}; }
}; };
private final FoobotDeviceHandler handler = new FoobotDeviceHandler(thing, connector); private final FoobotDeviceHandler handler = new FoobotDeviceHandler(thing, connector);

View File

@ -119,7 +119,7 @@ public class GroupePSAHandler extends BaseThingHandler {
} else { } else {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_OFFLINE); updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_OFFLINE);
} }
}; }
@Override @Override
public void handleCommand(ChannelUID channelUID, Command command) { public void handleCommand(ChannelUID channelUID, Command command) {

View File

@ -30,7 +30,7 @@ import org.eclipse.jdt.annotation.Nullable;
public abstract class ListUtil { public abstract class ListUtil {
private ListUtil() { private ListUtil() {
}; }
/** /**
* Replace entries in the given originalList with entries from replacements, if the have an equal key. * Replace entries in the given originalList with entries from replacements, if the have an equal key.

View File

@ -63,7 +63,7 @@ public class InsteonCommandExtension extends AbstractConsoleCommandExtension imp
STANDARD, STANDARD,
EXTENDED, EXTENDED,
EXTENDED_2 EXTENDED_2
}; }
@Nullable @Nullable
private InsteonNetworkHandler handler; private InsteonNetworkHandler handler;

View File

@ -41,7 +41,7 @@ public class DeviceFeatureListener {
public enum StateChangeType { public enum StateChangeType {
ALWAYS, ALWAYS,
CHANGED CHANGED
}; }
private String itemName; private String itemName;
private ChannelUID channelUID; private ChannelUID channelUID;

View File

@ -90,7 +90,7 @@ public class GroupMessageStateMachine {
BCAST, BCAST,
CLEAN, CLEAN,
SUCCESS SUCCESS
}; }
/** /**
* The state of the machine (i.e. what message we are expecting next). * The state of the machine (i.e. what message we are expecting next).
@ -100,7 +100,7 @@ public class GroupMessageStateMachine {
EXPECT_BCAST, EXPECT_BCAST,
EXPECT_CLEAN, EXPECT_CLEAN,
EXPECT_SUCCESS EXPECT_SUCCESS
}; }
private State state = State.EXPECT_BCAST; private State state = State.EXPECT_BCAST;
private long lastUpdated = 0; private long lastUpdated = 0;

View File

@ -336,4 +336,4 @@ public class MQTTProtocol {
public String robotid; public String robotid;
public String hostname; public String hostname;
} }
}; }

View File

@ -56,7 +56,7 @@ public class IPClient extends AbstractKNXClient {
ROUTER, ROUTER,
SECURE_TUNNEL, SECURE_TUNNEL,
SECURE_ROUTER SECURE_ROUTER
}; }
private final Logger logger = LoggerFactory.getLogger(IPClient.class); private final Logger logger = LoggerFactory.getLogger(IPClient.class);

View File

@ -36,7 +36,7 @@ public class ZoneStatus extends AbstractMessageBody {
@SerializedName("FanSpeed") @SerializedName("FanSpeed")
public FanSpeedType fanSpeed; public FanSpeedType fanSpeed;
@SerializedName("Zone") @SerializedName("Zone")
public Href zone = new Href();; public Href zone = new Href();
@SerializedName("StatusAccuracy") @SerializedName("StatusAccuracy")
public String statusAccuracy = ""; // "Good" or ?? public String statusAccuracy = ""; // "Good" or ??

View File

@ -55,24 +55,24 @@ public class ResponseFieldDTO {
@SerializedName("nom_dept") @SerializedName("nom_dept")
private String nomDept = ""; private String nomDept = "";
@SerializedName("etat_grand_froid") @SerializedName("etat_grand_froid")
private AlertLevel grandFroid = AlertLevel.UNKNOWN;; private AlertLevel grandFroid = AlertLevel.UNKNOWN;
@SerializedName("noversion") @SerializedName("noversion")
private String noVersion = ""; private String noVersion = "";
@SerializedName("etat_pluie_inondation") @SerializedName("etat_pluie_inondation")
private AlertLevel pluieInondation = AlertLevel.UNKNOWN;; private AlertLevel pluieInondation = AlertLevel.UNKNOWN;
@SerializedName("etat_neige") @SerializedName("etat_neige")
private AlertLevel neige = AlertLevel.UNKNOWN;; private AlertLevel neige = AlertLevel.UNKNOWN;
@SerializedName("etat_vent") @SerializedName("etat_vent")
private AlertLevel vent = AlertLevel.UNKNOWN;; private AlertLevel vent = AlertLevel.UNKNOWN;
@SerializedName("etat_inondation") @SerializedName("etat_inondation")
private AlertLevel inondation = AlertLevel.UNKNOWN;; private AlertLevel inondation = AlertLevel.UNKNOWN;
@SerializedName("etat_avalanches") @SerializedName("etat_avalanches")
private AlertLevel avalanches = AlertLevel.UNKNOWN;; private AlertLevel avalanches = AlertLevel.UNKNOWN;
@SerializedName("etat_orage") @SerializedName("etat_orage")
private AlertLevel orage = AlertLevel.UNKNOWN; private AlertLevel orage = AlertLevel.UNKNOWN;
private int echeance; private int echeance;
@SerializedName("etat_vague_submersion") @SerializedName("etat_vague_submersion")
private AlertLevel vagueSubmersion = AlertLevel.UNKNOWN;; private AlertLevel vagueSubmersion = AlertLevel.UNKNOWN;
private String dep = ""; private String dep = "";
@SerializedName("vigilancecommentaire_texte") @SerializedName("vigilancecommentaire_texte")
private String vigilanceComment = ""; private String vigilanceComment = "";

View File

@ -114,7 +114,7 @@ public abstract class MiIoAbstractHandler extends BaseThingHandler implements Mi
return "id:" + ret; return "id:" + ret;
} }
return "failed"; return "failed";
});; });
protected static final long CACHE_EXPIRY = TimeUnit.SECONDS.toMillis(5); protected static final long CACHE_EXPIRY = TimeUnit.SECONDS.toMillis(5);
protected static final long CACHE_EXPIRY_NETWORK = TimeUnit.SECONDS.toMillis(60); protected static final long CACHE_EXPIRY_NETWORK = TimeUnit.SECONDS.toMillis(60);

View File

@ -49,7 +49,7 @@ public abstract class RouterosInterfaceBase extends RouterosBaseData {
public String getApiType() { public String getApiType() {
return getDesignedType().toString(); return getDesignedType().toString();
}; }
public boolean validate() { public boolean validate() {
return getDesignedType() == this.type; return getDesignedType() == this.type;

View File

@ -45,7 +45,7 @@ public class MessageSpeak extends BaseMessage {
public String utterance = ""; public String utterance = "";
@SerializedName("expect_response") @SerializedName("expect_response")
public String expectResponse = ""; public String expectResponse = "";
}; }
public static class Context { public static class Context {
@SerializedName("client_name") @SerializedName("client_name")

View File

@ -51,7 +51,7 @@ public abstract class Shape extends Panel {
public int getOrientation() { public int getOrientation() {
return orientation; return orientation;
}; }
protected int getPanelId() { protected int getPanelId() {
return panelId; return panelId;

View File

@ -304,7 +304,7 @@ public abstract class NhcThermostat {
logger.debug("Thermostat mode {} not recognized, default to Day mode", mode); logger.debug("Thermostat mode {} not recognized, default to Day mode", mode);
} }
executeMode(intMode); executeMode(intMode);
}; }
/** /**
* Sends thermostat setpoint to Niko Home Control. This method is implemented in {@link NhcThermostat1} and * Sends thermostat setpoint to Niko Home Control. This method is implemented in {@link NhcThermostat1} and

View File

@ -204,12 +204,12 @@ public abstract class NikoHomeControlCommunication {
* *
*/ */
public void startEnergyMeter(String energyMeterId) { public void startEnergyMeter(String energyMeterId) {
}; }
/** /**
* Stop retrieving energy meter data from Niko Home Control. * Stop retrieving energy meter data from Niko Home Control.
* *
*/ */
public void stopEnergyMeter(String energyMeterId) { public void stopEnergyMeter(String energyMeterId) {
}; }
} }

View File

@ -363,7 +363,7 @@ public class ThermostatHandler extends BaseThingHandler {
map.put(8, "boost"); map.put(8, "boost");
map.put(9, "eco"); map.put(9, "eco");
return map; return map;
}; }
private static Map<String, Integer> createRegulationReverseMap() { private static Map<String, Integer> createRegulationReverseMap() {
HashMap<String, Integer> map = new HashMap<>(); HashMap<String, Integer> map = new HashMap<>();
@ -375,7 +375,7 @@ public class ThermostatHandler extends BaseThingHandler {
map.put("boost", 8); map.put("boost", 8);
map.put("eco", 9); map.put("eco", 9);
return map; return map;
}; }
private Map<String, Consumer<ThermostatModel>> createChannelRefreshActionMap() { private Map<String, Consumer<ThermostatModel>> createChannelRefreshActionMap() {
HashMap<String, Consumer<ThermostatModel>> map = new HashMap<>(); HashMap<String, Consumer<ThermostatModel>> map = new HashMap<>();

View File

@ -116,7 +116,7 @@ public class OpenWebNetAlarmHandler extends OpenWebNetThingHandler {
@Override @Override
protected long getRefreshAllLastTS() { protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS; return lastAllDevicesRefreshTS;
}; }
@Override @Override
protected void refreshDevice(boolean refreshAll) { protected void refreshDevice(boolean refreshAll) {

View File

@ -155,7 +155,7 @@ public class OpenWebNetAutomationHandler extends OpenWebNetThingHandler {
@Override @Override
protected long getRefreshAllLastTS() { protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS; return lastAllDevicesRefreshTS;
}; }
@Override @Override
protected void refreshDevice(boolean refreshAll) { protected void refreshDevice(boolean refreshAll) {

View File

@ -95,7 +95,7 @@ public class OpenWebNetLightingHandler extends OpenWebNetThingHandler {
@Override @Override
protected long getRefreshAllLastTS() { protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS; return lastAllDevicesRefreshTS;
}; }
@Override @Override
protected void refreshDevice(boolean refreshAll) { protected void refreshDevice(boolean refreshAll) {

View File

@ -380,7 +380,7 @@ public class OpenWebNetScenarioHandler extends OpenWebNetThingHandler {
@Override @Override
protected long getRefreshAllLastTS() { protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS; return lastAllDevicesRefreshTS;
}; }
@Override @Override
protected void refreshDevice(boolean refreshAll) { protected void refreshDevice(boolean refreshAll) {

View File

@ -251,7 +251,7 @@ public abstract class OpenWebNetThingHandler extends BaseThingHandler {
*/ */
protected long getRefreshAllLastTS() { protected long getRefreshAllLastTS() {
return -1; return -1;
}; }
/** /**
* Refresh all devices for this handler * Refresh all devices for this handler

View File

@ -296,5 +296,5 @@ public class PulseAudioAudioSource extends PulseaudioSimpleProtocolStream implem
closed = true; closed = true;
input.close(); input.close();
} }
}; }
} }

View File

@ -270,7 +270,7 @@ public final class QbusCommunication extends BaseThingHandler {
qbusListenerRunning = false; qbusListenerRunning = false;
logger.trace("Event listener thread stopped on thread {}", Thread.currentThread().getId()); logger.trace("Event listener thread stopped on thread {}", Thread.currentThread().getId());
}; }
/** /**
* Called by other methods to send json data to Qbus. * Called by other methods to send json data to Qbus.

View File

@ -149,7 +149,7 @@ public class SenseBoxHandler extends BaseThingHandler {
} else { } else {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR); updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR);
} }
}; }
private void startAutomaticRefresh() { private void startAutomaticRefresh() {
stopAutomaticRefresh(); stopAutomaticRefresh();

View File

@ -60,7 +60,7 @@ public abstract class BaseSensorHandler extends BaseThingHandler {
SENSOR_IS_NULL, SENSOR_IS_NULL,
SENSOR_ID_NEGATIVE, SENSOR_ID_NEGATIVE,
UNKNOWN UNKNOWN
}; }
public enum UpdateStatus { public enum UpdateStatus {
OK, OK,

View File

@ -954,7 +954,7 @@ public class Shelly1ApiJsonDTO {
public static class ShellySensorBat { public static class ShellySensorBat {
public Double value; // estimated remaining battery capacity in % public Double value; // estimated remaining battery capacity in %
public Double voltage; // battery voltage public Double voltage; // battery voltage
}; }
// Door/Window sensor // Door/Window sensor
public static class ShellySensorState { public static class ShellySensorState {

View File

@ -21,7 +21,7 @@ public abstract class AbstractMessage implements Serializable {
Enc7, Enc7,
Enc8, Enc8,
EncUcs2, EncUcs2,
EncCustom; EncCustom
} }
public enum DcsClass { public enum DcsClass {

View File

@ -68,11 +68,11 @@ public interface InverterData {
default double getBatteryVoltage() { default double getBatteryVoltage() {
return Short.MIN_VALUE; return Short.MIN_VALUE;
}; }
default double getBatteryCurrent() { default double getBatteryCurrent() {
return Short.MIN_VALUE; return Short.MIN_VALUE;
}; }
default short getBatteryPower() { default short getBatteryPower() {
return Short.MIN_VALUE; return Short.MIN_VALUE;

View File

@ -26,7 +26,7 @@ public class GsonSupplier {
private static final Gson GSON = new Gson(); private static final Gson GSON = new Gson();
private GsonSupplier() { private GsonSupplier() {
}; }
public static Gson getInstance() { public static Gson getInstance() {
return GSON; return GSON;

View File

@ -531,7 +531,7 @@ public class SqueezeBoxServerHandler extends BaseBridgeHandler {
this.key = key; this.key = key;
this.value = value; this.value = value;
} }
}; }
private List<KeyValue> decodeKeyValueResponse(String[] response) { private List<KeyValue> decodeKeyValueResponse(String[] response) {
final List<KeyValue> keysAndValues = new ArrayList<>(); final List<KeyValue> keysAndValues = new ArrayList<>();

View File

@ -46,7 +46,7 @@ abstract class UniFiCache<T extends @Nullable HasId> {
ID, ID,
IP, IP,
MAC, MAC,
NAME; NAME
} }
private static final String SEPARATOR = ":"; private static final String SEPARATOR = ":";

View File

@ -235,7 +235,7 @@ public abstract class UpnpHandler extends BaseThingHandler implements UpnpIOPart
*/ */
public void updateDeviceConfig(RemoteDevice device) { public void updateDeviceConfig(RemoteDevice device) {
this.device = device; this.device = device;
}; }
protected void updateStateDescription(ChannelUID channelUID, List<StateOption> stateOptionList) { protected void updateStateDescription(ChannelUID channelUID, List<StateOption> stateOptionList) {
StateDescription stateDescription = StateDescriptionFragmentBuilder.create().withReadOnly(false) StateDescription stateDescription = StateDescriptionFragmentBuilder.create().withReadOnly(false)

View File

@ -203,5 +203,5 @@ public class FunctionalParameters {
@Override @Override
public int hashCode() { public int hashCode() {
return Arrays.hashCode(values); return Arrays.hashCode(values);
}; }
} }

View File

@ -242,7 +242,7 @@ public class VeluxBridgeHandler extends ExtendedBaseBridgeHandler implements Vel
@Override @Override
public VeluxBridgeConfiguration veluxBridgeConfiguration() { public VeluxBridgeConfiguration veluxBridgeConfiguration() {
return veluxBridgeConfiguration; return veluxBridgeConfiguration;
}; }
/** /**
* Information retrieved by {@link VeluxBridgeActuators#getProducts} * Information retrieved by {@link VeluxBridgeActuators#getProducts}
@ -250,7 +250,7 @@ public class VeluxBridgeHandler extends ExtendedBaseBridgeHandler implements Vel
@Override @Override
public VeluxExistingProducts existingProducts() { public VeluxExistingProducts existingProducts() {
return bridgeParameters.actuators.getChannel().existingProducts; return bridgeParameters.actuators.getChannel().existingProducts;
}; }
/** /**
* Information retrieved by {@link VeluxBridgeScenes#getScenes} * Information retrieved by {@link VeluxBridgeScenes#getScenes}

View File

@ -186,7 +186,7 @@ public class VerisureSession {
public void setVerisureThingHandler(VerisureThingHandler<?> vth, String deviceId) { public void setVerisureThingHandler(VerisureThingHandler<?> vth, String deviceId) {
verisureHandlers.put(deviceId, vth); verisureHandlers.put(deviceId, vth);
}; }
public void removeVerisureThingHandler(String deviceId) { public void removeVerisureThingHandler(String deviceId) {
verisureHandlers.remove(deviceId); verisureHandlers.remove(deviceId);

View File

@ -110,7 +110,7 @@ public class DummyHomekitAccessory implements HomekitAccessory {
public void addLinkedService(Service service) { public void addLinkedService(Service service) {
linkedServices.add(service); linkedServices.add(service);
} }
}; }
int id; int id;
String item; String item;

View File

@ -314,8 +314,8 @@ public class InMemoryPersistenceService implements ModifiablePersistenceService
} }
private record PersistEntry(ZonedDateTime timestamp, State state) { private record PersistEntry(ZonedDateTime timestamp, State state) {
}; }
private record PersistItem(TreeSet<PersistEntry> database, Lock lock) { private record PersistItem(TreeSet<PersistEntry> database, Lock lock) {
}; }
} }