Skip to content

Commit

Permalink
Minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed May 24, 2015
1 parent 1a80d59 commit 17d8098
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/it/albertus/router/reader/AsusDslN12EReader.java
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ public Map<String, String> readInfo() throws IOException {
readFromTelnet("Status", true);
List<String> values = new ArrayList<String>(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());
}
}
Expand Down
4 changes: 1 addition & 3 deletions src/it/albertus/router/reader/TpLink8970Reader.java
Original file line number Diff line number Diff line change
@@ -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;
Expand Down Expand Up @@ -50,7 +48,7 @@ public Map<String, String> 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()));
Expand Down

0 comments on commit 17d8098

Please sign in to comment.