Enforce modifier order via Checkstyle

Also fix violations, via:

find -name \*.java | xargs sed -i 's/final static/static final/'
find -name \*.java | xargs sed -i 's/static private/private static/'
find -name \*.java | xargs sed -i 's/static abstract/abstract static/'
This commit is contained in:
Andrew Gaul 2012-11-01 19:49:46 -07:00
parent d4c01e6c2e
commit 08b9982384
316 changed files with 534 additions and 533 deletions

View File

@ -43,16 +43,16 @@ public interface Region {
/** /**
* Chicago (ORD) https://ord.loadbalancers.api.rackspacecloud.com/v1.0/1234/ * Chicago (ORD) https://ord.loadbalancers.api.rackspacecloud.com/v1.0/1234/
*/ */
public final static String ORD = "ORD"; public static final String ORD = "ORD";
/** /**
* Dallas/Ft. Worth (DFW) https://dfw.loadbalancers.api.rackspacecloud.com/v1.0/1234/ * Dallas/Ft. Worth (DFW) https://dfw.loadbalancers.api.rackspacecloud.com/v1.0/1234/
*/ */
public final static String DFW = "DFW"; public static final String DFW = "DFW";
/** /**
* London/Slough (LON) https://lon.loadbalancers.api.rackspacecloud.com/v1.0/1234/ * London/Slough (LON) https://lon.loadbalancers.api.rackspacecloud.com/v1.0/1234/
*/ */
public final static String LON = "LON"; public static final String LON = "LON";
} }

View File

@ -40,7 +40,7 @@ public class AbsoluteLimit {
return new ConcreteBuilder().fromAbsoluteLimit(this); return new ConcreteBuilder().fromAbsoluteLimit(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String name; protected String name;

View File

@ -47,7 +47,7 @@ public class Addresses {
return new ConcreteBuilder().fromAddresses(this); return new ConcreteBuilder().fromAddresses(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected Set<String> publicAddresses; protected Set<String> publicAddresses;

View File

@ -41,7 +41,7 @@ public class BackupSchedule {
return new ConcreteBuilder().fromBackupSchedule(this); return new ConcreteBuilder().fromBackupSchedule(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected DailyBackup daily; protected DailyBackup daily;

View File

@ -43,7 +43,7 @@ public class Flavor {
return new ConcreteBuilder().fromFlavor(this); return new ConcreteBuilder().fromFlavor(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected int id; protected int id;

View File

@ -46,7 +46,7 @@ public class Image {
return new ConcreteBuilder().fromImage(this); return new ConcreteBuilder().fromImage(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected Date created; protected Date created;

View File

@ -42,7 +42,7 @@ public class Limits {
return new ConcreteBuilder().fromLimits(this); return new ConcreteBuilder().fromLimits(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected Set<RateLimit> rate = ImmutableSet.of(); protected Set<RateLimit> rate = ImmutableSet.of();

View File

@ -53,7 +53,7 @@ public class RateLimit {
return new ConcreteBuilder().fromRateLimit(this); return new ConcreteBuilder().fromRateLimit(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String uri; protected String uri;

View File

@ -45,7 +45,7 @@ public class Server {
return new ConcreteBuilder().fromServer(this); return new ConcreteBuilder().fromServer(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected int id; protected int id;

View File

@ -36,7 +36,7 @@ public class ShareIp {
return new ConcreteBuilder().fromShareIp(this); return new ConcreteBuilder().fromShareIp(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected boolean configureServer; protected boolean configureServer;

View File

@ -47,7 +47,7 @@ public class SharedIpGroup {
return new ConcreteBuilder().fromSharedIpGroup(this); return new ConcreteBuilder().fromSharedIpGroup(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected int id; protected int id;

View File

@ -40,7 +40,7 @@ public class Version {
return new ConcreteBuilder().fromVersion(this); return new ConcreteBuilder().fromVersion(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String docURL; protected String docURL;

View File

@ -25,7 +25,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
* @author Adrian Cole * @author Adrian Cole
*/ */
public abstract class Device { public abstract class Device {
public static abstract class Builder { public abstract static class Builder {
protected String uuid; protected String uuid;
protected MediaType mediaType = MediaType.DISK; protected MediaType mediaType = MediaType.DISK;

View File

@ -117,7 +117,7 @@ public class Account extends ForwardingSet<User> {
return new ConcreteBuilder().fromAccount(this); return new ConcreteBuilder().fromAccount(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -43,7 +43,7 @@ public class Alert {
return new ConcreteBuilder().fromAlert(this); return new ConcreteBuilder().fromAlert(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -40,7 +40,7 @@ public class ApiKeyPair {
return new ConcreteBuilder().fromApiKeyPair(this); return new ConcreteBuilder().fromApiKeyPair(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String apiKey; protected String apiKey;

View File

@ -41,7 +41,7 @@ public class AsyncCreateResponse {
return new ConcreteBuilder().fromAsyncCreateResponse(this); return new ConcreteBuilder().fromAsyncCreateResponse(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -116,7 +116,7 @@ public class AsyncJob<S> {
return new ConcreteBuilder<S>().fromAsyncJob(this); return new ConcreteBuilder<S>().fromAsyncJob(this);
} }
public static abstract class Builder<T extends Builder<T, S>, S> { public abstract static class Builder<T extends Builder<T, S>, S> {
protected abstract T self(); protected abstract T self();
protected String accountId; protected String accountId;

View File

@ -78,7 +78,7 @@ public class AsyncJobError {
return new ConcreteBuilder().fromAsyncJobError(this); return new ConcreteBuilder().fromAsyncJobError(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected AsyncJobError.ErrorCode errorCode; protected AsyncJobError.ErrorCode errorCode;

View File

@ -40,7 +40,7 @@ public class Capabilities {
return new ConcreteBuilder().fromCapabilities(this); return new ConcreteBuilder().fromCapabilities(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String cloudStackVersion; protected String cloudStackVersion;

View File

@ -88,7 +88,7 @@ public class Capacity implements Comparable<Capacity> {
return new ConcreteBuilder().fromCapacity(this); return new ConcreteBuilder().fromCapacity(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected long capacityTotal; protected long capacityTotal;

View File

@ -67,7 +67,7 @@ public class Cluster implements Comparable<Cluster> {
return new ConcreteBuilder().fromCluster(this); return new ConcreteBuilder().fromCluster(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -42,7 +42,7 @@ public class ConfigurationEntry implements Comparable<ConfigurationEntry> {
return new ConcreteBuilder().fromConfigurationEntry(this); return new ConcreteBuilder().fromConfigurationEntry(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String category; protected String category;

View File

@ -45,7 +45,7 @@ public class DiskOffering implements Comparable<DiskOffering> {
return new ConcreteBuilder().fromDiskOffering(this); return new ConcreteBuilder().fromDiskOffering(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -42,7 +42,7 @@ public class Domain implements Comparable<Domain> {
return new ConcreteBuilder().fromDomain(this); return new ConcreteBuilder().fromDomain(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -40,7 +40,7 @@ public class EncryptedPasswordAndPrivateKey {
return new ConcreteBuilder().fromEncryptedPasswordAndPrivateKey(this); return new ConcreteBuilder().fromEncryptedPasswordAndPrivateKey(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String encryptedPassword; protected String encryptedPassword;

View File

@ -43,7 +43,7 @@ public class Event implements Comparable<Event> {
return new ConcreteBuilder().fromEvent(this); return new ConcreteBuilder().fromEvent(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -90,7 +90,7 @@ public class FirewallRule implements Comparable<FirewallRule> {
return new ConcreteBuilder().fromFirewallRule(this); return new ConcreteBuilder().fromFirewallRule(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -130,7 +130,7 @@ public class Host implements Comparable<Host> {
return new ConcreteBuilder().fromHost(this); return new ConcreteBuilder().fromHost(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -44,7 +44,7 @@ public class IPForwardingRule implements Comparable<IPForwardingRule> {
return new ConcreteBuilder().fromIPForwardingRule(this); return new ConcreteBuilder().fromIPForwardingRule(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -58,7 +58,7 @@ public class ISO {
return new ConcreteBuilder().fromISO(this); return new ConcreteBuilder().fromISO(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -43,7 +43,7 @@ public class ISOExtraction {
return new ConcreteBuilder().fromISOExtraction(this); return new ConcreteBuilder().fromISOExtraction(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -44,7 +44,7 @@ public class ISOPermissions {
return new ConcreteBuilder().fromISOPermissions(this); return new ConcreteBuilder().fromISOPermissions(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -40,7 +40,7 @@ public class IngressRule implements Comparable<IngressRule> {
return new ConcreteBuilder().fromIngressRule(this); return new ConcreteBuilder().fromIngressRule(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String account; protected String account;

View File

@ -43,7 +43,7 @@ public class JobResult {
return new ConcreteBuilder().fromJobResult(this); return new ConcreteBuilder().fromJobResult(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected boolean success; protected boolean success;

View File

@ -83,7 +83,7 @@ public class LoadBalancerRule {
return new ConcreteBuilder().fromLoadBalancerRule(this); return new ConcreteBuilder().fromLoadBalancerRule(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -40,7 +40,7 @@ public class LoginResponse {
return new ConcreteBuilder().fromLoginResponse(this); return new ConcreteBuilder().fromLoginResponse(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String username; protected String username;

View File

@ -43,7 +43,7 @@ public class NIC {
return new ConcreteBuilder().fromNIC(this); return new ConcreteBuilder().fromNIC(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -48,7 +48,7 @@ public class Network {
return new ConcreteBuilder().fromNetwork(this); return new ConcreteBuilder().fromNetwork(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -45,7 +45,7 @@ public class NetworkOffering implements Comparable<NetworkOffering> {
return new ConcreteBuilder().fromNetworkOffering(this); return new ConcreteBuilder().fromNetworkOffering(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -50,7 +50,7 @@ public class NetworkService implements Comparable<NetworkService> {
return new ConcreteBuilder().fromCapability(this); return new ConcreteBuilder().fromCapability(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String name; protected String name;
@ -149,7 +149,7 @@ public class NetworkService implements Comparable<NetworkService> {
return new ConcreteBuilder().fromNetworkService(this); return new ConcreteBuilder().fromNetworkService(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String name; protected String name;

View File

@ -42,7 +42,7 @@ public class OSType implements Comparable<OSType> {
return new ConcreteBuilder().fromOSType(this); return new ConcreteBuilder().fromOSType(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -42,7 +42,7 @@ public class Pod implements Comparable<Pod> {
return new ConcreteBuilder().fromPod(this); return new ConcreteBuilder().fromPod(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -88,7 +88,7 @@ public class PortForwardingRule implements Comparable<PortForwardingRule> {
return new ConcreteBuilder().fromPortForwardingRule(this); return new ConcreteBuilder().fromPortForwardingRule(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -64,7 +64,7 @@ public class PublicIPAddress {
return new ConcreteBuilder().fromPublicIPAddress(this); return new ConcreteBuilder().fromPublicIPAddress(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -104,7 +104,7 @@ public class ResourceLimit {
return new ConcreteBuilder().fromResourceLimit(this); return new ConcreteBuilder().fromResourceLimit(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String account; protected String account;

View File

@ -45,7 +45,7 @@ public class SecurityGroup implements Comparable<SecurityGroup> {
return new ConcreteBuilder().fromSecurityGroup(this); return new ConcreteBuilder().fromSecurityGroup(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -45,7 +45,7 @@ public class ServiceOffering implements Comparable<ServiceOffering> {
return new ConcreteBuilder().fromServiceOffering(this); return new ConcreteBuilder().fromServiceOffering(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -94,7 +94,7 @@ public class Snapshot {
return new ConcreteBuilder().fromSnapshot(this); return new ConcreteBuilder().fromSnapshot(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -42,7 +42,7 @@ public class SnapshotPolicy {
return new ConcreteBuilder().fromSnapshotPolicy(this); return new ConcreteBuilder().fromSnapshotPolicy(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -41,7 +41,7 @@ public class SnapshotPolicySchedule {
return new ConcreteBuilder().fromSnapshotPolicySchedule(this); return new ConcreteBuilder().fromSnapshotPolicySchedule(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected Snapshot.Interval interval; protected Snapshot.Interval interval;

View File

@ -42,7 +42,7 @@ public class SshKeyPair {
return new ConcreteBuilder().fromSshKeyPair(this); return new ConcreteBuilder().fromSshKeyPair(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String fingerprint; protected String fingerprint;

View File

@ -98,7 +98,7 @@ public class StoragePool implements Comparable<StoragePool> {
return new ConcreteBuilder().fromStoragePool(this); return new ConcreteBuilder().fromStoragePool(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -135,7 +135,7 @@ public class Template implements Comparable<Template> {
return new ConcreteBuilder().fromTemplate(this); return new ConcreteBuilder().fromTemplate(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -41,7 +41,7 @@ public class TemplateExtraction implements Comparable<TemplateExtraction> {
return new ConcreteBuilder().fromTemplateExtraction(this); return new ConcreteBuilder().fromTemplateExtraction(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -42,7 +42,7 @@ public class TemplateMetadata {
return new ConcreteBuilder().fromTemplateMetadata(this); return new ConcreteBuilder().fromTemplateMetadata(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String name; protected String name;

View File

@ -40,7 +40,7 @@ public class TemplatePermission {
return new ConcreteBuilder().fromTemplatePermission(this); return new ConcreteBuilder().fromTemplatePermission(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -94,7 +94,7 @@ public class UsageRecord {
return new ConcreteBuilder().fromUsageRecord(this); return new ConcreteBuilder().fromUsageRecord(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -64,7 +64,7 @@ public class User {
return new ConcreteBuilder().fromUser(this); return new ConcreteBuilder().fromUser(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -43,7 +43,7 @@ public class VMGroup {
return new ConcreteBuilder().fromVMGroup(this); return new ConcreteBuilder().fromVMGroup(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -68,7 +68,7 @@ public class VirtualMachine {
return new ConcreteBuilder().fromVirtualMachine(this); return new ConcreteBuilder().fromVirtualMachine(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -42,7 +42,7 @@ public class VlanIPRange implements Comparable<VlanIPRange> {
return new ConcreteBuilder().fromVlanIPRange(this); return new ConcreteBuilder().fromVlanIPRange(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -122,7 +122,7 @@ public class Volume {
return new ConcreteBuilder().fromVolume(this); return new ConcreteBuilder().fromVolume(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -42,7 +42,7 @@ public class Zone implements Comparable<Zone> {
return new ConcreteBuilder().fromZone(this); return new ConcreteBuilder().fromZone(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -36,7 +36,7 @@ import com.google.common.collect.ImmutableSet;
* @author Adrian Cole * @author Adrian Cole
*/ */
public class ListAsyncJobsOptions extends AccountInDomainOptions { public class ListAsyncJobsOptions extends AccountInDomainOptions {
private final static DateService dateService = new SimpleDateFormatDateService(); private static final DateService dateService = new SimpleDateFormatDateService();
public static final ListAsyncJobsOptions NONE = new ListAsyncJobsOptions(); public static final ListAsyncJobsOptions NONE = new ListAsyncJobsOptions();

View File

@ -75,7 +75,7 @@ import com.google.common.net.HostSpecifier;
*/ */
@Test(groups = "live", singleThreaded = true, testName = "VirtualMachineClientLiveTest") @Test(groups = "live", singleThreaded = true, testName = "VirtualMachineClientLiveTest")
public class VirtualMachineClientLiveTest extends BaseCloudStackClientLiveTest { public class VirtualMachineClientLiveTest extends BaseCloudStackClientLiveTest {
private final static Logger logger = Logger.getAnonymousLogger(); private static final Logger logger = Logger.getAnonymousLogger();
private VirtualMachine vm = null; private VirtualMachine vm = null;

View File

@ -82,7 +82,7 @@ public class HardwarePropertyHandler extends ParseSax.HandlerWithResult<Hardware
private static final Pattern LONG = Pattern.compile("^[0-9]+$"); private static final Pattern LONG = Pattern.compile("^[0-9]+$");
private static final Pattern DOUBLE = Pattern.compile("^[0-9]+\\.[0-9]+$"); private static final Pattern DOUBLE = Pattern.compile("^[0-9]+\\.[0-9]+$");
public static @Nullable @Nullable public static
Number parseNumberOrNull(String in) { Number parseNumberOrNull(String in) {
if (DOUBLE.matcher(in).matches()) if (DOUBLE.matcher(in).matches())
return new Double(in); return new Double(in);

View File

@ -44,7 +44,7 @@ import com.google.inject.Provides;
* @author Adrian Cole * @author Adrian Cole
*/ */
public interface EC2AsyncClient { public interface EC2AsyncClient {
public final static String VERSION = "2010-06-15"; public static final String VERSION = "2010-06-15";
/** /**
* *
* @return the Region codes configured * @return the Region codes configured

View File

@ -46,7 +46,7 @@ public class SecurityGroup extends ForwardingSet<IpPermission> {
return new ConcreteBuilder().fromSecurityGroup(this); return new ConcreteBuilder().fromSecurityGroup(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String region; protected String region;

View File

@ -25,7 +25,7 @@ import static com.google.common.base.Preconditions.checkNotNull;
* @author Adrian Cole * @author Adrian Cole
*/ */
public abstract class Device { public abstract class Device {
public static abstract class Builder { public abstract static class Builder {
protected String uuid; protected String uuid;
protected MediaType mediaType = MediaType.DISK; protected MediaType mediaType = MediaType.DISK;

View File

@ -39,7 +39,7 @@ public class AbsoluteLimit {
return new ConcreteBuilder().fromAbsoluteLimit(this); return new ConcreteBuilder().fromAbsoluteLimit(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String name; protected String name;

View File

@ -63,7 +63,7 @@ public class Address {
}; };
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String address; protected String address;

View File

@ -42,7 +42,7 @@ public class Addresses {
return new ConcreteBuilder().fromAddresses(this); return new ConcreteBuilder().fromAddresses(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected Set<Address> publicAddresses = ImmutableSet.of(); protected Set<Address> publicAddresses = ImmutableSet.of();

View File

@ -44,7 +44,7 @@ public class Flavor extends Resource {
return new ConcreteBuilder().fromFlavor(this); return new ConcreteBuilder().fromFlavor(this);
} }
public static abstract class Builder<T extends Builder<T>> extends Resource.Builder<T> { public abstract static class Builder<T extends Builder<T>> extends Resource.Builder<T> {
protected String name; protected String name;
protected Integer disk; protected Integer disk;
protected Integer ram; protected Integer ram;

View File

@ -44,7 +44,7 @@ public class FloatingIP extends Resource {
return new ConcreteBuilder().fromFloatingIP(this); return new ConcreteBuilder().fromFloatingIP(this);
} }
public static abstract class Builder<T extends Builder<T>> extends Resource.Builder<T> { public abstract static class Builder<T extends Builder<T>> extends Resource.Builder<T> {
protected String ip; protected String ip;
protected String fixedIP; protected String fixedIP;
protected int instanceID; protected int instanceID;

View File

@ -50,7 +50,7 @@ public class Image extends Resource {
return new ConcreteBuilder().fromImage(this); return new ConcreteBuilder().fromImage(this);
} }
public static abstract class Builder<T extends Builder<T>> extends Resource.Builder<T> { public abstract static class Builder<T extends Builder<T>> extends Resource.Builder<T> {
protected String name; protected String name;
protected Integer progress; protected Integer progress;
protected String serverRef; protected String serverRef;

View File

@ -37,7 +37,7 @@ public class Limits {
return new ConcreteBuilder().fromLimits(this); return new ConcreteBuilder().fromLimits(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected List<RateLimit> rate = ImmutableList.of(); protected List<RateLimit> rate = ImmutableList.of();

View File

@ -53,7 +53,7 @@ public class RateLimit {
return new ConcreteBuilder().fromRateLimit(this); return new ConcreteBuilder().fromRateLimit(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String uri; protected String uri;

View File

@ -69,7 +69,7 @@ public abstract class Resource {
} }
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected int id; protected int id;

View File

@ -42,7 +42,7 @@ public class SecurityGroup {
return new ConcreteBuilder().fromSecurityGroup(this); return new ConcreteBuilder().fromSecurityGroup(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected int id; protected int id;

View File

@ -50,7 +50,7 @@ public class Server extends Resource {
return new ConcreteBuilder().fromServer(this); return new ConcreteBuilder().fromServer(this);
} }
public static abstract class Builder<T extends Builder<T>> extends Resource.Builder<T> { public abstract static class Builder<T extends Builder<T>> extends Resource.Builder<T> {
protected String name; protected String name;
protected Map<String, String> metadata = ImmutableMap.of(); protected Map<String, String> metadata = ImmutableMap.of();
protected Addresses addresses; protected Addresses addresses;

View File

@ -48,7 +48,7 @@ public class Access extends ForwardingSet<Service> implements Comparable<Access>
return new ConcreteBuilder().fromAccess(this); return new ConcreteBuilder().fromAccess(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected Token token; protected Token token;

View File

@ -50,7 +50,7 @@ public class ApiAccessKeyCredentials {
return new ApiAccessKeyCredentials(accessKey, secretKey); return new ApiAccessKeyCredentials(accessKey, secretKey);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String accessKey; protected String accessKey;

View File

@ -49,7 +49,7 @@ public class ApiMetadata extends Resource {
return new ConcreteBuilder().fromApiMetadata(this); return new ConcreteBuilder().fromApiMetadata(this);
} }
public static abstract class Builder<T extends Builder<T>> extends Resource.Builder<T> { public abstract static class Builder<T extends Builder<T>> extends Resource.Builder<T> {
protected String status; protected String status;
protected Date updated; protected Date updated;
protected Set<MediaType> mediaTypes = ImmutableSet.of(); protected Set<MediaType> mediaTypes = ImmutableSet.of();

View File

@ -47,7 +47,7 @@ public class Endpoint {
return new ConcreteBuilder().fromEndpoint(this); return new ConcreteBuilder().fromEndpoint(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -38,7 +38,7 @@ public class MediaType {
return new ConcreteBuilder().fromMediaType(this); return new ConcreteBuilder().fromMediaType(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String base; protected String base;

View File

@ -49,7 +49,7 @@ public class PasswordCredentials {
return new PasswordCredentials(username, password); return new PasswordCredentials(username, password);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String username; protected String username;

View File

@ -49,7 +49,7 @@ public class Role {
return new ConcreteBuilder().fromRole(this); return new ConcreteBuilder().fromRole(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;
protected String name; protected String name;

View File

@ -47,7 +47,7 @@ public class Service extends ForwardingSet<Endpoint> {
return new ConcreteBuilder().fromService(this); return new ConcreteBuilder().fromService(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String type; protected String type;

View File

@ -45,7 +45,7 @@ public class Tenant {
return new ConcreteBuilder().fromTenant(this); return new ConcreteBuilder().fromTenant(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -49,7 +49,7 @@ public class Token implements Comparable<Token> {
return new ConcreteBuilder().fromToken(this); return new ConcreteBuilder().fromToken(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -51,7 +51,7 @@ public class User extends ForwardingSet<Role> {
return new ConcreteBuilder().fromUser(this); return new ConcreteBuilder().fromUser(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -51,7 +51,7 @@ public class Extension extends Resource {
return new ConcreteBuilder().fromExtension(this); return new ConcreteBuilder().fromExtension(this);
} }
public static abstract class Builder<T extends Builder<T>> extends Resource.Builder<T> { public abstract static class Builder<T extends Builder<T>> extends Resource.Builder<T> {
protected URI namespace; protected URI namespace;
protected String alias; protected String alias;
protected Date updated; protected Date updated;

View File

@ -47,7 +47,7 @@ public class Resource implements Comparable<Resource> {
return new ConcreteBuilder().fromResource(this); return new ConcreteBuilder().fromResource(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -48,7 +48,7 @@ public class Address {
return builder().version(6).addr(addr).build(); return builder().version(6).addr(addr).build();
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String addr; protected String addr;

View File

@ -49,7 +49,7 @@ public class Flavor extends Resource {
return new ConcreteBuilder().fromFlavor(this); return new ConcreteBuilder().fromFlavor(this);
} }
public static abstract class Builder<T extends Builder<T>> extends Resource.Builder<T> { public abstract static class Builder<T extends Builder<T>> extends Resource.Builder<T> {
protected int ram; protected int ram;
protected int disk; protected int disk;
protected int vcpus; protected int vcpus;

View File

@ -47,7 +47,7 @@ public class FloatingIP implements Comparable<FloatingIP> {
return new ConcreteBuilder().fromFloatingIP(this); return new ConcreteBuilder().fromFloatingIP(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -40,7 +40,7 @@ public class Host {
return new ConcreteBuilder().fromHost(this); return new ConcreteBuilder().fromHost(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String name; protected String name;

View File

@ -50,7 +50,7 @@ public class HostAggregate {
return new ConcreteBuilder().fromHostAggregate(this); return new ConcreteBuilder().fromHostAggregate(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String id; protected String id;

View File

@ -42,7 +42,7 @@ public class HostResourceUsage {
return new ConcreteBuilder().fromHostResourceUsage(this); return new ConcreteBuilder().fromHostResourceUsage(this);
} }
public static abstract class Builder<T extends Builder<T>> { public abstract static class Builder<T extends Builder<T>> {
protected abstract T self(); protected abstract T self();
protected String host; protected String host;

Some files were not shown because too many files have changed in this diff Show More