summaryrefslogtreecommitdiff
path: root/java
diff options
context:
space:
mode:
authorRajith Muditha Attapattu <rajith@apache.org>2008-07-07 03:33:08 +0000
committerRajith Muditha Attapattu <rajith@apache.org>2008-07-07 03:33:08 +0000
commit3635695453c9607af72ebfa32c35ceed3f11acb0 (patch)
tree9398b93a73578ebefccd6a977b1452d37eb84175 /java
parente341e58a09b344dc89a988d6d977457682d269b0 (diff)
downloadqpid-python-3635695453c9607af72ebfa32c35ceed3f11acb0.tar.gz
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. git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@674389 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java')
-rw-r--r--java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java b/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java
index 0218d693d5..a241fd61af 100644
--- a/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java
+++ b/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java
@@ -104,7 +104,7 @@ public class QpidTestCase extends TestCase
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);
}