diff options
author | Mark Spruiell <mes@zeroc.com> | 2009-08-21 13:47:40 -0700 |
---|---|---|
committer | Mark Spruiell <mes@zeroc.com> | 2009-08-21 13:47:40 -0700 |
commit | ba1474c37a508625fd7cc9660039f25a1e9ecd2a (patch) | |
tree | 6b809084bdbd31844a728006e0e7caf3a0170845 /java/src/IceInternal/ThreadPool.java | |
parent | Bug 2664 - Added Ice.PrintStackTraces and cleaned up ifdefs (diff) | |
download | ice-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.java | 4 |
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; |