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:
@@ -108,7 +108,7 @@ public class CharacteristicChannelTypeProvider implements ChannelTypeProvider {
|
||||
if (channelID.charAt(30) != '-') {
|
||||
return false;
|
||||
}
|
||||
return !(channelID.charAt(67) != '-');
|
||||
return channelID.charAt(67) == '-';
|
||||
}
|
||||
|
||||
public ChannelTypeUID registerChannelType(String characteristicUUID, boolean advanced, boolean readOnly,
|
||||
|
||||
Reference in New Issue
Block a user