Skip to content

Commit 7de65a3

Browse files
committed
removed unnecessary variable
1 parent f5076f3 commit 7de65a3

1 file changed

Lines changed: 3 additions & 5 deletions

File tree

‎hamcrest-library/src/main/java/org/hamcrest/collection/IsEmptyCollection.java‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
package org.hamcrest.collection;
22

3-
import java.util.Collection;
4-
53
import org.hamcrest.Description;
64
import org.hamcrest.Factory;
75
import org.hamcrest.Matcher;
86
import org.hamcrest.TypeSafeMatcher;
97

8+
import java.util.Collection;
9+
1010
/**
1111
* Tests if collection is empty.
1212
*/
@@ -52,8 +52,6 @@ public static <E> Matcher<Collection<? extends E>> empty() {
5252
*/
5353
@Factory
5454
public static <E> Matcher<Collection<E>> emptyCollectionOf(Class<E> type) {
55-
@SuppressWarnings({ "rawtypes", "unchecked" })
56-
final Matcher<Collection<E>> result = (Matcher)empty();
57-
return result;
55+
return (Matcher)empty();
5856
}
5957
}

0 commit comments

Comments
 (0)