aboutsummaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorKristen Kozak <sebright@google.com>2017-11-13 19:01:47 -0800
committerKristen Kozak <sebright@google.com>2017-11-13 19:54:33 -0800
commitc39d244ca356ee2bbbb9a2eaf7323d3d468dbee7 (patch)
treec417cf1e54f070a9ef5e0eaccdc5f1ba8554208e /testing
parent8b849436310c298b3293211f748f3bb6d227ff63 (diff)
downloadopencensus-java-c39d244ca356ee2bbbb9a2eaf7323d3d468dbee7.tar.gz
Enable new ReturnMissingNullable Error Prone experimental suggestion.
I also added some missing Nullable annotations.
Diffstat (limited to 'testing')
-rw-r--r--testing/src/main/java/io/opencensus/testing/export/TestHandler.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/testing/src/main/java/io/opencensus/testing/export/TestHandler.java b/testing/src/main/java/io/opencensus/testing/export/TestHandler.java
index 221a9b3e..8f36b3bd 100644
--- a/testing/src/main/java/io/opencensus/testing/export/TestHandler.java
+++ b/testing/src/main/java/io/opencensus/testing/export/TestHandler.java
@@ -22,6 +22,7 @@ import java.util.ArrayList;
import java.util.Collection;
import java.util.LinkedList;
import java.util.List;
+import javax.annotation.Nullable;
import javax.annotation.concurrent.GuardedBy;
/** A {@link SpanExporter.Handler} for testing only. */
@@ -50,6 +51,7 @@ public final class TestHandler extends SpanExporter.Handler {
* @return the list of exported {@link SpanData} objects, otherwise {@code null} if the current
* thread is interrupted.
*/
+ @Nullable
public List<SpanData> waitForExport(int numberOfSpans) {
List<SpanData> ret;
synchronized (monitor) {