diff options
| author | Rajith Muditha Attapattu <rajith@apache.org> | 2008-07-07 03:33:08 +0000 |
|---|---|---|
| committer | Rajith Muditha Attapattu <rajith@apache.org> | 2008-07-07 03:33:08 +0000 |
| commit | 87ec8808ec5d20749e15d91d91b2b006706b04ad (patch) | |
| tree | 638b65a986cd4068020451a2fbd01660790eb64a /qpid/java | |
| parent | 518077f39d14424b654dcb89f3442333c283b66e (diff) | |
| download | qpid-python-87ec8808ec5d20749e15d91d91b2b006706b04ad.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@674389 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'qpid/java')
| -rw-r--r-- | qpid/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qpid/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java b/qpid/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java index 0218d693d5..a241fd61af 100644 --- a/qpid/java/client/src/main/java/org/apache/qpid/testutil/QpidTestCase.java +++ b/qpid/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); } |
