Java 17 features (H-M) (#15520)
- 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 - remove null check before instanceof Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -45,7 +45,7 @@ public class Iammeter3080THandler extends IammeterBaseHandler {
|
||||
JsonObject iammeterData = iammeterDataElement.getAsJsonObject();
|
||||
String keyWord = "Datas";
|
||||
if (iammeterData.has("Datas") && iammeterData.has("SN")) {
|
||||
String groups[] = { "powerPhaseA", "powerPhaseB", "powerPhaseC" };
|
||||
String[] groups = { "powerPhaseA", "powerPhaseB", "powerPhaseC" };
|
||||
for (int row = 0; row < groups.length; row++) {
|
||||
String gpName = groups[row];
|
||||
List<Channel> chnList = getThing().getChannelsOfGroup(gpName);
|
||||
|
||||
Reference in New Issue
Block a user