Skip to content

Commit

Permalink
Add missing final, fix codacy issues
Browse files Browse the repository at this point in the history
  • Loading branch information
mziccard committed Mar 25, 2016
1 parent d86ede9 commit fc1d0ed
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -172,8 +172,8 @@ public final int hashCode() {
return Objects.hash(super.hashCode(), options);
}

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
input.defaultReadObject();
this.compute = options.service();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1668,7 +1668,7 @@ public static SnapshotListOption fields(SnapshotField... fields) {
Snapshot getSnapshot(String snapshot, SnapshotOption... options);

/**
* Lists all snapshots.
* Lists snapshots.
*
* @throws ComputeException upon failure
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1007,7 +1007,6 @@ public Snapshot apply(com.google.api.services.compute.model.Snapshot snapshot) {
@Override
public Operation deleteSnapshot(SnapshotId snapshot, OperationOption... options) {
return deleteSnapshot(snapshot.snapshot(), options);

}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -792,8 +792,8 @@ com.google.api.services.compute.model.Operation toPb() {
return operationPb;
}

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
input.defaultReadObject();
this.compute = options.service();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -199,8 +199,8 @@ public final int hashCode() {
return Objects.hash(super.hashCode(), options);
}

private void readObject(ObjectInputStream in) throws IOException, ClassNotFoundException {
in.defaultReadObject();
private void readObject(ObjectInputStream input) throws IOException, ClassNotFoundException {
input.defaultReadObject();
this.compute = options.service();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,8 @@ public class AddressTest {
private static final AddressInfo.RegionForwardingUsage REGION_FORWARDING_USAGE =
new AddressInfo.RegionForwardingUsage(REGION_FORWARDING_RULES);

private Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private ComputeOptions mockOptions = createMock(ComputeOptions.class);
private final Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private final ComputeOptions mockOptions = createMock(ComputeOptions.class);
private Compute compute;
private Address globalForwardingAddress;
private Address instanceAddress;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@ public class OperationTest {
private static final RegionOperationId REGION_OPERATION_ID =
RegionOperationId.of("project", "region", "op");

private Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private ComputeOptions mockOptions = createMock(ComputeOptions.class);
private final Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private final ComputeOptions mockOptions = createMock(ComputeOptions.class);
private Compute compute;
private Operation globalOperation;
private Operation regionOperation;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,8 @@ public class SnapshotTest {
private static final SnapshotInfo.StorageBytesStatus STORAGE_BYTES_STATUS =
SnapshotInfo.StorageBytesStatus.UP_TO_DATE;

private Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private ComputeOptions mockOptions = createMock(ComputeOptions.class);
private final Compute serviceMockReturnsOptions = createStrictMock(Compute.class);
private final ComputeOptions mockOptions = createMock(ComputeOptions.class);
private Compute compute;
private Snapshot snapshot;
private Snapshot expectedSnapshot;
Expand Down

0 comments on commit fc1d0ed

Please sign in to comment.