mirror of
https://github.com/openhab/openhab-addons.git
synced 2025-01-25 14:55:55 +01:00
fix compiler warning (#17085)
Signed-off-by: Michael Lobstein <michael.lobstein@gmail.com> Signed-off-by: Ciprian Pascu <contact@ciprianpascu.ro>
This commit is contained in:
parent
60178b2329
commit
3e1a6e6260
@ -270,7 +270,7 @@ public enum AmplifierModel {
|
||||
|
||||
public String getZoneIdFromZoneName(String zoneName) {
|
||||
for (String zoneId : zoneIdMap.keySet()) {
|
||||
if (zoneIdMap.get(zoneId).equals(zoneName)) {
|
||||
if (zoneName.equals(zoneIdMap.get(zoneId))) {
|
||||
return zoneId;
|
||||
}
|
||||
}
|
||||
@ -278,12 +278,8 @@ public enum AmplifierModel {
|
||||
}
|
||||
|
||||
public String getZoneName(String zoneId) {
|
||||
String zoneName = zoneIdMap.get(zoneId);
|
||||
if (zoneName != null) {
|
||||
return zoneName;
|
||||
} else {
|
||||
return "";
|
||||
}
|
||||
final String zoneName = zoneIdMap.get(zoneId);
|
||||
return zoneName != null ? zoneName : "";
|
||||
}
|
||||
|
||||
public String getCmdPrefix() {
|
||||
|
Loading…
Reference in New Issue
Block a user