Modified: commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/struct/LRUMap.java URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/struct/LRUMap.java?rev=1369329&r1=1369328&r2=1369329&view=diff ============================================================================== --- commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/struct/LRUMap.java (original) +++ commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/struct/LRUMap.java Sat Aug 4 14:19:08 2012 @@ -400,6 +400,7 @@ public class LRUMap<K, V> /** * Dump the cache entries from first to list for debugging. */ + @SuppressWarnings("unchecked") public void dumpCacheEntries() { log.debug( "dumpingCacheEntries" ); @@ -432,6 +433,7 @@ public class LRUMap<K, V> * Checks to see if all the items that should be in the cache are. Checks consistency between * List and map. */ + @SuppressWarnings("unchecked") protected void verifyCache() { if ( !log.isDebugEnabled() ) @@ -523,6 +525,7 @@ public class LRUMap<K, V> * <p> * @param key */ + @SuppressWarnings("unchecked") protected void verifyCache( Object key ) { if ( !log.isDebugEnabled() )
Modified: commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/struct/SortedPreferentialArray.java URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/struct/SortedPreferentialArray.java?rev=1369329&r1=1369328&r2=1369329&view=diff ============================================================================== --- commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/struct/SortedPreferentialArray.java (original) +++ commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/struct/SortedPreferentialArray.java Sat Aug 4 14:19:08 2012 @@ -58,7 +58,9 @@ public class SortedPreferentialArray<T e public SortedPreferentialArray( int maxSize ) { this.maxSize = maxSize; - array = (T[]) new Comparable<?>[maxSize]; + @SuppressWarnings("unchecked") + T[] ts = (T[]) new Comparable<?>[maxSize]; + array = ts; } /** Modified: commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/threadpool/ThreadPoolManager.java URL: http://svn.apache.org/viewvc/commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/threadpool/ThreadPoolManager.java?rev=1369329&r1=1369328&r2=1369329&view=diff ============================================================================== --- commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/threadpool/ThreadPoolManager.java (original) +++ commons/proper/jcs/trunk/src/java/org/apache/jcs/utils/threadpool/ThreadPoolManager.java Sat Aug 4 14:19:08 2012 @@ -116,7 +116,7 @@ public class ThreadPoolManager * You can specify the properties to be used to configure the thread pool. Setting this post * initialization will have no effect. */ - private static Properties props = null; + private static volatile Properties props = null; /** Map of names to pools. */ private static HashMap<String, ThreadPoolExecutor> pools = new HashMap<String, ThreadPoolExecutor>();
