commit | f3b6a7e4b567b6f050fa26fb56eed116c6d0bd58 | [log] [tgz] |
---|---|---|
author | Richard S. Hall <rickhall@apache.org> | Tue Dec 28 17:19:32 2010 +0000 |
committer | Richard S. Hall <rickhall@apache.org> | Tue Dec 28 17:19:32 2010 +0000 |
tree | 1c275f851730a91d3e7bdb820db4e9b1f6a3c58f | |
parent | ba8d46ed9959bd46dbd6b41a214c24528eeb04fa [diff] |
Avoid using Java 5 Boolean.parseBoolean() method. (FELIX-2749) git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1053396 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/framework/src/main/java/org/apache/felix/framework/cache/BundleCache.java b/framework/src/main/java/org/apache/felix/framework/cache/BundleCache.java index 777d1d2..1281e44 100644 --- a/framework/src/main/java/org/apache/felix/framework/cache/BundleCache.java +++ b/framework/src/main/java/org/apache/felix/framework/cache/BundleCache.java
@@ -109,8 +109,10 @@ } Object locking = m_configMap.get(CACHE_LOCKING_PROP); - locking = (locking == null) ? "true" : locking.toString(); - if (Boolean.parseBoolean((String) locking)) + locking = (locking == null) + ? Boolean.TRUE.toString() + : locking.toString().toLowerCase(); + if (((String) locking).equals(Boolean.TRUE.toString())) { File lockFile = new File(cacheDir, CACHE_LOCK_NAME); FileChannel fc = null;