Skip to content
Permalink
Browse files
Correct misplaced AutoValue parameters
Found via error-prone 2.0.21.
  • Loading branch information
gaul committed Jul 4, 2017
1 parent dffc2bb commit 4febcfa6ba72d31bb9e880d61202f16d197980ad
Showing 2 changed files with 7 additions and 7 deletions.
@@ -40,14 +40,14 @@ public abstract static class Attachment {
} // For AutoValue only!

/**
* The deployment in which the disk is being used.
* The cloud service in which the disk is being used.
*/
public abstract String deployment();
public abstract String hostedService();

/**
* The cloud service in which the disk is being used.
* The deployment in which the disk is being used.
*/
public abstract String hostedService();
public abstract String deployment();

/**
* The virtual machine that the disk is attached to.
@@ -61,13 +61,13 @@ public static CreateHardware create(double vcore, double coresPerProcessor, doub
@AutoValue
public abstract static class UpdateHardware {

public abstract double ram();
public abstract double vcore();

public abstract double coresPerProcessor();

public abstract double vcore();
public abstract double ram();

@SerializedNames({"ram", "cores_per_processor", "vcore"})
@SerializedNames({"vcore", "cores_per_processor", "ram"})
public static UpdateHardware create(double vcore, double coresPerProcessor, double ram) {
return new AutoValue_Hardware_UpdateHardware(vcore, coresPerProcessor, ram);
}

0 comments on commit 4febcfa

Please sign in to comment.