Skip to content

Commit cf39c1e

Browse files
committed
Remove unused imports and sort remaining imports
1 parent 393af9d commit cf39c1e

39 files changed

+35
-302
lines changed

commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestCase.java

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,12 @@
1616
*/
1717
package org.apache.commons.vfs2;
1818

19-
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
2019
import static org.junit.jupiter.api.Assertions.assertEquals;
21-
import static org.junit.jupiter.api.Assertions.assertFalse;
2220
import static org.junit.jupiter.api.Assertions.assertNotNull;
23-
import static org.junit.jupiter.api.Assertions.assertNull;
2421
import static org.junit.jupiter.api.Assertions.assertSame;
2522
import static org.junit.jupiter.api.Assertions.assertTrue;
26-
import static org.junit.jupiter.api.Assertions.fail;
2723

28-
import java.io.ByteArrayOutputStream;
2924
import java.io.InputStream;
30-
import java.lang.reflect.InvocationTargetException;
3125
import java.lang.reflect.Method;
3226
import java.net.URLConnection;
3327
import java.nio.charset.StandardCharsets;

commons-vfs2/src/test/java/org/apache/commons/vfs2/ContentTests.java

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,20 +15,17 @@
1515
* limitations under the License.
1616
*/
1717
package org.apache.commons.vfs2;
18-
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
18+
19+
import static org.apache.commons.vfs2.VfsTestUtils.assertSameMessage;
1920
import static org.junit.jupiter.api.Assertions.assertEquals;
2021
import static org.junit.jupiter.api.Assertions.assertFalse;
2122
import static org.junit.jupiter.api.Assertions.assertNotNull;
23+
import static org.junit.jupiter.api.Assertions.assertNotSame;
2224
import static org.junit.jupiter.api.Assertions.assertNull;
2325
import static org.junit.jupiter.api.Assertions.assertSame;
24-
import static org.junit.jupiter.api.Assertions.assertNotSame;
25-
import static org.junit.jupiter.api.Assertions.assertThrows;
2626
import static org.junit.jupiter.api.Assertions.assertTrue;
2727
import static org.junit.jupiter.api.Assertions.fail;
2828

29-
30-
import static org.apache.commons.vfs2.VfsTestUtils.assertSameMessage;
31-
3229
import java.io.ByteArrayOutputStream;
3330
import java.io.InputStream;
3431
import java.nio.charset.StandardCharsets;

commons-vfs2/src/test/java/org/apache/commons/vfs2/LastModifiedTests.java

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,30 +16,15 @@
1616
*/
1717
package org.apache.commons.vfs2;
1818

19-
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
20-
import static org.junit.jupiter.api.Assertions.assertEquals;
21-
import static org.junit.jupiter.api.Assertions.assertFalse;
2219
import static org.junit.jupiter.api.Assertions.assertNotEquals;
23-
import static org.junit.jupiter.api.Assertions.assertNotNull;
24-
import static org.junit.jupiter.api.Assertions.assertNull;
25-
import static org.junit.jupiter.api.Assertions.assertSame;
26-
import static org.junit.jupiter.api.Assertions.assertNotSame;
27-
import static org.junit.jupiter.api.Assertions.assertThrows;
2820
import static org.junit.jupiter.api.Assertions.assertTrue;
29-
import static org.junit.jupiter.api.Assertions.fail;
30-
31-
32-
33-
34-
35-
3621

3722
import java.time.Duration;
3823
import java.time.Instant;
3924
import java.util.Date;
4025

41-
import org.junit.jupiter.api.Test;
4226
import org.junit.jupiter.api.Assertions;
27+
import org.junit.jupiter.api.Test;
4328

4429
/**
4530
* Test cases for getting and setting file last modified time.

commons-vfs2/src/test/java/org/apache/commons/vfs2/NamingTests.java

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,23 +16,14 @@
1616
*/
1717
package org.apache.commons.vfs2;
1818

19-
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
2019
import static org.junit.jupiter.api.Assertions.assertEquals;
2120
import static org.junit.jupiter.api.Assertions.assertFalse;
22-
import static org.junit.jupiter.api.Assertions.assertNotNull;
2321
import static org.junit.jupiter.api.Assertions.assertNull;
2422
import static org.junit.jupiter.api.Assertions.assertSame;
25-
import static org.junit.jupiter.api.Assertions.assertNotSame;
2623
import static org.junit.jupiter.api.Assertions.assertThrows;
2724
import static org.junit.jupiter.api.Assertions.assertTrue;
2825
import static org.junit.jupiter.api.Assertions.fail;
2926

30-
31-
32-
33-
34-
35-
3627
import org.junit.jupiter.api.Test;
3728

3829
/**

commons-vfs2/src/test/java/org/apache/commons/vfs2/PathTests.java

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,9 @@
1616
*/
1717
package org.apache.commons.vfs2;
1818

19-
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
2019
import static org.junit.jupiter.api.Assertions.assertEquals;
21-
import static org.junit.jupiter.api.Assertions.assertFalse;
22-
import static org.junit.jupiter.api.Assertions.assertNotNull;
23-
import static org.junit.jupiter.api.Assertions.assertNull;
2420
import static org.junit.jupiter.api.Assertions.assertSame;
25-
import static org.junit.jupiter.api.Assertions.assertNotSame;
26-
import static org.junit.jupiter.api.Assertions.assertThrows;
2721
import static org.junit.jupiter.api.Assertions.assertTrue;
28-
import static org.junit.jupiter.api.Assertions.fail;
29-
3022

3123
import java.nio.file.Path;
3224
import java.nio.file.Paths;

commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderCacheStrategyTests.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,8 @@
1515
* limitations under the License.
1616
*/
1717
package org.apache.commons.vfs2;
18-
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
19-
import static org.junit.jupiter.api.Assertions.assertEquals;
20-
import static org.junit.jupiter.api.Assertions.assertFalse;
21-
import static org.junit.jupiter.api.Assertions.assertNotNull;
22-
import static org.junit.jupiter.api.Assertions.assertNull;
23-
import static org.junit.jupiter.api.Assertions.assertSame;
24-
import static org.junit.jupiter.api.Assertions.assertNotSame;
25-
import static org.junit.jupiter.api.Assertions.assertThrows;
26-
import static org.junit.jupiter.api.Assertions.assertTrue;
27-
import static org.junit.jupiter.api.Assertions.fail;
2818

19+
import static org.junit.jupiter.api.Assertions.fail;
2920

3021
import org.apache.commons.vfs2.impl.DefaultFileSystemManager;
3122
import org.apache.commons.vfs2.impl.VirtualFileSystem;

commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderDeleteTests.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,10 @@
1515
* limitations under the License.
1616
*/
1717
package org.apache.commons.vfs2;
18-
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
18+
1919
import static org.junit.jupiter.api.Assertions.assertEquals;
2020
import static org.junit.jupiter.api.Assertions.assertFalse;
21-
import static org.junit.jupiter.api.Assertions.assertNotNull;
22-
import static org.junit.jupiter.api.Assertions.assertNull;
23-
import static org.junit.jupiter.api.Assertions.assertSame;
24-
import static org.junit.jupiter.api.Assertions.assertNotSame;
25-
import static org.junit.jupiter.api.Assertions.assertThrows;
2621
import static org.junit.jupiter.api.Assertions.assertTrue;
27-
import static org.junit.jupiter.api.Assertions.fail;
28-
2922

3023
import org.junit.jupiter.api.Test;
3124

commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderRandomReadTests.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,8 @@
1515
* limitations under the License.
1616
*/
1717
package org.apache.commons.vfs2;
18-
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
19-
import static org.junit.jupiter.api.Assertions.assertEquals;
20-
import static org.junit.jupiter.api.Assertions.assertFalse;
21-
import static org.junit.jupiter.api.Assertions.assertNotNull;
22-
import static org.junit.jupiter.api.Assertions.assertNull;
23-
import static org.junit.jupiter.api.Assertions.assertSame;
24-
import static org.junit.jupiter.api.Assertions.assertNotSame;
25-
import static org.junit.jupiter.api.Assertions.assertThrows;
26-
import static org.junit.jupiter.api.Assertions.assertTrue;
27-
import static org.junit.jupiter.api.Assertions.fail;
2818

19+
import static org.junit.jupiter.api.Assertions.assertEquals;
2920

3021
import org.apache.commons.vfs2.util.RandomAccessMode;
3122
import org.junit.jupiter.api.Test;

commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderRandomReadWriteTests.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,8 @@
1515
* limitations under the License.
1616
*/
1717
package org.apache.commons.vfs2;
18-
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
19-
import static org.junit.jupiter.api.Assertions.assertEquals;
20-
import static org.junit.jupiter.api.Assertions.assertFalse;
21-
import static org.junit.jupiter.api.Assertions.assertNotNull;
22-
import static org.junit.jupiter.api.Assertions.assertNull;
23-
import static org.junit.jupiter.api.Assertions.assertSame;
24-
import static org.junit.jupiter.api.Assertions.assertNotSame;
25-
import static org.junit.jupiter.api.Assertions.assertThrows;
26-
import static org.junit.jupiter.api.Assertions.assertTrue;
27-
import static org.junit.jupiter.api.Assertions.fail;
2818

19+
import static org.junit.jupiter.api.Assertions.assertEquals;
2920

3021
import org.apache.commons.vfs2.util.RandomAccessMode;
3122
import org.junit.jupiter.api.Test;

commons-vfs2/src/test/java/org/apache/commons/vfs2/ProviderRandomSetLengthTests.java

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -15,23 +15,12 @@
1515
* limitations under the License.
1616
*/
1717
package org.apache.commons.vfs2;
18-
import static org.junit.jupiter.api.Assertions.assertArrayEquals;
19-
import static org.junit.jupiter.api.Assertions.assertEquals;
20-
import static org.junit.jupiter.api.Assertions.assertFalse;
21-
import static org.junit.jupiter.api.Assertions.assertNotNull;
22-
import static org.junit.jupiter.api.Assertions.assertNull;
23-
import static org.junit.jupiter.api.Assertions.assertSame;
24-
import static org.junit.jupiter.api.Assertions.assertNotSame;
25-
import static org.junit.jupiter.api.Assertions.assertThrows;
26-
import static org.junit.jupiter.api.Assertions.assertTrue;
27-
import static org.junit.jupiter.api.Assertions.fail;
28-
2918

3019
import java.io.IOException;
3120

3221
import org.apache.commons.vfs2.util.RandomAccessMode;
33-
import org.junit.jupiter.api.Test;
3422
import org.junit.jupiter.api.Assertions;
23+
import org.junit.jupiter.api.Test;
3524

3625
/**
3726
* Random set length test cases for file providers.

0 commit comments

Comments
 (0)