commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1813424 - in /commons/proper/vfs/trunk/commons-vfs2/src: main/java/org/apache/commons/vfs2/provider/zip/ test/java/org/apache/commons/vfs2/provider/local/test/ test/java/org/apache/commons/vfs2/provider/zip/test/
Date Thu, 26 Oct 2017 16:04:37 GMT
Author: ggregory
Date: Thu Oct 26 16:04:37 2017
New Revision: 1813424

URL: http://svn.apache.org/viewvc?rev=1813424&view=rev
Log:
Use final.

Modified:
    commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileObject.java
    commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/test/FileNameTests.java
    commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
    commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/TestEntityResolver.java

Modified: commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileObject.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileObject.java?rev=1813424&r1=1813423&r2=1813424&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileObject.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/zip/ZipFileObject.java
Thu Oct 26 16:04:37 2017
@@ -153,7 +153,7 @@ public class ZipFileObject extends Abstr
 
     @Override
     protected void doDetach() throws Exception {
-        ZipFileSystem afs = getAbstractFileSystem();
+        final ZipFileSystem afs = getAbstractFileSystem();
         if (!afs.isOpen()) {
             afs.close();
         }

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/test/FileNameTests.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/test/FileNameTests.java?rev=1813424&r1=1813423&r2=1813424&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/test/FileNameTests.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/local/test/FileNameTests.java
Thu Oct 26 16:04:37 2017
@@ -34,7 +34,7 @@ public class FileNameTests extends Abstr
     public void testAbsoluteFileName() throws Exception {
         // Locate file by absolute file name
         final String fileName = new File("testdir").getAbsolutePath();
-        DefaultFileSystemManager manager = getManager();
+        final DefaultFileSystemManager manager = getManager();
         Assert.assertNotNull("Unexpected null manager for test " + this, manager);
         try (final FileObject absFile = manager.resolveFile(fileName)) {
 

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java?rev=1813424&r1=1813423&r2=1813424&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/FileLockTestCase.java
Thu Oct 26 16:04:37 2017
@@ -68,8 +68,8 @@ public class FileLockTestCase {
         }
     }
 
-    private void readAndAssert(InputStream inputStream) throws IOException {
-        String string = IOUtils.toString(inputStream, "UTF-8");
+    private void readAndAssert(final InputStream inputStream) throws IOException {
+        final String string = IOUtils.toString(inputStream, "UTF-8");
         Assert.assertNotNull(string);
         Assert.assertEquals("This is a test file.", string);
     }

Modified: commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/TestEntityResolver.java
URL: http://svn.apache.org/viewvc/commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/TestEntityResolver.java?rev=1813424&r1=1813423&r2=1813424&view=diff
==============================================================================
--- commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/TestEntityResolver.java
(original)
+++ commons/proper/vfs/trunk/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/zip/test/TestEntityResolver.java
Thu Oct 26 16:04:37 2017
@@ -34,7 +34,7 @@ public class TestEntityResolver implemen
     private final FileObject containerFile;
     private final FileObject sourceFile;
 
-    public TestEntityResolver(final FileObject containerFile, FileObject sourceFile) {
+    public TestEntityResolver(final FileObject containerFile, final FileObject sourceFile)
{
         this.containerFile = containerFile;
         this.sourceFile = sourceFile;
     }



Mime
View raw message