mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-10 15:11:59 +01:00
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:
parent
5b1e3c70ef
commit
9c6c475a1c
@ -802,4 +802,4 @@ public class AirqHandler extends BaseThingHandler {
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -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();
|
||||
|
@ -23,4 +23,4 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
|
||||
public enum CaddxDirection {
|
||||
IN,
|
||||
OUT
|
||||
};
|
||||
}
|
||||
|
@ -26,4 +26,4 @@ public enum CaddxSource {
|
||||
KEYPAD,
|
||||
PARTITION,
|
||||
ZONE
|
||||
};
|
||||
}
|
||||
|
@ -1155,7 +1155,7 @@ public enum EcoTouchTags {
|
||||
Bitfield,
|
||||
Float,
|
||||
Enum
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* The format of the response of the heat pump
|
||||
|
@ -42,7 +42,7 @@ public class FoobotAccountHandlerTest {
|
||||
} catch (IOException e) {
|
||||
throw new AssertionError(e.getMessage());
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
private final FoobotAccountHandler handler = new FoobotAccountHandler(bridge, connector);
|
||||
|
||||
|
@ -45,7 +45,7 @@ public class FoobotDeviceHandlerTest {
|
||||
} catch (IOException e) {
|
||||
throw new AssertionError(e.getMessage());
|
||||
}
|
||||
};
|
||||
}
|
||||
};
|
||||
private final FoobotDeviceHandler handler = new FoobotDeviceHandler(thing, connector);
|
||||
|
||||
|
@ -119,7 +119,7 @@ public class GroupePSAHandler extends BaseThingHandler {
|
||||
} else {
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_OFFLINE);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
public void handleCommand(ChannelUID channelUID, Command command) {
|
||||
|
@ -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.
|
||||
|
@ -63,7 +63,7 @@ public class InsteonCommandExtension extends AbstractConsoleCommandExtension imp
|
||||
STANDARD,
|
||||
EXTENDED,
|
||||
EXTENDED_2
|
||||
};
|
||||
}
|
||||
|
||||
@Nullable
|
||||
private InsteonNetworkHandler handler;
|
||||
|
@ -41,7 +41,7 @@ public class DeviceFeatureListener {
|
||||
public enum StateChangeType {
|
||||
ALWAYS,
|
||||
CHANGED
|
||||
};
|
||||
}
|
||||
|
||||
private String itemName;
|
||||
private ChannelUID channelUID;
|
||||
|
@ -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;
|
||||
|
@ -336,4 +336,4 @@ public class MQTTProtocol {
|
||||
public String robotid;
|
||||
public String hostname;
|
||||
}
|
||||
};
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ public class IPClient extends AbstractKNXClient {
|
||||
ROUTER,
|
||||
SECURE_TUNNEL,
|
||||
SECURE_ROUTER
|
||||
};
|
||||
}
|
||||
|
||||
private final Logger logger = LoggerFactory.getLogger(IPClient.class);
|
||||
|
||||
|
@ -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 ??
|
||||
|
||||
|
@ -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 = "";
|
||||
|
@ -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);
|
||||
|
||||
|
@ -49,7 +49,7 @@ public abstract class RouterosInterfaceBase extends RouterosBaseData {
|
||||
|
||||
public String getApiType() {
|
||||
return getDesignedType().toString();
|
||||
};
|
||||
}
|
||||
|
||||
public boolean validate() {
|
||||
return getDesignedType() == this.type;
|
||||
|
@ -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")
|
||||
|
@ -51,7 +51,7 @@ public abstract class Shape extends Panel {
|
||||
|
||||
public int getOrientation() {
|
||||
return orientation;
|
||||
};
|
||||
}
|
||||
|
||||
protected int getPanelId() {
|
||||
return panelId;
|
||||
|
@ -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
|
||||
|
@ -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) {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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<>();
|
||||
|
@ -116,7 +116,7 @@ public class OpenWebNetAlarmHandler extends OpenWebNetThingHandler {
|
||||
@Override
|
||||
protected long getRefreshAllLastTS() {
|
||||
return lastAllDevicesRefreshTS;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void refreshDevice(boolean refreshAll) {
|
||||
|
@ -155,7 +155,7 @@ public class OpenWebNetAutomationHandler extends OpenWebNetThingHandler {
|
||||
@Override
|
||||
protected long getRefreshAllLastTS() {
|
||||
return lastAllDevicesRefreshTS;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void refreshDevice(boolean refreshAll) {
|
||||
|
@ -95,7 +95,7 @@ public class OpenWebNetLightingHandler extends OpenWebNetThingHandler {
|
||||
@Override
|
||||
protected long getRefreshAllLastTS() {
|
||||
return lastAllDevicesRefreshTS;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void refreshDevice(boolean refreshAll) {
|
||||
|
@ -380,7 +380,7 @@ public class OpenWebNetScenarioHandler extends OpenWebNetThingHandler {
|
||||
@Override
|
||||
protected long getRefreshAllLastTS() {
|
||||
return lastAllDevicesRefreshTS;
|
||||
};
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void refreshDevice(boolean refreshAll) {
|
||||
|
@ -251,7 +251,7 @@ public abstract class OpenWebNetThingHandler extends BaseThingHandler {
|
||||
*/
|
||||
protected long getRefreshAllLastTS() {
|
||||
return -1;
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Refresh all devices for this handler
|
||||
|
@ -296,5 +296,5 @@ public class PulseAudioAudioSource extends PulseaudioSimpleProtocolStream implem
|
||||
closed = true;
|
||||
input.close();
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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.
|
||||
|
@ -149,7 +149,7 @@ public class SenseBoxHandler extends BaseThingHandler {
|
||||
} else {
|
||||
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
private void startAutomaticRefresh() {
|
||||
stopAutomaticRefresh();
|
||||
|
@ -60,7 +60,7 @@ public abstract class BaseSensorHandler extends BaseThingHandler {
|
||||
SENSOR_IS_NULL,
|
||||
SENSOR_ID_NEGATIVE,
|
||||
UNKNOWN
|
||||
};
|
||||
}
|
||||
|
||||
public enum UpdateStatus {
|
||||
OK,
|
||||
|
@ -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 {
|
||||
|
@ -21,7 +21,7 @@ public abstract class AbstractMessage implements Serializable {
|
||||
Enc7,
|
||||
Enc8,
|
||||
EncUcs2,
|
||||
EncCustom;
|
||||
EncCustom
|
||||
}
|
||||
|
||||
public enum DcsClass {
|
||||
|
@ -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;
|
||||
|
@ -26,7 +26,7 @@ public class GsonSupplier {
|
||||
private static final Gson GSON = new Gson();
|
||||
|
||||
private GsonSupplier() {
|
||||
};
|
||||
}
|
||||
|
||||
public static Gson getInstance() {
|
||||
return GSON;
|
||||
|
@ -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<>();
|
||||
|
@ -46,7 +46,7 @@ abstract class UniFiCache<T extends @Nullable HasId> {
|
||||
ID,
|
||||
IP,
|
||||
MAC,
|
||||
NAME;
|
||||
NAME
|
||||
}
|
||||
|
||||
private static final String SEPARATOR = ":";
|
||||
|
@ -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)
|
||||
|
@ -203,5 +203,5 @@ public class FunctionalParameters {
|
||||
@Override
|
||||
public int hashCode() {
|
||||
return Arrays.hashCode(values);
|
||||
};
|
||||
}
|
||||
}
|
||||
|
@ -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}
|
||||
|
@ -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);
|
||||
|
@ -110,7 +110,7 @@ public class DummyHomekitAccessory implements HomekitAccessory {
|
||||
public void addLinkedService(Service service) {
|
||||
linkedServices.add(service);
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
int id;
|
||||
String item;
|
||||
|
@ -314,8 +314,8 @@ public class InMemoryPersistenceService implements ModifiablePersistenceService
|
||||
}
|
||||
|
||||
private record PersistEntry(ZonedDateTime timestamp, State state) {
|
||||
};
|
||||
}
|
||||
|
||||
private record PersistItem(TreeSet<PersistEntry> database, Lock lock) {
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user