From: <tho...@us...> - 2014-04-11 11:43:09
|
Revision: 8104 http://sourceforge.net/p/bigdata/code/8104 Author: thompsonbry Date: 2014-04-11 11:43:06 +0000 (Fri, 11 Apr 2014) Log Message: ----------- Modified to trim whitespace iff the hostname override is non-null. Modified Paths: -------------- branches/RDR/bigdata/src/java/com/bigdata/counters/AbstractStatisticsCollector.java Modified: branches/RDR/bigdata/src/java/com/bigdata/counters/AbstractStatisticsCollector.java =================================================================== --- branches/RDR/bigdata/src/java/com/bigdata/counters/AbstractStatisticsCollector.java 2014-04-11 11:42:00 UTC (rev 8103) +++ branches/RDR/bigdata/src/java/com/bigdata/counters/AbstractStatisticsCollector.java 2014-04-11 11:43:06 UTC (rev 8104) @@ -92,7 +92,11 @@ static { String s = System.getProperty(BigdataStatics.HOSTNAME); - if (s != null && s.trim().length() != 0) { + if (s != null) { + // Trim whitespace. + s = s.trim(); + } + if (s != null && s.length() != 0) { log.warn("Hostname override: hostname=" + s); } else { try { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |