@@ -46,15 +46,13 @@ public class AbstractFilterTest {
4646 void assertFiltering (final IOFileFilter filter , final File file , final boolean expected ) {
4747 // Note. This only tests the (File, String) version if the parent of
4848 // the File passed in is not null
49- assertEquals (expected , filter .accept (file ),
50- "Filter(File) " + filter .getClass ().getName () + " not " + expected + " for " + file );
49+ assertEquals (expected , filter .accept (file ), "Filter(File) " + filter .getClass ().getName () + " not " + expected + " for " + file );
5150
5251 if (file != null && file .getParentFile () != null ) {
5352 assertEquals (expected , filter .accept (file .getParentFile (), file .getName ()),
5453 "Filter(File, String) " + filter .getClass ().getName () + " not " + expected + " for " + file );
5554 } else if (file == null ) {
56- assertEquals (expected , filter .accept (file ),
57- "Filter(File, String) " + filter .getClass ().getName () + " not " + expected + " for null" );
55+ assertEquals (expected , filter .accept (file ), "Filter(File, String) " + filter .getClass ().getName () + " not " + expected + " for null" );
5856 }
5957 assertNotNull (filter .toString ());
6058 }
@@ -68,8 +66,7 @@ void assertFiltering(final IOFileFilter filter, final Path path, final boolean e
6866
6967 if (path != null && path .getParent () != null ) {
7068 assertEquals (expectedFileVisitResult , filter .accept (path , null ),
71- "Filter(Path, Path) " + filter .getClass ().getName () + " not " + expectedFileVisitResult + " for "
72- + path );
69+ "Filter(Path, Path) " + filter .getClass ().getName () + " not " + expectedFileVisitResult + " for " + path );
7370 } else if (path == null ) {
7471 assertEquals (expectedFileVisitResult , filter .accept (path , null ),
7572 "Filter(Path, Path) " + filter .getClass ().getName () + " not " + expectedFileVisitResult + " for null" );
@@ -169,7 +166,4 @@ boolean equalsLastModified(final File left, final File right) throws IOException
169166 return Files .getLastModifiedTime (left .toPath ()).equals (Files .getLastModifiedTime (right .toPath ()));
170167 }
171168
172- // -----------------------------------------------------------------------
173-
174-
175169}
0 commit comments