diff --git a/vraptor-core/src/main/java/br/com/caelum/vraptor/cache/LRUCacheFactory.java b/vraptor-core/src/main/java/br/com/caelum/vraptor/cache/LRUCacheFactory.java index 294e63844..8b4b6ade6 100644 --- a/vraptor-core/src/main/java/br/com/caelum/vraptor/cache/LRUCacheFactory.java +++ b/vraptor-core/src/main/java/br/com/caelum/vraptor/cache/LRUCacheFactory.java @@ -25,8 +25,8 @@ public class LRUCacheFactory { @SuppressWarnings("rawtypes") @Produces @LRU - public LRUCacheStore getCache(InjectionPoint ip){ + public LRUCacheStore getCache(InjectionPoint ip){ int capacity = ip.getAnnotated().getAnnotation(LRU.class).capacity(); - return new LRUCacheStore<>(capacity); + return new LRUCacheStore(capacity); } }