[dna-commits] DNA SVN: r1269 - trunk/web/dna-web-jcr-rest-client/src/main/java/org/jboss/dna/web/jcr/rest/client.
dna-commits at lists.jboss.org
dna-commits at lists.jboss.org
Thu Sep 24 16:54:26 EDT 2009
Author: elvisisking
Date: 2009-09-24 16:54:26 -0400 (Thu, 24 Sep 2009)
New Revision: 1269
Modified:
trunk/web/dna-web-jcr-rest-client/src/main/java/org/jboss/dna/web/jcr/rest/client/Status.java
Log:
Fixing a JDK 1.5 incompatibility problem.
Modified: trunk/web/dna-web-jcr-rest-client/src/main/java/org/jboss/dna/web/jcr/rest/client/Status.java
===================================================================
--- trunk/web/dna-web-jcr-rest-client/src/main/java/org/jboss/dna/web/jcr/rest/client/Status.java 2009-09-24 20:03:40 UTC (rev 1268)
+++ trunk/web/dna-web-jcr-rest-client/src/main/java/org/jboss/dna/web/jcr/rest/client/Status.java 2009-09-24 20:54:26 UTC (rev 1269)
@@ -177,7 +177,7 @@
public String toString() {
StringBuilder txt = new StringBuilder("Status "); //$NON-NLS-1$
txt.append(this.severity.toString()).append(": "); //$NON-NLS-1$
- txt.append(getMessage().isEmpty() ? "<no message>" : getMessage()); //$NON-NLS-1$
+ txt.append((getMessage().length() == 0) ? "<no message>" : getMessage()); //$NON-NLS-1$
txt.append(" : "); //$NON-NLS-1$
txt.append((getException() == null) ? "<no error>" : getException()); //$NON-NLS-1$
return txt.toString();
More information about the dna-commits
mailing list