Skip to content

Commit

Permalink
[hue] Cleanup code (#15715)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Laursen <jacob-github@vindvejr.dk>
  • Loading branch information
jlaur authored Oct 7, 2023
1 parent 181c647 commit e9305c3
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ private enum Http2Error {
RESET,
IDLE,
GO_AWAY,
UNAUTHORIZED;
UNAUTHORIZED
}

/**
Expand Down Expand Up @@ -447,7 +447,7 @@ public void close() {
/**
* Enum showing the online state of the session connection.
*/
private static enum State {
private enum State {
/**
* Session closed
*/
Expand All @@ -459,7 +459,7 @@ private static enum State {
/**
* Session open for HTTP calls and actively receiving SSE events
*/
ACTIVE;
ACTIVE
}

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,7 @@ public static ApiVersion of(String version) {
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");
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@
public enum BatteryStateType {
NORMAL,
LOW,
CRITICAL;
CRITICAL
}
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ public enum ButtonEventType {
REPEAT,
SHORT_RELEASE,
LONG_RELEASE,
DOUBLE_SHORT_RELEASE;
DOUBLE_SHORT_RELEASE
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
@NonNullByDefault
public enum DirectionType {
CLOCK_WISE,
COUNTER_CLOCK_WISE;
COUNTER_CLOCK_WISE
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
@NonNullByDefault
public enum RotationEventType {
START,
REPEAT;
REPEAT
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ protected SensorConfigUpdate doConfigurationUpdate(Map<String, Object> configura
return new SensorConfigUpdate();
}

@Override
protected void doSensorStateChanged(FullSensor sensor, Configuration config) {
}
}

0 comments on commit e9305c3

Please sign in to comment.