[hue] Cleanup code (#15715)

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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