diff --git a/checkstyle-suppressions.xml b/checkstyle-suppressions.xml index ab6590166a..80d759a321 100644 --- a/checkstyle-suppressions.xml +++ b/checkstyle-suppressions.xml @@ -24,7 +24,12 @@ - + + + + + + diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestCase.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestCase.java index fefc5ff0a0..0de55f5c43 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestCase.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/AbstractProviderTestCase.java @@ -240,7 +240,7 @@ protected DefaultFileSystemManager getManager() { } /** - * get the provider configuration + * get the provider configuration. */ public ProviderTestConfig getProviderConfig() { return providerConfig; diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ContentTests.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ContentTests.java index 6dceb7ca5f..5ec7b9af78 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/ContentTests.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/ContentTests.java @@ -57,7 +57,7 @@ public void testAllContent() throws Exception { } /** - * Tests attributes + * Tests attributes. */ @Test public void testAttributes() throws FileSystemException { @@ -237,7 +237,7 @@ public void testInputStreamSingleCleanup() throws Exception { } /** - * Tests parent identity + * Tests parent identity. */ @Test public void testParent() throws FileSystemException { diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileInfo.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileInfo.java index 0a8426a2b1..b841817534 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileInfo.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/FileInfo.java @@ -99,7 +99,7 @@ public FileInfo getParent() { } /** - * Returns the {@link FileType} of the file + * Returns the {@link FileType} of the file. * * @return {@link FileType} */ diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/NamingTests.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/NamingTests.java index 03d3ccbbc9..69df17b40f 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/NamingTests.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/NamingTests.java @@ -307,7 +307,7 @@ public void testNameResolution() throws Exception { } /** - * Tests resolution of relative file names via the FS manager + * Tests resolution of relative file names via the FS manager. */ @Test public void testRelativeURI() throws Exception { diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/PatternFileSelectorTest.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/PatternFileSelectorTest.java index 91de2260ec..3c2730d088 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/PatternFileSelectorTest.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/PatternFileSelectorTest.java @@ -116,7 +116,7 @@ public void testFileExtensions() throws Exception { } /** - * Tests matching all + * Tests matching all. * * @throws Exception */ @@ -127,7 +127,7 @@ public void testMatchAll() throws Exception { } /** - * Tests matching partial file names + * Tests matching partial file names. * * @throws Exception */ @@ -139,7 +139,7 @@ public void testMatchPartial() throws Exception { } /** - * Tests matching partial file names with delimiter + * Tests matching partial file names with delimiter. * * @throws Exception */ diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/PermissionsTests.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/PermissionsTests.java index f03b27984e..b281002859 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/PermissionsTests.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/PermissionsTests.java @@ -113,7 +113,7 @@ public void testExecutable() throws Exception { } /** - * Tests for the readable permission + * Tests for the readable permission. */ @Test public void testReadable() throws Exception { @@ -138,7 +138,7 @@ public void testReadable() throws Exception { } /** - * Tests for the writable permission + * Tests for the writable permission. */ @Test public void testWriteable() throws Exception { diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftps/AbstractFtpsProviderTestCase.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftps/AbstractFtpsProviderTestCase.java index bd402c4e17..ad8e8de51b 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftps/AbstractFtpsProviderTestCase.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/ftps/AbstractFtpsProviderTestCase.java @@ -100,7 +100,7 @@ static String getConnectionUri() { } static int getSocketPort() { - return SocketPort; + return socketPort; } static String getSystemTestUriOverride() { @@ -118,7 +118,7 @@ synchronized static void setUpClass(final boolean implicit) throws FtpException return; } // Let the OS find use an ephemeral port by using 0. - SocketPort = 0; + socketPort = 0; final FtpServerFactory serverFactory = new FtpServerFactory(); final PropertiesUserManagerFactory propertiesUserManagerFactory = new PropertiesUserManagerFactory(); final URL userPropsResource = ClassLoader.getSystemClassLoader().getResource(USER_PROPS_RES); @@ -131,7 +131,7 @@ synchronized static void setUpClass(final boolean implicit) throws FtpException user.setHomeDirectory(getTestDirectory()); serverFactory.setUserManager(userManager); final ListenerFactory listenerFactory = new ListenerFactory(); - listenerFactory.setPort(SocketPort); + listenerFactory.setPort(socketPort); // define SSL configuration final URL serverJksResource = ClassLoader.getSystemClassLoader().getResource(SERVER_JKS_RES); @@ -163,9 +163,9 @@ synchronized static void setUpClass(final boolean implicit) throws FtpException e.printStackTrace(); } } - SocketPort = ((org.apache.ftpserver.impl.DefaultFtpServer) embeddedFtpServer).getListener(LISTENER_NAME).getPort(); + socketPort = ((org.apache.ftpserver.impl.DefaultFtpServer) embeddedFtpServer).getListener(LISTENER_NAME).getPort(); // System.out.println("Using port " + SocketPort); - connectionUri = "ftps://test:test@localhost:" + SocketPort; + connectionUri = "ftps://test:test@localhost:" + socketPort; } /** diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http/HttpFilesCacheTest.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http/HttpFilesCacheTest.java index 7d0aaf9e65..fe1eb602b0 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http/HttpFilesCacheTest.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http/HttpFilesCacheTest.java @@ -25,15 +25,14 @@ import org.junit.jupiter.api.Test; /** - * Tests https://issues.apache.org/jira/browse/VFS-426 + * Tests https://issues.apache.org/jira/browse/VFS-426. * - * ggregory $ * @since 2.1 */ public class HttpFilesCacheTest { /** - * Tests https://issues.apache.org/jira/browse/VFS-426 + * Tests https://issues.apache.org/jira/browse/VFS-426. */ @Test public void testQueryStringUrls() throws FileSystemException { diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http/HttpGetContentInfoFunctionalTest.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http/HttpGetContentInfoFunctionalTest.java index 8f43317946..babd977f16 100644 --- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http/HttpGetContentInfoFunctionalTest.java +++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/http/HttpGetContentInfoFunctionalTest.java @@ -30,7 +30,7 @@ import org.junit.jupiter.api.Test; /** - * Tests VFS-427 NPE on HttpFileObject.getContent().getContentInfo() + * Tests VFS-427 NPE on HttpFileObject.getContent().getContentInfo(). * * @since 2.1 */