Skip to content
Browse files

compatibility with recent versions of guava

Guava's Iterables.reverse(List<T> list) was removed in recent versions,
using Lists.reverse(List<T> list) instead
  • Loading branch information...
1 parent aac656a commit d73dde03d3bdc7f0dc2754888e07f807e7adfc38 @galmeida galmeida committed Oct 22, 2012
View
4 ...main/java/br/com/caelum/vraptor/interceptor/InterceptorListPriorToExecutionExtractor.java
@@ -25,7 +25,7 @@
import br.com.caelum.vraptor.ioc.ApplicationScoped;
import br.com.caelum.vraptor.resource.ResourceMethod;
-import com.google.common.collect.Iterables;
+import com.google.common.collect.Lists;
/**
* Extracts all interceptors which are supposed to be applied for this current
@@ -49,7 +49,7 @@ public InterceptorListPriorToExecutionExtractor(InterceptorRegistry registry) {
}
public void intercept(InterceptorStack stack, ResourceMethod method, Object resourceInstance) throws InterceptionException {
- for (Class<? extends Interceptor> type : Iterables.reverse(registry.all())) {
+ for (Class<? extends Interceptor> type : Lists.reverse(registry.all())) {
stack.addAsNext(type);
}
stack.next(method, resourceInstance);

0 comments on commit d73dde0

Please sign in to comment.
Something went wrong with that request. Please try again.