onami-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ol...@apache.org
Subject svn commit: r1416137 - /incubator/onami/trunk/cache/src/main/java/org/apache/onami/cache/CacheInterceptor.java
Date Sun, 02 Dec 2012 08:11:47 GMT
Author: olamy
Date: Sun Dec  2 08:11:47 2012
New Revision: 1416137

URL: http://svn.apache.org/viewvc?rev=1416137&view=rev
Log:
fix compilation

Modified:
    incubator/onami/trunk/cache/src/main/java/org/apache/onami/cache/CacheInterceptor.java

Modified: incubator/onami/trunk/cache/src/main/java/org/apache/onami/cache/CacheInterceptor.java
URL: http://svn.apache.org/viewvc/incubator/onami/trunk/cache/src/main/java/org/apache/onami/cache/CacheInterceptor.java?rev=1416137&r1=1416136&r2=1416137&view=diff
==============================================================================
--- incubator/onami/trunk/cache/src/main/java/org/apache/onami/cache/CacheInterceptor.java
(original)
+++ incubator/onami/trunk/cache/src/main/java/org/apache/onami/cache/CacheInterceptor.java
Sun Dec  2 08:11:47 2012
@@ -167,7 +167,7 @@ abstract class CacheInterceptor<A extend
 
         CacheDefaults cacheDefaults = context.getTarget().getClass().getAnnotation( CacheDefaults.class
);
 
-        if ( cacheDefaults != null && CacheResolverFactory.class != cacheDefaults.cacheKeyGenerator()
)
+        if ( cacheDefaults != null && cacheDefaults.cacheKeyGenerator().isAssignableFrom(
CacheResolverFactory.class ) )
         {
             return injector.getInstance( cacheKeyGeneratorType );
         }



Mime
View raw message