com.google.common.collect.Listscom.google.common.collect.ImmutableList



Project codahale/dropwizard in file ...io.dropwizard.testing.junit.DropwizardAppRule.java (2014-08-06)
@@ -1,8 +1,8 @@
 package io.dropwizard.testing.junit;
 
 import com.google.common.base.Strings;
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.Lists;
 import io.dropwizard.Application;
 import io.dropwizard.Configuration;
 import io.dropwizard.cli.ServerCommand;
@@ -44,7 +44,7 @@ public class DropwizardAppRule<C extends Configuration> implements TestRule {
                              ConfigOverride... configOverrides) {
         this.applicationClass = applicationClass;
         this.configPath = configPath;
-        this.configOverrides = Lists.newArrayList(configOverrides);
+        this.configOverrides = ImmutableList.copyOf(configOverrides);
     }
 
     @Override
Project dropwizard/dropwizard in file ...io.dropwizard.testing.junit.DropwizardAppRule.java (2014-08-06)
@@ -1,8 +1,8 @@
 package io.dropwizard.testing.junit;
 
 import com.google.common.base.Strings;
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.Lists;
 import io.dropwizard.Application;
 import io.dropwizard.Configuration;
 import io.dropwizard.cli.ServerCommand;
@@ -44,7 +44,7 @@ public class DropwizardAppRule<C extends Configuration> implements TestRule {
                              ConfigOverride... configOverrides) {
         this.applicationClass = applicationClass;
         this.configPath = configPath;
-        this.configOverrides = Lists.newArrayList(configOverrides);
+        this.configOverrides = ImmutableList.copyOf(configOverrides);
     }
 
     @Override
Project jclouds/jclouds in file ....jclouds.abiquo.domain.cloud.VirtualAppliance.java (2012-10-26)
@@ -44,8 +44,8 @@ import com.abiquo.server.core.cloud.VirtualMachineWithNodeExtendedDto;
 import com.abiquo.server.core.cloud.VirtualMachinesWithNodeExtendedDto;
 import com.abiquo.server.core.enterprise.EnterpriseDto;
 import com.google.common.base.Predicate;
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.google.common.collect.Lists;
 
 /**
  * Represents a virtual appliance.
@@ -178,7 +178,7 @@ public class VirtualAppliance extends DomainWrapper<VirtualApplianceDto> {
     *         given filter.
     */
    public List<VirtualMachine> listVirtualMachines(final Predicate<VirtualMachine> filter) {
-      return Lists.newLinkedList(filter(listVirtualMachines(), filter));
+      return ImmutableList.copyOf(filter(listVirtualMachines(), filter));
    }
 
    /**
Project jclouds/jclouds in file ...ds.abiquo.domain.cloud.VirtualMachineTemplate.java (2012-10-26)
@@ -56,8 +56,8 @@ import com.abiquo.server.core.appslibrary.VirtualMachineTemplatePersistentDto;
 import com.abiquo.server.core.infrastructure.storage.VolumeManagementDto;
 import com.abiquo.server.core.pricing.CostCodeDto;
 import com.google.common.base.Predicate;
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.google.common.collect.Lists;
 import com.google.inject.TypeLiteral;
 
 /**
@@ -239,7 +239,7 @@ public class VirtualMachineTemplate extends DomainWrapper<VirtualMachineTemplate
     *         matching the given filter.
     */
    public List<Conversion> listConversions(final Predicate<Conversion> filter) {
-      return Lists.newLinkedList(filter(listConversions(), filter));
+      return ImmutableList.copyOf(filter(listConversions(), filter));
    }
 
    /**
Project jclouds/jclouds in file ...ava.org.jclouds.abiquo.domain.enterprise.Role.java (2012-10-26)
@@ -24,8 +24,8 @@ import static com.google.common.collect.Iterables.filter;
 
 import java.util.List;
 
-import org.jclouds.abiquo.AbiquoAsyncApi;
 import org.jclouds.abiquo.AbiquoApi;
+import org.jclouds.abiquo.AbiquoAsyncApi;
 import org.jclouds.abiquo.domain.DomainWrapper;
 import org.jclouds.abiquo.domain.config.Privilege;
 import org.jclouds.abiquo.reference.ValidationErrors;
@@ -36,8 +36,8 @@ import com.abiquo.model.rest.RESTLink;
 import com.abiquo.server.core.enterprise.PrivilegesDto;
 import com.abiquo.server.core.enterprise.RoleDto;
 import com.google.common.base.Predicate;
+import com.google.common.collect.ImmutableList;
 import com.google.common.collect.Iterables;
-import com.google.common.collect.Lists;
 
 /**
  * Adds high level functionality to {@link RoleDto}.
@@ -144,7 +144,7 @@ public class Role extends DomainWrapper<RoleDto> {
    }
 
    public List<Privilege> listPrivileges(final Predicate<Privilege> filter) {
-      return Lists.newLinkedList(filter(listPrivileges(), filter));
+      return ImmutableList.copyOf(filter(listPrivileges(), filter));
    }
 
    public Privilege findPrivileges(final Predicate<Privilege> filter) {