Java 17 features (A-G) (#15516)
- add missing @override - Java style array syntax - remove redundant modifiers - always move String constants to left side in comparisons - simplify lambda expressions and return statements - use replace instead of replaceAll w/o regex - instanceof matching and multiline strings Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -475,7 +475,7 @@ public class EvccHandler extends BaseThingHandler {
|
||||
updateState(channel, new QuantityType<>(targetSoC, Units.PERCENT));
|
||||
|
||||
String targetTime = loadpoint.getTargetTime();
|
||||
if (targetTime == null || targetTime.equals("0001-01-01T00:00:00Z")) {
|
||||
if (targetTime == null || "0001-01-01T00:00:00Z".equals(targetTime)) {
|
||||
channel = new ChannelUID(uid, loadpointName, CHANNEL_LOADPOINT_TARGET_TIME_ENABLED);
|
||||
updateState(channel, OnOffType.OFF);
|
||||
targetTimeEnabled = false;
|
||||
|
||||
Reference in New Issue
Block a user