diff --git a/gcloud-java-core/src/main/java/com/google/cloud/BatchResult.java b/gcloud-java-core/src/main/java/com/google/cloud/BatchResult.java index 3d5b06fd1db6..fb78409ea31e 100644 --- a/gcloud-java-core/src/main/java/com/google/cloud/BatchResult.java +++ b/gcloud-java-core/src/main/java/com/google/cloud/BatchResult.java @@ -34,7 +34,7 @@ public abstract class BatchResult { private T result; private boolean completed = false; private E error; - private List> toBeNotified = new LinkedList<>(); + private final List> toBeNotified = new LinkedList<>(); /** * Returns {@code true} if the batch has been completed and the result is available; {@code false} diff --git a/gcloud-java-dns/src/test/java/com/google/cloud/dns/DnsBatchResultTest.java b/gcloud-java-dns/src/test/java/com/google/cloud/dns/DnsBatchResultTest.java index c2b1c10b4741..96ca99cc9e3e 100644 --- a/gcloud-java-dns/src/test/java/com/google/cloud/dns/DnsBatchResultTest.java +++ b/gcloud-java-dns/src/test/java/com/google/cloud/dns/DnsBatchResultTest.java @@ -21,7 +21,6 @@ import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; -import com.google.cloud.BaseServiceException; import com.google.cloud.BatchResult; import org.easymock.EasyMock;