Java 17 features (N-S) (#15565)
- 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:
@@ -158,8 +158,8 @@ public class StationHandler extends BaseThingHandler {
|
||||
String uuid = getThing().getProperties().get(STATION_UUID);
|
||||
if (uuid == null) {
|
||||
Object uuidObj = getThing().getConfiguration().get(STATION_UUID);
|
||||
if (uuidObj instanceof String) {
|
||||
uuid = (String) uuidObj;
|
||||
if (uuidObj instanceof String stringValue) {
|
||||
uuid = stringValue;
|
||||
}
|
||||
}
|
||||
return uuid == null ? "" : uuid;
|
||||
|
||||
Reference in New Issue
Block a user