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) {
this.activateTimeStamp = new Date().getTime();
}
};
}
synchronized void setSmartHomeDevices(List<SmartHomeBaseDevice> deviceList) {
int smartHomeDeviceDiscoveryMode = accountHandler.getSmartHomeDevicesDiscoveryMode();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -30,7 +30,7 @@ import org.eclipse.jdt.annotation.Nullable;
public abstract class ListUtil {
private ListUtil() {
};
}
/**
* 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,
EXTENDED,
EXTENDED_2
};
}
@Nullable
private InsteonNetworkHandler handler;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -114,7 +114,7 @@ public abstract class MiIoAbstractHandler extends BaseThingHandler implements Mi
return "id:" + ret;
}
return "failed";
});;
});
protected static final long CACHE_EXPIRY = TimeUnit.SECONDS.toMillis(5);
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() {
return getDesignedType().toString();
};
}
public boolean validate() {
return getDesignedType() == this.type;

View File

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

View File

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

View File

@ -304,7 +304,7 @@ public abstract class NhcThermostat {
logger.debug("Thermostat mode {} not recognized, default to Day mode", mode);
}
executeMode(intMode);
};
}
/**
* 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) {
};
}
/**
* Stop retrieving energy meter data from Niko Home Control.
*
*/
public void stopEnergyMeter(String energyMeterId) {
};
}
}

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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