cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aadamc...@apache.org
Subject svn commit: r1412488 - in /cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache: MapQueryCache.java NestedQueryCache.java OSQueryCache.java QueryCache.java
Date Thu, 22 Nov 2012 10:28:29 GMT
Author: aadamchik
Date: Thu Nov 22 10:28:28 2012
New Revision: 1412488

URL: http://svn.apache.org/viewvc?rev=1412488&view=rev
Log:
more precise warning

Modified:
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/MapQueryCache.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/NestedQueryCache.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/OSQueryCache.java
    cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/QueryCache.java

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/MapQueryCache.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/MapQueryCache.java?rev=1412488&r1=1412487&r2=1412488&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/MapQueryCache.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/MapQueryCache.java
Thu Nov 22 10:28:28 2012
@@ -47,7 +47,7 @@ public class MapQueryCache implements Qu
         this.map = new LRUMap(maxSize);
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     public List get(QueryMetadata metadata) {
         String key = metadata.getCacheKey();
         if (key == null) {
@@ -68,7 +68,7 @@ public class MapQueryCache implements Qu
      * a result there is a potential of multiple threads to be updating cache in parallel
-
      * this wouldn't lead to corruption of the cache, but can be suboptimal.
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     public List get(QueryMetadata metadata, QueryCacheEntryFactory factory) {
         List result = get(metadata);
         if (result == null) {
@@ -93,7 +93,7 @@ public class MapQueryCache implements Qu
         return result;
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     public void put(QueryMetadata metadata, List results) {
         String key = metadata.getCacheKey();
         if (key != null) {

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/NestedQueryCache.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/NestedQueryCache.java?rev=1412488&r1=1412487&r2=1412488&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/NestedQueryCache.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/NestedQueryCache.java
Thu Nov 22 10:28:28 2012
@@ -75,17 +75,17 @@ public class NestedQueryCache implements
         delegate.clear();
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     public List get(QueryMetadata metadata, QueryCacheEntryFactory factory) {
         return delegate.get(qualifiedMetadata(metadata), factory);
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     public List get(QueryMetadata metadata) {
         return delegate.get(qualifiedMetadata(metadata));
     }
-
-    @SuppressWarnings("unchecked")
+    
+    @SuppressWarnings("rawtypes")
     public void put(QueryMetadata metadata, List results) {
         delegate.put(qualifiedMetadata(metadata), results);
     }

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/OSQueryCache.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/OSQueryCache.java?rev=1412488&r1=1412487&r2=1412488&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/OSQueryCache.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/OSQueryCache.java
Thu Nov 22 10:28:28 2012
@@ -104,7 +104,7 @@ public class OSQueryCache implements Que
      * Returns a collection of group names that have been configured explicitly via
      * properties.
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     public Collection getGroupNames() {
         return refreshSpecifications != null
                 ? Collections.unmodifiableCollection(refreshSpecifications.keySet())
@@ -236,7 +236,7 @@ public class OSQueryCache implements Que
         return spec;
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     public List get(QueryMetadata metadata) {
         String key = metadata.getCacheKey();
         if (key == null) {
@@ -263,7 +263,7 @@ public class OSQueryCache implements Que
      * provider will block on the entry update or not is controlled by "cache.blocking"
      * configuration property and is "false" by default.
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     public List get(QueryMetadata metadata, QueryCacheEntryFactory factory) {
         String key = metadata.getCacheKey();
         if (key == null) {
@@ -328,7 +328,7 @@ public class OSQueryCache implements Que
         return refresh != null ? refresh : defaultRefreshSpecification;
     }
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     public void put(QueryMetadata metadata, List results) {
         String key = metadata.getCacheKey();
         if (key != null) {

Modified: cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/QueryCache.java
URL: http://svn.apache.org/viewvc/cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/QueryCache.java?rev=1412488&r1=1412487&r2=1412488&view=diff
==============================================================================
--- cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/QueryCache.java
(original)
+++ cayenne/main/trunk/framework/cayenne-jdk1.5-unpublished/src/main/java/org/apache/cayenne/cache/QueryCache.java
Thu Nov 22 10:28:28 2012
@@ -38,7 +38,7 @@ public interface QueryCache {
      * Returns a cached query result for the given QueryMetadata or null if the result is
      * not cached or is expired.
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     List get(QueryMetadata metadata);
 
     /**
@@ -51,10 +51,10 @@ public interface QueryCache {
      * from running the same query when a missing entry is requested by multiple threads
      * simultaneously.
      */
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     List get(QueryMetadata metadata, QueryCacheEntryFactory factory);
 
-    @SuppressWarnings("unchecked")
+    @SuppressWarnings("rawtypes")
     void put(QueryMetadata metadata, List results);
 
     /**



Mime
View raw message