aboutsummaryrefslogtreecommitdiffstats
path: root/guava-tests/test/com/google/common/eventbus/StringCatcher.java
diff options
context:
space:
mode:
Diffstat (limited to 'guava-tests/test/com/google/common/eventbus/StringCatcher.java')
-rw-r--r--guava-tests/test/com/google/common/eventbus/StringCatcher.java10
1 files changed, 3 insertions, 7 deletions
diff --git a/guava-tests/test/com/google/common/eventbus/StringCatcher.java b/guava-tests/test/com/google/common/eventbus/StringCatcher.java
index d4bfdbd..fa2e446 100644
--- a/guava-tests/test/com/google/common/eventbus/StringCatcher.java
+++ b/guava-tests/test/com/google/common/eventbus/StringCatcher.java
@@ -17,12 +17,8 @@
package com.google.common.eventbus;
import com.google.common.collect.Lists;
-
-import junit.framework.Assert;
-
import java.util.List;
-
-import javax.annotation.Nullable;
+import junit.framework.Assert;
/**
* A simple EventHandler mock that records Strings.
@@ -36,11 +32,11 @@ public class StringCatcher {
private List<String> events = Lists.newArrayList();
@Subscribe
- public void hereHaveAString(@Nullable String string) {
+ public void hereHaveAString(String string) {
events.add(string);
}
- public void methodWithoutAnnotation(@Nullable String string) {
+ public void methodWithoutAnnotation(String string) {
Assert.fail("Event bus must not call methods without @Subscribe!");
}