summaryrefslogtreecommitdiff
path: root/java/src/IceInternal/ThreadPool.java
diff options
context:
space:
mode:
authorMark Spruiell <mes@zeroc.com>2009-08-21 13:47:40 -0700
committerMark Spruiell <mes@zeroc.com>2009-08-21 13:47:40 -0700
commitba1474c37a508625fd7cc9660039f25a1e9ecd2a (patch)
tree6b809084bdbd31844a728006e0e7caf3a0170845 /java/src/IceInternal/ThreadPool.java
parentBug 2664 - Added Ice.PrintStackTraces and cleaned up ifdefs (diff)
downloadice-ba1474c37a508625fd7cc9660039f25a1e9ecd2a.tar.bz2
ice-ba1474c37a508625fd7cc9660039f25a1e9ecd2a.tar.xz
ice-ba1474c37a508625fd7cc9660039f25a1e9ecd2a.zip
fixing Java string comparisons
Diffstat (limited to 'java/src/IceInternal/ThreadPool.java')
-rw-r--r--java/src/IceInternal/ThreadPool.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/IceInternal/ThreadPool.java b/java/src/IceInternal/ThreadPool.java
index 4494eb9396f..c586b709a3a 100644
--- a/java/src/IceInternal/ThreadPool.java
+++ b/java/src/IceInternal/ThreadPool.java
@@ -158,11 +158,11 @@ public final class ThreadPool
}
_stackSize = stackSize;
- boolean hasPriority = properties.getProperty(_prefix + ".ThreadPriority") != "";
+ boolean hasPriority = properties.getProperty(_prefix + ".ThreadPriority").length() > 0;
int priority = properties.getPropertyAsInt(_prefix + ".ThreadPriority");
if(!hasPriority)
{
- hasPriority = properties.getProperty("Ice.ThreadPriority") != "";
+ hasPriority = properties.getProperty("Ice.ThreadPriority").length() > 0;
priority = properties.getPropertyAsInt("Ice.ThreadPriority");
}
_hasPriority = hasPriority;