From d888a0759a6ae0b3506873a14db5b5b8e28d55cc Mon Sep 17 00:00:00 2001 From: Rodrigo Turini Date: Tue, 30 Dec 2014 14:40:13 -0200 Subject: [PATCH] adding generics to work with cdi 1.2 --- .../java/br/com/caelum/vraptor/cache/LRUCacheFactory.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }