Re-instating line endings that were erroneously removed

This commit is contained in:
Monica Goward
2017-02-04 18:40:28 +00:00
parent cf3ec7cfe4
commit 6b8a714959
12 changed files with 63 additions and 64 deletions

View File

@@ -329,7 +329,7 @@ public class BridgeSettingsDescriptor {
}
public Boolean isValidHass() {
if(this.getHassaddress() == null || this.getHassaddress().getDevices().size() <= 0)
return false;
return false;
List<NamedIP> devicesList = this.getHassaddress().getDevices();
if(devicesList.get(0).getIp().contains(Configuration.DEFAULT_ADDRESS))
return false;
@@ -337,7 +337,7 @@ public class BridgeSettingsDescriptor {
}
public Boolean isValidDomoticz() {
if(this.getDomoticzaddress() == null || this.getDomoticzaddress().getDevices().size() <= 0)
return false;
return false;
List<NamedIP> devicesList = this.getDomoticzaddress().getDevices();
if(devicesList.get(0).getIp().contains(Configuration.DEFAULT_ADDRESS))
return false;

View File

@@ -65,7 +65,7 @@ public class DeviceMapTypes {
public ArrayList<String[]> getDeviceMapTypes() {
return deviceMapTypes;
}
public Boolean validateType(String type) {
if(type == null || type.trim().isEmpty())
return false;