Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unnecessary semicolons #16214

Merged
merged 1 commit into from
Jan 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -802,4 +802,4 @@ private void changeSettings(JsonObject jsonchange) {
}
}
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ public void activate(@Nullable Map<String, Object> config) {
if (activateTimeStamp == null) {
this.activateTimeStamp = new Date().getTime();
}
};
}

synchronized void setSmartHomeDevices(List<SmartHomeBaseDevice> deviceList) {
int smartHomeDeviceDiscoveryMode = accountHandler.getSmartHomeDevicesDiscoveryMode();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,4 @@
public enum CaddxDirection {
IN,
OUT
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public enum CaddxSource {
KEYPAD,
PARTITION,
ZONE
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -1155,7 +1155,7 @@ public enum Type {
Bitfield,
Float,
Enum
};
}

/**
* The format of the response of the heat pump
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ protected String request(String url, String apiKey) throws FoobotApiException {
} catch (IOException e) {
throw new AssertionError(e.getMessage());
}
};
}
};
private final FoobotAccountHandler handler = new FoobotAccountHandler(bridge, connector);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ protected String request(String url, String apiKey) throws FoobotApiException {
} catch (IOException e) {
throw new AssertionError(e.getMessage());
}
};
}
};
private final FoobotDeviceHandler handler = new FoobotDeviceHandler(thing, connector);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ private void pollStatus() {
} else {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.BRIDGE_OFFLINE);
}
};
}

@Override
public void handleCommand(ChannelUID channelUID, Command command) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
public abstract class ListUtil {

private ListUtil() {
};
}

/**
* Replace entries in the given originalList with entries from replacements, if the have an equal key.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ private enum MessageType {
STANDARD,
EXTENDED,
EXTENDED_2
};
}

@Nullable
private InsteonNetworkHandler handler;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ public class DeviceFeatureListener {
public enum StateChangeType {
ALWAYS,
CHANGED
};
}

private String itemName;
private ChannelUID channelUID;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ enum GroupMessage {
BCAST,
CLEAN,
SUCCESS
};
}

/**
* The state of the machine (i.e. what message we are expecting next).
Expand All @@ -100,7 +100,7 @@ enum State {
EXPECT_BCAST,
EXPECT_CLEAN,
EXPECT_SUCCESS
};
}

private State state = State.EXPECT_BCAST;
private long lastUpdated = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -336,4 +336,4 @@ public static class BlidResponse {
public String robotid;
public String hostname;
}
};
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public enum IpConnectionType {
ROUTER,
SECURE_TUNNEL,
SECURE_ROUTER
};
}

private final Logger logger = LoggerFactory.getLogger(IPClient.class);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 ??

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,24 +55,24 @@ public enum AlertLevel {
@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 = "";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public RouterosInterfaceBase(Map<String, String> props) {

public String getApiType() {
return getDesignedType().toString();
};
}

public boolean validate() {
return getDesignedType() == this.type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public static class Data {
public String utterance = "";
@SerializedName("expect_response")
public String expectResponse = "";
};
}

public static class Context {
@SerializedName("client_name")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public Point2D getPosition() {

public int getOrientation() {
return orientation;
};
}

protected int getPanelId() {
return panelId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ public void executeMode(String mode) {
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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -204,12 +204,12 @@ public Map<String, NhcEnergyMeter> getEnergyMeters() {
*
*/
public void startEnergyMeter(String energyMeterId) {
};
}

/**
* Stop retrieving energy meter data from Niko Home Control.
*
*/
public void stopEnergyMeter(String energyMeterId) {
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ private static Map<Integer, String> createRegulationMap() {
map.put(8, "boost");
map.put(9, "eco");
return map;
};
}

private static Map<String, Integer> createRegulationReverseMap() {
HashMap<String, Integer> map = new HashMap<>();
Expand All @@ -375,7 +375,7 @@ private static Map<String, Integer> createRegulationReverseMap() {
map.put("boost", 8);
map.put("eco", 9);
return map;
};
}

private Map<String, Consumer<ThermostatModel>> createChannelRefreshActionMap() {
HashMap<String, Consumer<ThermostatModel>> map = new HashMap<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ protected void requestChannelState(ChannelUID channel) {
@Override
protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS;
};
}

@Override
protected void refreshDevice(boolean refreshAll) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ protected void requestChannelState(ChannelUID channel) {
@Override
protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS;
};
}

@Override
protected void refreshDevice(boolean refreshAll) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ protected void requestChannelState(ChannelUID channel) {
@Override
protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS;
};
}

@Override
protected void refreshDevice(boolean refreshAll) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ protected void requestChannelState(ChannelUID channel) {
@Override
protected long getRefreshAllLastTS() {
return lastAllDevicesRefreshTS;
};
}

@Override
protected void refreshDevice(boolean refreshAll) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,7 @@ protected void requestChannelState(ChannelUID channel) {
*/
protected long getRefreshAllLastTS() {
return -1;
};
}

/**
* Refresh all devices for this handler
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,5 +296,5 @@ public void close() throws IOException {
closed = true;
input.close();
}
};
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ private void qbusListener() throws IOException, InterruptedException {

qbusListenerRunning = false;
logger.trace("Event listener thread stopped on thread {}", Thread.currentThread().getId());
};
}

/**
* Called by other methods to send json data to Qbus.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ private void publishData() {
} else {
updateStatus(ThingStatus.OFFLINE, ThingStatusDetail.COMMUNICATION_ERROR);
}
};
}

private void startAutomaticRefresh() {
stopAutomaticRefresh();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public enum ConfigStatus {
SENSOR_IS_NULL,
SENSOR_ID_NEGATIVE,
UNKNOWN
};
}

public enum UpdateStatus {
OK,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ public static class ShellySensorHum {
public static class ShellySensorBat {
public Double value; // estimated remaining battery capacity in %
public Double voltage; // battery voltage
};
}

// Door/Window sensor
public static class ShellySensorState {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public enum Encoding {
Enc7,
Enc8,
EncUcs2,
EncCustom;
EncCustom
}

public enum DcsClass {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,11 @@ default double getPVTotalCurrent() {

default double getBatteryVoltage() {
return Short.MIN_VALUE;
};
}

default double getBatteryCurrent() {
return Short.MIN_VALUE;
};
}

default short getBatteryPower() {
return Short.MIN_VALUE;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public class GsonSupplier {
private static final Gson GSON = new Gson();

private GsonSupplier() {
};
}

public static Gson getInstance() {
return GSON;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -531,7 +531,7 @@ public KeyValue(String key, String value) {
this.key = key;
this.value = value;
}
};
}

private List<KeyValue> decodeKeyValueResponse(String[] response) {
final List<KeyValue> keysAndValues = new ArrayList<>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public enum Prefix {
ID,
IP,
MAC,
NAME;
NAME
}

private static final String SEPARATOR = ":";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,7 @@ protected void updateStatus(ThingStatus status) {
*/
public void updateDeviceConfig(RemoteDevice device) {
this.device = device;
};
}

protected void updateStateDescription(ChannelUID channelUID, List<StateOption> stateOptionList) {
StateDescription stateDescription = StateDescriptionFragmentBuilder.create().withReadOnly(false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -203,5 +203,5 @@ public boolean equals(@Nullable Object obj) {
@Override
public int hashCode() {
return Arrays.hashCode(values);
};
}
}
Loading