[hue] Cleanup code ()

Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
This commit is contained in:
Jacob Laursen 2023-10-07 15:08:02 +02:00 committed by GitHub
parent 181c647bd6
commit e9305c3709
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 9 additions and 9 deletions
bundles/org.openhab.binding.hue/src/main/java/org/openhab/binding/hue/internal

@ -341,7 +341,7 @@ public class Clip2Bridge implements Closeable {
RESET,
IDLE,
GO_AWAY,
UNAUTHORIZED;
UNAUTHORIZED
}
/**
@ -447,7 +447,7 @@ public class Clip2Bridge implements Closeable {
/**
* Enum showing the online state of the session connection.
*/
private static enum State {
private enum State {
/**
* Session closed
*/
@ -459,7 +459,7 @@ public class Clip2Bridge implements Closeable {
/**
* Session open for HTTP calls and actively receiving SSE events
*/
ACTIVE;
ACTIVE
}
/**

@ -41,8 +41,7 @@ public class ApiVersion {
String microString = matcher.group(4);
int micro = Integer.parseInt(microString == null ? "0" : microString);
ApiVersion apiVersion = new ApiVersion(major, minor, micro);
return apiVersion;
return new ApiVersion(major, minor, micro);
}
throw new IllegalArgumentException("Version \"" + version + "\" is not valid");

@ -23,5 +23,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
public enum BatteryStateType {
NORMAL,
LOW,
CRITICAL;
CRITICAL
}

@ -25,5 +25,5 @@ public enum ButtonEventType {
REPEAT,
SHORT_RELEASE,
LONG_RELEASE,
DOUBLE_SHORT_RELEASE;
DOUBLE_SHORT_RELEASE
}

@ -22,5 +22,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault
public enum DirectionType {
CLOCK_WISE,
COUNTER_CLOCK_WISE;
COUNTER_CLOCK_WISE
}

@ -22,5 +22,5 @@ import org.eclipse.jdt.annotation.NonNullByDefault;
@NonNullByDefault
public enum RotationEventType {
START,
REPEAT;
REPEAT
}

@ -46,6 +46,7 @@ public class ClipHandler extends HueSensorHandler {
return new SensorConfigUpdate();
}
@Override
protected void doSensorStateChanged(FullSensor sensor, Configuration config) {
}
}