From: <dav...@us...> - 2012-03-06 22:05:24
|
Revision: 1311 http://cishell.svn.sourceforge.net/cishell/?rev=1311&view=rev Author: david-coe Date: 2012-03-06 22:05:17 +0000 (Tue, 06 Mar 2012) Log Message: ----------- changed isempty() to .length == 0 since isempty was not available in Java 1.5 See http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#isEmpty%28%29 Reviewed by Chin Hua Modified Paths: -------------- trunk/core/org.cishell.utilities/src/org/cishell/utilities/process/ProcessReport.java Modified: trunk/core/org.cishell.utilities/src/org/cishell/utilities/process/ProcessReport.java =================================================================== --- trunk/core/org.cishell.utilities/src/org/cishell/utilities/process/ProcessReport.java 2012-02-24 00:58:58 UTC (rev 1310) +++ trunk/core/org.cishell.utilities/src/org/cishell/utilities/process/ProcessReport.java 2012-03-06 22:05:17 UTC (rev 1311) @@ -98,7 +98,7 @@ } private static String reportStreamContents(String streamName, String contents) { - if (contents.isEmpty()) { + if (contents.length() == 0) { return String.format("No messages to %s.", streamName); } else { return String.format("Message to %s: [[%s]].", streamName, contents); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |