Remove redundant imports

Also enforce no new ones via Checkstyle
This commit is contained in:
Andrew Gaul 2013-12-12 18:22:46 -08:00
parent 8bf23069d9
commit 0398276be3
25 changed files with 1 additions and 28 deletions

View File

@ -37,7 +37,6 @@ import org.jclouds.cloudstack.domain.ZoneSecurityGroupNamePortsCidrs;
import org.jclouds.cloudstack.features.AsyncJobApi; import org.jclouds.cloudstack.features.AsyncJobApi;
import org.jclouds.cloudstack.features.SecurityGroupApi; import org.jclouds.cloudstack.features.SecurityGroupApi;
import org.jclouds.cloudstack.features.ZoneApi; import org.jclouds.cloudstack.features.ZoneApi;
import org.jclouds.cloudstack.functions.ZoneIdToZone;
import org.jclouds.cloudstack.predicates.JobComplete; import org.jclouds.cloudstack.predicates.JobComplete;
import org.jclouds.cloudstack.suppliers.ZoneIdToZoneSupplier; import org.jclouds.cloudstack.suppliers.ZoneIdToZoneSupplier;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -17,7 +17,6 @@
package org.jclouds.rackspace.cloudidentity.v2_0; package org.jclouds.rackspace.cloudidentity.v2_0;
import org.jclouds.View; import org.jclouds.View;
import org.jclouds.rackspace.cloudidentity.v2_0.CloudIdentityApiMetadata;
import org.jclouds.rest.internal.BaseRestApiMetadataTest; import org.jclouds.rest.internal.BaseRestApiMetadataTest;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -17,7 +17,6 @@
package org.jclouds.rackspace.cloudloadbalancers.v1; package org.jclouds.rackspace.cloudloadbalancers.v1;
import org.jclouds.loadbalancer.internal.BaseLoadBalancerServiceApiMetadataTest; import org.jclouds.loadbalancer.internal.BaseLoadBalancerServiceApiMetadataTest;
import org.jclouds.rackspace.cloudloadbalancers.v1.CloudLoadBalancersApiMetadata;
import org.testng.annotations.Test; import org.testng.annotations.Test;
/** /**

View File

@ -42,7 +42,6 @@ import org.jclouds.rackspace.cloudloadbalancers.v1.domain.UpdateNode;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.AddNode; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.AddNode;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer.Status; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer.Status;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.VirtualIP.Type; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.VirtualIP.Type;
import org.jclouds.rackspace.cloudloadbalancers.v1.features.LoadBalancerApi;
import org.jclouds.rackspace.cloudloadbalancers.v1.internal.BaseCloudLoadBalancersApiLiveTest; import org.jclouds.rackspace.cloudloadbalancers.v1.internal.BaseCloudLoadBalancersApiLiveTest;
import org.testng.annotations.AfterGroups; import org.testng.annotations.AfterGroups;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -36,8 +36,6 @@ import org.jclouds.rackspace.cloudloadbalancers.v1.domain.VirtualIPWithId;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor.Type; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.HealthMonitor.Type;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer.Status; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer.Status;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer.Algorithm; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer.Algorithm;
import org.jclouds.rackspace.cloudloadbalancers.v1.functions.ConvertLB;
import org.jclouds.rackspace.cloudloadbalancers.v1.functions.ParseLoadBalancer;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import com.google.common.base.Function; import com.google.common.base.Function;

View File

@ -23,8 +23,6 @@ import org.jclouds.http.HttpResponse;
import org.jclouds.json.BaseItemParserTest; import org.jclouds.json.BaseItemParserTest;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer.Status; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer.Status;
import org.jclouds.rackspace.cloudloadbalancers.v1.functions.ConvertLB;
import org.jclouds.rackspace.cloudloadbalancers.v1.functions.ParseLoadBalancer;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import com.google.common.base.Function; import com.google.common.base.Function;

View File

@ -29,8 +29,6 @@ import org.jclouds.rackspace.cloudloadbalancers.v1.domain.VirtualIP;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.VirtualIPWithId; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.VirtualIPWithId;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer.Status; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.LoadBalancer.Status;
import org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer.Algorithm; import org.jclouds.rackspace.cloudloadbalancers.v1.domain.internal.BaseLoadBalancer.Algorithm;
import org.jclouds.rackspace.cloudloadbalancers.v1.functions.ConvertLB;
import org.jclouds.rackspace.cloudloadbalancers.v1.functions.ParseLoadBalancers;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import com.google.common.base.Function; import com.google.common.base.Function;

View File

@ -20,7 +20,6 @@ import static org.jclouds.rackspace.cloudloadbalancers.v1.options.ListOptions.Bu
import static org.jclouds.rackspace.cloudloadbalancers.v1.options.ListOptions.Builder.marker; import static org.jclouds.rackspace.cloudloadbalancers.v1.options.ListOptions.Builder.marker;
import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertEquals;
import org.jclouds.rackspace.cloudloadbalancers.v1.options.ListOptions;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableList;

View File

@ -21,7 +21,6 @@ import static org.testng.Assert.assertEquals;
import java.io.InputStream; import java.io.InputStream;
import org.jclouds.aws.domain.SessionCredentials; import org.jclouds.aws.domain.SessionCredentials;
import org.jclouds.aws.xml.SessionCredentialsHandler;
import org.jclouds.date.internal.SimpleDateFormatDateService; import org.jclouds.date.internal.SimpleDateFormatDateService;
import org.jclouds.http.functions.BaseHandlerTest; import org.jclouds.http.functions.BaseHandlerTest;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -18,7 +18,6 @@ package org.jclouds.openstack.swift.options;
import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertEquals;
import org.jclouds.openstack.swift.options.CreateContainerOptions;
import org.jclouds.openstack.swift.reference.SwiftHeaders; import org.jclouds.openstack.swift.reference.SwiftHeaders;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -22,7 +22,6 @@ import java.net.URI;
import java.util.Map; import java.util.Map;
import java.util.Set; import java.util.Set;
import org.jclouds.compute.domain.ComputeType;
import org.jclouds.compute.domain.internal.ComputeMetadataImpl; import org.jclouds.compute.domain.internal.ComputeMetadataImpl;
import org.jclouds.domain.Location; import org.jclouds.domain.Location;
import org.jclouds.javax.annotation.Nullable; import org.jclouds.javax.annotation.Nullable;

View File

@ -18,7 +18,6 @@ package org.jclouds.compute.functions;
import static org.testng.Assert.assertEquals; import static org.testng.Assert.assertEquals;
import org.jclouds.compute.functions.Sha512Crypt;
import org.testng.annotations.DataProvider; import org.testng.annotations.DataProvider;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -35,7 +35,6 @@ import java.util.Map;
import org.jclouds.crypto.Pems; import org.jclouds.crypto.Pems;
import org.jclouds.io.Payloads; import org.jclouds.io.Payloads;
import org.jclouds.ssh.SshKeys;
import org.jclouds.util.Strings2; import org.jclouds.util.Strings2;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -35,7 +35,6 @@ import org.jclouds.crypto.Crypto;
import org.jclouds.crypto.Pems; import org.jclouds.crypto.Pems;
import org.jclouds.date.DateService; import org.jclouds.date.DateService;
import org.jclouds.date.internal.SimpleDateFormatDateService; import org.jclouds.date.internal.SimpleDateFormatDateService;
import org.jclouds.encryption.bouncycastle.BouncyCastleCrypto;
import org.jclouds.encryption.internal.JCECrypto; import org.jclouds.encryption.internal.JCECrypto;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -19,7 +19,6 @@ package org.jclouds.aws.ec2.features;
import static org.jclouds.ec2.domain.Tag.ResourceType.SECURITY_GROUP; import static org.jclouds.ec2.domain.Tag.ResourceType.SECURITY_GROUP;
import org.jclouds.aws.ec2.AWSEC2Api; import org.jclouds.aws.ec2.AWSEC2Api;
import org.jclouds.aws.ec2.features.AWSSecurityGroupApi;
import org.jclouds.ec2.features.internal.BaseTagApiLiveTest; import org.jclouds.ec2.features.internal.BaseTagApiLiveTest;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -16,7 +16,6 @@
*/ */
package org.jclouds.aws.route53; package org.jclouds.aws.route53;
import org.jclouds.aws.route53.AWSRoute53ProviderMetadata;
import org.jclouds.route53.Route53ApiMetadata; import org.jclouds.route53.Route53ApiMetadata;
import org.jclouds.providers.internal.BaseProviderMetadataTest; import org.jclouds.providers.internal.BaseProviderMetadataTest;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -16,7 +16,6 @@
*/ */
package org.jclouds.aws.sts; package org.jclouds.aws.sts;
import org.jclouds.aws.sts.AWSSTSProviderMetadata;
import org.jclouds.sts.STSApiMetadata; import org.jclouds.sts.STSApiMetadata;
import org.jclouds.providers.internal.BaseProviderMetadataTest; import org.jclouds.providers.internal.BaseProviderMetadataTest;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -16,8 +16,6 @@
*/ */
package org.jclouds.dynect.v3; package org.jclouds.dynect.v3;
import org.jclouds.dynect.v3.DynECTApiMetadata;
import org.jclouds.dynect.v3.DynECTProviderMetadata;
import org.jclouds.providers.internal.BaseProviderMetadataTest; import org.jclouds.providers.internal.BaseProviderMetadataTest;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -18,7 +18,6 @@ package org.jclouds.rackspace.cloudblockstorage.uk;
import org.jclouds.openstack.cinder.v1.CinderApiMetadata; import org.jclouds.openstack.cinder.v1.CinderApiMetadata;
import org.jclouds.providers.internal.BaseProviderMetadataTest; import org.jclouds.providers.internal.BaseProviderMetadataTest;
import org.jclouds.rackspace.cloudblockstorage.uk.CloudBlockStorageUKProviderMetadata;
import org.testng.annotations.Test; import org.testng.annotations.Test;
/** /**

View File

@ -17,7 +17,6 @@
package org.jclouds.rackspace.cloudloadbalancers.uk; package org.jclouds.rackspace.cloudloadbalancers.uk;
import org.jclouds.providers.internal.BaseProviderMetadataTest; import org.jclouds.providers.internal.BaseProviderMetadataTest;
import org.jclouds.rackspace.cloudloadbalancers.uk.CloudLoadBalancersUKProviderMetadata;
import org.jclouds.rackspace.cloudloadbalancers.v1.CloudLoadBalancersApiMetadata; import org.jclouds.rackspace.cloudloadbalancers.v1.CloudLoadBalancersApiMetadata;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -17,7 +17,6 @@
package org.jclouds.rackspace.cloudloadbalancers.us; package org.jclouds.rackspace.cloudloadbalancers.us;
import org.jclouds.providers.internal.BaseProviderMetadataTest; import org.jclouds.providers.internal.BaseProviderMetadataTest;
import org.jclouds.rackspace.cloudloadbalancers.us.CloudLoadBalancersUSProviderMetadata;
import org.jclouds.rackspace.cloudloadbalancers.v1.CloudLoadBalancersApiMetadata; import org.jclouds.rackspace.cloudloadbalancers.v1.CloudLoadBalancersApiMetadata;
import org.testng.annotations.Test; import org.testng.annotations.Test;

View File

@ -35,7 +35,6 @@ package org.jclouds.rackspace.cloudservers.uk;
import org.jclouds.openstack.nova.v2_0.NovaApiMetadata; import org.jclouds.openstack.nova.v2_0.NovaApiMetadata;
import org.jclouds.providers.internal.BaseProviderMetadataTest; import org.jclouds.providers.internal.BaseProviderMetadataTest;
import org.jclouds.rackspace.cloudservers.uk.CloudServersUKProviderMetadata;
import org.testng.annotations.Test; import org.testng.annotations.Test;
/** /**

View File

@ -35,7 +35,6 @@ package org.jclouds.rackspace.cloudservers.us;
import org.jclouds.openstack.nova.v2_0.NovaApiMetadata; import org.jclouds.openstack.nova.v2_0.NovaApiMetadata;
import org.jclouds.providers.internal.BaseProviderMetadataTest; import org.jclouds.providers.internal.BaseProviderMetadataTest;
import org.jclouds.rackspace.cloudservers.us.CloudServersUSProviderMetadata;
import org.testng.annotations.Test; import org.testng.annotations.Test;
/** /**

View File

@ -35,6 +35,7 @@
--> -->
<module name="ModifierOrder"/> <module name="ModifierOrder"/>
<module name="MultipleVariableDeclarations"/> <module name="MultipleVariableDeclarations"/>
<module name="RedundantImport"/>
<module name="RedundantModifier"> <module name="RedundantModifier">
<!-- VARIABLE_DEF disabled --> <!-- VARIABLE_DEF disabled -->
<property name="tokens" value="METHOD_DEF, ANNOTATION_FIELD_DEF, INTERFACE_DEF"/> <property name="tokens" value="METHOD_DEF, ANNOTATION_FIELD_DEF, INTERFACE_DEF"/>

View File

@ -23,7 +23,6 @@ import java.io.IOException;
import org.jclouds.scriptbuilder.InitScript; import org.jclouds.scriptbuilder.InitScript;
import org.jclouds.scriptbuilder.domain.OsFamily; import org.jclouds.scriptbuilder.domain.OsFamily;
import org.jclouds.scriptbuilder.domain.ShellToken; import org.jclouds.scriptbuilder.domain.ShellToken;
import org.jclouds.scriptbuilder.statements.git.InstallGit;
import org.testng.annotations.Test; import org.testng.annotations.Test;
import com.google.common.base.Charsets; import com.google.common.base.Charsets;