File tree Expand file tree Collapse file tree 8 files changed +13
-14
lines changed
main/java/com/google/gcloud/compute
test/java/com/google/gcloud/compute Expand file tree Collapse file tree 8 files changed +13
-14
lines changed Original file line number Diff line number Diff line change @@ -172,8 +172,8 @@ public final int hashCode() {
172
172
return Objects .hash (super .hashCode (), options );
173
173
}
174
174
175
- private void readObject (ObjectInputStream in ) throws IOException , ClassNotFoundException {
176
- in .defaultReadObject ();
175
+ private void readObject (ObjectInputStream input ) throws IOException , ClassNotFoundException {
176
+ input .defaultReadObject ();
177
177
this .compute = options .service ();
178
178
}
179
179
Original file line number Diff line number Diff line change @@ -1668,7 +1668,7 @@ public static SnapshotListOption fields(SnapshotField... fields) {
1668
1668
Snapshot getSnapshot (String snapshot , SnapshotOption ... options );
1669
1669
1670
1670
/**
1671
- * Lists all snapshots.
1671
+ * Lists snapshots.
1672
1672
*
1673
1673
* @throws ComputeException upon failure
1674
1674
*/
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) {
1007
1007
@ Override
1008
1008
public Operation deleteSnapshot (SnapshotId snapshot , OperationOption ... options ) {
1009
1009
return deleteSnapshot (snapshot .snapshot (), options );
1010
-
1011
1010
}
1012
1011
1013
1012
@ Override
Original file line number Diff line number Diff line change @@ -792,8 +792,8 @@ com.google.api.services.compute.model.Operation toPb() {
792
792
return operationPb ;
793
793
}
794
794
795
- private void readObject (ObjectInputStream in ) throws IOException , ClassNotFoundException {
796
- in .defaultReadObject ();
795
+ private void readObject (ObjectInputStream input ) throws IOException , ClassNotFoundException {
796
+ input .defaultReadObject ();
797
797
this .compute = options .service ();
798
798
}
799
799
Original file line number Diff line number Diff line change @@ -199,8 +199,8 @@ public final int hashCode() {
199
199
return Objects .hash (super .hashCode (), options );
200
200
}
201
201
202
- private void readObject (ObjectInputStream in ) throws IOException , ClassNotFoundException {
203
- in .defaultReadObject ();
202
+ private void readObject (ObjectInputStream input ) throws IOException , ClassNotFoundException {
203
+ input .defaultReadObject ();
204
204
this .compute = options .service ();
205
205
}
206
206
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ public class AddressTest {
57
57
private static final AddressInfo .RegionForwardingUsage REGION_FORWARDING_USAGE =
58
58
new AddressInfo .RegionForwardingUsage (REGION_FORWARDING_RULES );
59
59
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 );
62
62
private Compute compute ;
63
63
private Address globalForwardingAddress ;
64
64
private Address instanceAddress ;
Original file line number Diff line number Diff line change @@ -76,8 +76,8 @@ public class OperationTest {
76
76
private static final RegionOperationId REGION_OPERATION_ID =
77
77
RegionOperationId .of ("project" , "region" , "op" );
78
78
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 );
81
81
private Compute compute ;
82
82
private Operation globalOperation ;
83
83
private Operation regionOperation ;
Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ public class SnapshotTest {
49
49
private static final SnapshotInfo .StorageBytesStatus STORAGE_BYTES_STATUS =
50
50
SnapshotInfo .StorageBytesStatus .UP_TO_DATE ;
51
51
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 );
54
54
private Compute compute ;
55
55
private Snapshot snapshot ;
56
56
private Snapshot expectedSnapshot ;
You can’t perform that action at this time.
0 commit comments