diff --git a/src/it/albertus/router/reader/AsusDslN12EReader.java b/src/it/albertus/router/reader/AsusDslN12EReader.java index dc4c230f..9b765479 100644 --- a/src/it/albertus/router/reader/AsusDslN12EReader.java +++ b/src/it/albertus/router/reader/AsusDslN12EReader.java @@ -65,7 +65,7 @@ public Map readInfo() throws IOException { readFromTelnet("Status", true); List values = new ArrayList(8); for (String field : readFromTelnet("$", false).trim().split("(\\s\\s)+")) { - if (field != null && field.trim().length() > 0) { + if (field != null && field.trim().length() != 0) { values.add(field.trim()); } } diff --git a/src/it/albertus/router/reader/TpLink8970Reader.java b/src/it/albertus/router/reader/TpLink8970Reader.java index 3b7d5cce..6bd2aff4 100644 --- a/src/it/albertus/router/reader/TpLink8970Reader.java +++ b/src/it/albertus/router/reader/TpLink8970Reader.java @@ -1,7 +1,5 @@ package it.albertus.router.reader; -import it.albertus.util.StringUtils; - import java.io.BufferedReader; import java.io.IOException; import java.io.StringReader; @@ -50,7 +48,7 @@ public Map readInfo() throws IOException { // Informazioni sulla connessione ad Internet... final String commandInfoWan = configuration.getString("tplink.8970.command.info.wan"); - if (StringUtils.isNotBlank(commandInfoWan)) { + if (commandInfoWan != null && commandInfoWan.trim().length() != 0) { writeToTelnet(commandInfoWan); readFromTelnet("{", true); reader = new BufferedReader(new StringReader(readFromTelnet("}", false).trim()));