matcher) {
}
/**
- * This is sugar for the situation where
+ * This is sugar for the situation where you want to specify
+ * a finite list of concrete objects that can match.
* For example:
*
- * assertThat(string, eitherIs("a").or(is("b")));
+ * assertThat(string, isOneOf("a", "b", "c"));
+ * // is equivalent to
+ * assertThat(string, anyOf(is("a"), is("b"), is("c")))
*
*/
public static Matcher isOneOf(T... objects) {
@@ -118,7 +120,7 @@ public static Matcher isOneOf(T... objects) {
/**
* Loosens type parameter, in order to use a Matcher
- * in a place where Java doesn't want to typecheck:
+ * in a place where Java doesn't want to type-check:
*
* Goofy example:
*
diff --git a/src/test/java/org/junit/tests/assertion/AssertionTest.java b/src/test/java/org/junit/tests/assertion/AssertionTest.java
index 705d8b12100e..156e9a6d670a 100644
--- a/src/test/java/org/junit/tests/assertion/AssertionTest.java
+++ b/src/test/java/org/junit/tests/assertion/AssertionTest.java
@@ -10,9 +10,7 @@
import static org.junit.Assert.fail;
import static org.junit.matchers.JUnitMatchers.matches;
-import java.io.Serializable;
import java.math.BigDecimal;
-import java.util.Map;
import org.junit.Assert;
import org.junit.ComparisonFailure;