Skip to content

Commit bdcc5b5

Browse files
committed
Change: fix factory type names
1 parent 4cd878a commit bdcc5b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hamcrest/src/main/java/org/hamcrest/exception/ThrowsException.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,23 +32,23 @@ public static <U extends Runnable> ThrowsException<U> throwsException() {
3232
return new ThrowsException<>(instanceOf(Throwable.class));
3333
}
3434

35-
public static <U extends Runnable, T extends Throwable> ThrowsException<U> throwsException(T item) {
35+
public static <U extends Runnable, V extends Throwable> ThrowsException<U> throwsException(V item) {
3636
return new ThrowsException<>(exceptionEqualTo(item));
3737
}
3838

3939
public static <U extends Runnable> ThrowsException<U> throwsException(Matcher<? super Throwable> exceptionMatcher) {
4040
return new ThrowsException<>(exceptionMatcher);
4141
}
4242

43-
public static <U extends Runnable, T extends Throwable> ThrowsException<U> throwsException(Class<T> item) {
43+
public static <U extends Runnable, V extends Throwable> ThrowsException<U> throwsException(Class<V> item) {
4444
return new ThrowsException<>(instanceOf(item));
4545
}
4646

47-
public static <U extends Runnable, T extends Throwable> ThrowsException<U> throwsException(Class<T> item , String message) {
47+
public static <U extends Runnable, V extends Throwable> ThrowsException<U> throwsException(Class<V> item , String message) {
4848
return new ThrowsException<>(allOf(instanceOf(item), withMessage(message)));
4949
}
5050

51-
public static <U extends Runnable, T extends Throwable> ThrowsException<U> throwsException(Class<T> item , Matcher<? super Throwable> exceptionMatcher) {
51+
public static <U extends Runnable, V extends Throwable> ThrowsException<U> throwsException(Class<V> item , Matcher<? super Throwable> exceptionMatcher) {
5252
return new ThrowsException<>(allOf(instanceOf(item), exceptionMatcher));
5353
}
5454

0 commit comments

Comments
 (0)