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;