File tree Expand file tree Collapse file tree
branches/gcs-nio/gcloud-java-compute/src
main/java/com/google/gcloud/compute
test/java/com/google/gcloud/compute Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ refs/tags/v0.0.12: 2fd8066e891fb3dfea69b65f6bf6461db79342b9
1111refs/heads/compute-alpha: 969cba2627f1d53d352cc4a5ffe0879dacf65e6c
1212refs/heads/dns-alpha: 2f90e7e338349287ace33375896907af0f032ca1
1313refs/heads/dns-alpha-batch: 17442b07867021b85d0452f5f3eda29a3413288f
14- refs/heads/gcs-nio: f66ea60be34714f6279aaa4eadd3162679daee1a
14+ refs/heads/gcs-nio: de2a6b4c2191223e176765af43bab313f2ce3596
1515refs/heads/logging-alpha: db5312bffa7fccac194f6a7feb8cc3066de16aff
1616refs/tags/v0.1.0: a615317f7424ed58621b1f65d5c4d8cbbe8a6ed8
1717refs/tags/v0.1.1: 7a7f6985fe465e9dd6a075af55493f42b4933be0
Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ public final int hashCode() {
172172 return Objects .hash (super .hashCode (), options );
173173 }
174174
175- private void readObject (ObjectInputStream in ) throws IOException , ClassNotFoundException {
176- in .defaultReadObject ();
175+ private void readObject (ObjectInputStream input ) throws IOException , ClassNotFoundException {
176+ input .defaultReadObject ();
177177 this .compute = options .service ();
178178 }
179179
Original file line number Diff line number Diff line change @@ -1668,7 +1668,7 @@ public static SnapshotListOption fields(SnapshotField... fields) {
16681668 Snapshot getSnapshot (String snapshot , SnapshotOption ... options );
16691669
16701670 /**
1671- * Lists all snapshots.
1671+ * Lists snapshots.
16721672 *
16731673 * @throws ComputeException upon failure
16741674 */
Original file line number Diff line number Diff line change @@ -1007,7 +1007,6 @@ public Snapshot apply(com.google.api.services.compute.model.Snapshot snapshot) {
10071007 @ Override
10081008 public Operation deleteSnapshot (SnapshotId snapshot , OperationOption ... options ) {
10091009 return deleteSnapshot (snapshot .snapshot (), options );
1010-
10111010 }
10121011
10131012 @ Override
Original file line number Diff line number Diff line change @@ -792,8 +792,8 @@ com.google.api.services.compute.model.Operation toPb() {
792792 return operationPb ;
793793 }
794794
795- private void readObject (ObjectInputStream in ) throws IOException , ClassNotFoundException {
796- in .defaultReadObject ();
795+ private void readObject (ObjectInputStream input ) throws IOException , ClassNotFoundException {
796+ input .defaultReadObject ();
797797 this .compute = options .service ();
798798 }
799799
Original file line number Diff line number Diff line change @@ -199,8 +199,8 @@ public final int hashCode() {
199199 return Objects .hash (super .hashCode (), options );
200200 }
201201
202- private void readObject (ObjectInputStream in ) throws IOException , ClassNotFoundException {
203- in .defaultReadObject ();
202+ private void readObject (ObjectInputStream input ) throws IOException , ClassNotFoundException {
203+ input .defaultReadObject ();
204204 this .compute = options .service ();
205205 }
206206
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ public class AddressTest {
5757 private static final AddressInfo .RegionForwardingUsage REGION_FORWARDING_USAGE =
5858 new AddressInfo .RegionForwardingUsage (REGION_FORWARDING_RULES );
5959
60- private Compute serviceMockReturnsOptions = createStrictMock (Compute .class );
61- private ComputeOptions mockOptions = createMock (ComputeOptions .class );
60+ private final Compute serviceMockReturnsOptions = createStrictMock (Compute .class );
61+ private final ComputeOptions mockOptions = createMock (ComputeOptions .class );
6262 private Compute compute ;
6363 private Address globalForwardingAddress ;
6464 private Address instanceAddress ;
Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ public class OperationTest {
7676 private static final RegionOperationId REGION_OPERATION_ID =
7777 RegionOperationId .of ("project" , "region" , "op" );
7878
79- private Compute serviceMockReturnsOptions = createStrictMock (Compute .class );
80- private ComputeOptions mockOptions = createMock (ComputeOptions .class );
79+ private final Compute serviceMockReturnsOptions = createStrictMock (Compute .class );
80+ private final ComputeOptions mockOptions = createMock (ComputeOptions .class );
8181 private Compute compute ;
8282 private Operation globalOperation ;
8383 private Operation regionOperation ;
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ public class SnapshotTest {
4949 private static final SnapshotInfo .StorageBytesStatus STORAGE_BYTES_STATUS =
5050 SnapshotInfo .StorageBytesStatus .UP_TO_DATE ;
5151
52- private Compute serviceMockReturnsOptions = createStrictMock (Compute .class );
53- private ComputeOptions mockOptions = createMock (ComputeOptions .class );
52+ private final Compute serviceMockReturnsOptions = createStrictMock (Compute .class );
53+ private final ComputeOptions mockOptions = createMock (ComputeOptions .class );
5454 private Compute compute ;
5555 private Snapshot snapshot ;
5656 private Snapshot expectedSnapshot ;
You can’t perform that action at this time.
0 commit comments