[utilities COMMIT] /spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java

noreply at shibboleth.net noreply at shibboleth.net
Sat Feb 7 13:23:36 EST 2015


Author: scantor
Date: Sat Feb  7 13:23:36 2015
New Revision: 741

URL: http://svn.shibboleth.net/view/utilities?rev=741&view=rev
Log:
IDP-536 -  Cleanup Guava's Lists.newArrayList() methods

Modified:
    spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java

Modified: spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java
URL: http://svn.shibboleth.net/view/utilities/spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java?rev=741&r1=740&r2=741&view=diff
==============================================================================
--- spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java (original)
+++ spring-extensions/trunk/src/main/java/net/shibboleth/ext/spring/service/ReloadableSpringService.java Sat Feb  7 13:23:36 2015
@@ -18,6 +18,7 @@
 package net.shibboleth.ext.spring.service;
 
 import java.io.IOException;
+import java.util.ArrayList;
 import java.util.Collections;
 import java.util.List;
 
@@ -54,7 +55,6 @@
 import com.google.common.collect.Collections2;
 import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.google.common.collect.Lists;
 
 /**
  * This class provides a reloading interface to a {@link ServiceableComponent} via Spring.
@@ -217,7 +217,7 @@
         ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
         ComponentSupport.ifDestroyedThrowDestroyedComponentException(this);
 
-        factoryPostProcessors = Lists.newArrayList(Collections2.filter(processors, Predicates.notNull()));
+        factoryPostProcessors = new ArrayList<>(Collections2.filter(processors, Predicates.notNull()));
     }
 
     /**
@@ -229,7 +229,7 @@
         ComponentSupport.ifInitializedThrowUnmodifiabledComponentException(this);
         ComponentSupport.ifDestroyedThrowDestroyedComponentException(this);
 
-        postProcessors = Lists.newArrayList(Collections2.filter(processors, Predicates.notNull()));
+        postProcessors = new ArrayList<>(Collections2.filter(processors, Predicates.notNull()));
     }
 
     /** {@inheritDoc} */



More information about the commits mailing list