Skip to content

Commit 4cbd50e

Browse files
author
Gary Gregory
committed
Remove type casts.
1 parent 25a39e4 commit 4cbd50e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

src/test/java/org/apache/commons/io/comparator/CompositeFileComparatorTest.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ public class CompositeFileComparatorTest extends ComparatorAbstractTestCase {
3838

3939
@BeforeEach
4040
public void setUp() throws Exception {
41-
comparator = new CompositeFileComparator(
42-
(AbstractFileComparator) SizeFileComparator.SIZE_COMPARATOR, (AbstractFileComparator) ExtensionFileComparator.EXTENSION_COMPARATOR);
41+
comparator = new CompositeFileComparator(SizeFileComparator.SIZE_COMPARATOR, ExtensionFileComparator.EXTENSION_COMPARATOR);
4342
reverse = new ReverseFileComparator(comparator);
4443
lessFile = new File(dir, "xyz.txt");
4544
equalFile1 = new File(dir, "foo.txt");

0 commit comments

Comments
 (0)