This helps with stopping the proliferation of unnecessary semicolons.
Signed-off-by: Wouter Born <github@maindrain.net>
if (activateTimeStamp == null) {
this.activateTimeStamp = new Date().getTime();
}
- };
+ }
synchronized void setSmartHomeDevices(List<SmartHomeBaseDevice> deviceList) {
int smartHomeDeviceDiscoveryMode = accountHandler.getSmartHomeDevicesDiscoveryMode();
public enum CaddxDirection {
IN,
OUT
-};
+}
KEYPAD,
PARTITION,
ZONE
-};
+}
Bitfield,
Float,
Enum
- };
+ }
/**
* The format of the response of the heat pump
} catch (IOException e) {
throw new AssertionError(e.getMessage());
}
- };
+ }
};
private final FoobotAccountHandler handler = new FoobotAccountHandler(bridge, connector);
} catch (IOException e) {
throw new AssertionError(e.getMessage());
}
- };
+ }
};
private final FoobotDeviceHandler handler = new FoobotDeviceHandler(thing, connector);
} else {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_OFFLINE);
}
- };
+ }
@Override
public void handleCommand(ChannelUID channelUID, Command command) {
public abstract class ListUtil {
private ListUtil() {
- };
+ }
/**
* Replace entries in the given originalList with entries from replacements, if the have an equal key.
STANDARD,
EXTENDED,
EXTENDED_2
- };
+ }
@Nullable
private InsteonNetworkHandler handler;
public enum StateChangeType {
ALWAYS,
CHANGED
- };
+ }
private String itemName;
private ChannelUID channelUID;
BCAST,
CLEAN,
SUCCESS
- };
+ }
/**
* The state of the machine (i.e. what message we are expecting next).
EXPECT_BCAST,
EXPECT_CLEAN,
EXPECT_SUCCESS
- };
+ }
private State state = State.EXPECT_BCAST;
private long lastUpdated = 0;
public String robotid;
public String hostname;
}
-};
+}
ROUTER,
SECURE_TUNNEL,
SECURE_ROUTER
- };
+ }
private final Logger logger = LoggerFactory.getLogger(IPClient.class);
@SerializedName("FanSpeed")
public FanSpeedType fanSpeed;
@SerializedName("Zone")
- public Href zone = new Href();;
+ public Href zone = new Href();
@SerializedName("StatusAccuracy")
public String statusAccuracy = ""; // "Good" or ??
@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 = "";
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);
public String getApiType() {
return getDesignedType().toString();
- };
+ }
public boolean validate() {
return getDesignedType() == this.type;
public String utterance = "";
@SerializedName("expect_response")
public String expectResponse = "";
- };
+ }
public static class Context {
@SerializedName("client_name")
public int getOrientation() {
return orientation;
- };
+ }
protected int getPanelId() {
return panelId;
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
*
*/
public void startEnergyMeter(String energyMeterId) {
- };
+ }
/**
* Stop retrieving energy meter data from Niko Home Control.
*
*/
public void stopEnergyMeter(String energyMeterId) {
- };
+ }
}
map.put(8, "boost");
map.put(9, "eco");
return map;
- };
+ }
private static Map<String, Integer> createRegulationReverseMap() {
HashMap<String, Integer> map = new HashMap<>();
map.put("boost", 8);
map.put("eco", 9);
return map;
- };
+ }
private Map<String, Consumer<ThermostatModel>> createChannelRefreshActionMap() {
HashMap<String, Consumer<ThermostatModel>> map = new HashMap<>();
@Override
protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS;
- };
+ }
@Override
protected void refreshDevice(boolean refreshAll) {
@Override
protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS;
- };
+ }
@Override
protected void refreshDevice(boolean refreshAll) {
@Override
protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS;
- };
+ }
@Override
protected void refreshDevice(boolean refreshAll) {
@Override
protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS;
- };
+ }
@Override
protected void refreshDevice(boolean refreshAll) {
*/
protected long getRefreshAllLastTS() {
return -1;
- };
+ }
/**
* Refresh all devices for this handler
closed = true;
input.close();
}
- };
+ }
}
qbusListenerRunning = false;
logger.trace("Event listener thread stopped on thread {}", Thread.currentThread().getId());
- };
+ }
/**
* Called by other methods to send json data to Qbus.
} else {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR);
}
- };
+ }
private void startAutomaticRefresh() {
stopAutomaticRefresh();
SENSOR_IS_NULL,
SENSOR_ID_NEGATIVE,
UNKNOWN
- };
+ }
public enum UpdateStatus {
OK,
public static class ShellySensorBat {
public Double value; // estimated remaining battery capacity in %
public Double voltage; // battery voltage
- };
+ }
// Door/Window sensor
public static class ShellySensorState {
Enc7,
Enc8,
EncUcs2,
- EncCustom;
+ EncCustom
}
public enum DcsClass {
default double getBatteryVoltage() {
return Short.MIN_VALUE;
- };
+ }
default double getBatteryCurrent() {
return Short.MIN_VALUE;
- };
+ }
default short getBatteryPower() {
return Short.MIN_VALUE;
private static final Gson GSON = new Gson();
private GsonSupplier() {
- };
+ }
public static Gson getInstance() {
return GSON;
this.key = key;
this.value = value;
}
- };
+ }
private List<KeyValue> decodeKeyValueResponse(String[] response) {
final List<KeyValue> keysAndValues = new ArrayList<>();
ID,
IP,
MAC,
- NAME;
+ NAME
}
private static final String SEPARATOR = ":";
*/
public void updateDeviceConfig(RemoteDevice device) {
this.device = device;
- };
+ }
protected void updateStateDescription(ChannelUID channelUID, List<StateOption> stateOptionList) {
StateDescription stateDescription = StateDescriptionFragmentBuilder.create().withReadOnly(false)
@Override
public int hashCode() {
return Arrays.hashCode(values);
- };
+ }
}
@Override
public VeluxBridgeConfiguration veluxBridgeConfiguration() {
return veluxBridgeConfiguration;
- };
+ }
/**
* Information retrieved by {@link VeluxBridgeActuators#getProducts}
@Override
public VeluxExistingProducts existingProducts() {
return bridgeParameters.actuators.getChannel().existingProducts;
- };
+ }
/**
* Information retrieved by {@link VeluxBridgeScenes#getScenes}
public void setVerisureThingHandler(VerisureThingHandler<?> vth, String deviceId) {
verisureHandlers.put(deviceId, vth);
- };
+ }
public void removeVerisureThingHandler(String deviceId) {
verisureHandlers.remove(deviceId);
public void addLinkedService(Service service) {
linkedServices.add(service);
}
- };
+ }
int id;
String item;
}
private record PersistEntry(ZonedDateTime timestamp, State state) {
- };
+ }
private record PersistItem(TreeSet<PersistEntry> database, Lock lock) {
- };
+ }
}