File tree Expand file tree Collapse file tree
hamcrest-library/src/main/java/org/hamcrest
hamcrest-unit-test/src/main/java/org/hamcrest Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1010 */
1111public abstract class TypeSafeMatcher <T > extends BaseMatcher <T > {
1212
13- private Class expectedType ;
13+ private Class <?> expectedType ;
1414
1515 /**
1616 * Subclasses should implement this. The item will already have been checked for
Original file line number Diff line number Diff line change 44import org .hamcrest .Factory ;
55import org .hamcrest .Matcher ;
66import org .hamcrest .TypeSafeMatcher ;
7- import org .hamcrest .core .IsAnything ;
87
98import static org .hamcrest .core .IsEqual .equalTo ;
109
Original file line number Diff line number Diff line change 1414 * Tests if the value is an event announced by a specific object.
1515 */
1616public class IsEventFrom extends TypeSafeMatcher <EventObject > {
17- private final Class eventClass ;
17+ private final Class <?> eventClass ;
1818 private final Object source ;
1919
20- public IsEventFrom (Class eventClass , Object source ) {
20+ public IsEventFrom (Class <?> eventClass , Object source ) {
2121 this .eventClass = eventClass ;
2222 this .source = source ;
2323 }
Original file line number Diff line number Diff line change 77import org .hamcrest .introspection .Combination ;
88
99import static org .hamcrest .MatcherAssert .assertThat ;
10- import static org .hamcrest .core .AllOf .allOf ;
1110import static org .hamcrest .core .AnyOf .anyOf ;
1211import static org .hamcrest .core .IsEqual .equalTo ;
1312import static org .hamcrest .core .IsNot .not ;
Original file line number Diff line number Diff line change 88import static org .hamcrest .MatcherAssert .assertThat ;
99import static org .hamcrest .core .IsNull .nullValue ;
1010import static org .hamcrest .core .IsNull .notNullValue ;
11- import static org .hamcrest .core .IsNull .*;
12- import static org .hamcrest .core .IsAnything .any ;
11+
1312
1413public class IsNullTest extends AbstractMatcherTest {
1514
Original file line number Diff line number Diff line change @@ -29,12 +29,12 @@ public void testPassesResultOfToStringToNestedMatcher() {
2929
3030 public void testHasReadableDescription () {
3131 Matcher <String > toStringMatcher = equalTo (TO_STRING_RESULT );
32- Matcher matcher = hasToString (toStringMatcher );
32+ Matcher < Matcher < String >> matcher = hasToString (toStringMatcher );
3333
3434 assertEquals ("asString(" + descriptionOf (toStringMatcher ) + ")" , descriptionOf (matcher ));
3535 }
3636
37- private String descriptionOf (Matcher matcher ) {
37+ private String descriptionOf (Matcher <?> matcher ) {
3838 return StringDescription .asString (matcher );
3939 }
4040}
You can’t perform that action at this time.
0 commit comments