You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by ra...@apache.org on 2008/07/07 05:33:08 UTC
svn commit: r674389 -
/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java
Author: rajith
Date: Sun Jul 6 20:33:08 2008
New Revision: 674389
URL: http://svn.apache.org/viewvc?rev=674389&view=rev
Log:
The last checkin for this class was using a Java 1.6 specific method called isEmpty in the String class.
This fails the build in Java 1.5. I modified it to use str.length == 0 which has the same effect.
Modified:
incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java
Modified: incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java
URL: http://svn.apache.org/viewvc/incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java?rev=674389&r1=674388&r2=674389&view=diff
==============================================================================
--- incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java (original)
+++ incubator/qpid/trunk/qpid/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java Sun Jul 6 20:33:08 2008
@@ -104,7 +104,7 @@
String initialContext = System.getProperty(InitialContext.INITIAL_CONTEXT_FACTORY);
- if (initialContext == null || initialContext.isEmpty())
+ if (initialContext == null || initialContext.length() == 0)
{
System.setProperty(InitialContext.INITIAL_CONTEXT_FACTORY, DEFAULT_INITIAL_CONTEXT);
}