aboutsummaryrefslogtreecommitdiff
path: root/android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java
diff options
context:
space:
mode:
Diffstat (limited to 'android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java')
-rw-r--r--android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java b/android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java
index dc1e1a067..adbc8dcc6 100644
--- a/android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java
+++ b/android/guava-testlib/src/com/google/common/collect/testing/AbstractTester.java
@@ -18,6 +18,7 @@ package com.google.common.collect.testing;
import com.google.common.annotations.GwtCompatible;
import junit.framework.TestCase;
+import org.checkerframework.checker.nullness.qual.Nullable;
/**
* This abstract base class for testers allows the framework to inject needed information after
@@ -34,8 +35,8 @@ import junit.framework.TestCase;
public class AbstractTester<G> extends TestCase {
private G subjectGenerator;
private String suiteName;
- private Runnable setUp;
- private Runnable tearDown;
+ private @Nullable Runnable setUp;
+ private @Nullable Runnable tearDown;
// public so that it can be referenced in generated GWT tests.
@Override
@@ -54,7 +55,8 @@ public class AbstractTester<G> extends TestCase {
}
// public so that it can be referenced in generated GWT tests.
- public final void init(G subjectGenerator, String suiteName, Runnable setUp, Runnable tearDown) {
+ public final void init(
+ G subjectGenerator, String suiteName, @Nullable Runnable setUp, @Nullable Runnable tearDown) {
this.subjectGenerator = subjectGenerator;
this.suiteName = suiteName;
this.setUp = setUp;