Skip to content

Commit

Permalink
Minor corrections.
Browse files Browse the repository at this point in the history
  • Loading branch information
albertus82 committed May 1, 2015
1 parent 6709f4e commit 213e022
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/it/albertus/router/RouterLogger.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ private void loadThresholds() {
if (thresholdKey == null || "".equals(thresholdKey) || thresholdValue == null || thresholdType == null) {
throw new IllegalArgumentException("Threshold misconfigured: \"" + thresholdName + "\".");
}
thresholds.add(new Threshold(thresholdKey, thresholdType, thresholdValue));
thresholds.add(new Threshold(thresholdKey.trim(), thresholdType, thresholdValue));
thresholdsAdded.add(thresholdName);
}
}
Expand Down Expand Up @@ -203,7 +203,7 @@ private void loadConfiguration() throws IOException {
* <code>false</code> altrimenti.
*/
private final boolean connect() {
final String routerAddress = configuration.getProperty("router.address", Defaults.ROUTER_ADDRESS);
final String routerAddress = configuration.getProperty("router.address", Defaults.ROUTER_ADDRESS).trim();
final int routerPort = Integer.parseInt(configuration.getProperty("router.port", Integer.toString(Defaults.ROUTER_PORT)));
final int connectionTimeoutInMillis = Integer.parseInt(configuration.getProperty("connection.timeout.ms", Integer.toString(Defaults.CONNECTION_TIMEOUT_IN_MILLIS)));
final int socketTimeoutInMillis = Integer.parseInt(configuration.getProperty("socket.timeout.ms", Integer.toString(Defaults.SOCKET_TIMEOUT_IN_MILLIS)));
Expand Down

0 comments on commit 213e022

Please sign in to comment.