You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2019/09/13 12:26:36 UTC

[commons-vfs] branch master updated: Remove trailing white spaces on all lines.

This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-vfs.git


The following commit(s) were added to refs/heads/master by this push:
     new e9390ff  Remove trailing white spaces on all lines.
e9390ff is described below

commit e9390ff3458cba53b481e4ad2f6bf9df2eee2abf
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Fri Sep 13 08:26:32 2019 -0400

    Remove trailing white spaces on all lines.
---
 .../java/org/apache/commons/vfs2/provider/AbstractFileObject.java | 4 ++--
 .../java/org/apache/commons/vfs2/provider/DefaultFileContent.java | 8 ++++----
 .../java/org/apache/commons/vfs2/provider/HostFileNameParser.java | 2 +-
 .../org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java    | 2 +-
 .../apache/commons/vfs2/provider/res/ResourceFileNameParser.java  | 2 +-
 .../java/org/apache/commons/vfs2/util/RawMonitorInputStream.java  | 2 +-
 .../org/apache/commons/vfs2/provider/res/test/Vfs444TestCase.java | 4 ++--
 7 files changed, 12 insertions(+), 12 deletions(-)

diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
index 62e7f0a..2187a42 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/AbstractFileObject.java
@@ -63,7 +63,7 @@ import org.apache.commons.vfs2.util.RandomAccessMode;
  * TODO - Check caps in methods like getChildren(), etc, and give better error messages (eg 'this file type does not
  * support listing children', vs 'this is not a folder')
  * </p>
- * 
+ *
  * @param <AFS> An AbstractFileSystem subclass
  */
 public abstract class AbstractFileObject<AFS extends AbstractFileSystem> implements FileObject {
@@ -1192,7 +1192,7 @@ public abstract class AbstractFileObject<AFS extends AbstractFileSystem> impleme
 
     /**
      * Returns an input stream to use to read the content of the file.
-     * 
+     *
      * @param bufferSize buffer size hint.
      * @return The InputStream to access this file's content.
      * @throws FileSystemException if an error occurs.
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
index d1f3508..197b4aa 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/DefaultFileContent.java
@@ -499,12 +499,12 @@ public final class DefaultFileContent implements FileContent {
          */
         // Get the raw input stream
         // @formatter:off
-        final InputStream inputStream = bufferSize == 0 
+        final InputStream inputStream = bufferSize == 0
                 ? fileObject.getInputStream()
                 : fileObject.getInputStream(bufferSize);
         // @formatter:on
         // Double buffering may take place here.
-//        final InputStream wrappedInputStream = bufferSize == 0 
+//        final InputStream wrappedInputStream = bufferSize == 0
 //                    ? new FileContentInputStream(fileObject, inputStream)
 //                    : new FileContentInputStream(fileObject, inputStream, bufferSize);
 
@@ -512,10 +512,10 @@ public final class DefaultFileContent implements FileContent {
         if (inputStream instanceof BufferedInputStream) {
             // Don't double buffer.
             wrappedInputStream = new RawFileContentInputStream(fileObject, inputStream);
-        } else 
+        } else
         {
             // @formatter:off
-            wrappedInputStream = bufferSize == 0 
+            wrappedInputStream = bufferSize == 0
                     ? new FileContentInputStream(fileObject, inputStream)
                     : new FileContentInputStream(fileObject, inputStream, bufferSize);
             // @formatter:on
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/HostFileNameParser.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/HostFileNameParser.java
index 4e7f193..a125d4d 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/HostFileNameParser.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/HostFileNameParser.java
@@ -79,7 +79,7 @@ public class HostFileNameParser extends AbstractFileNameParser {
         } else {
         	fsm = VFS.getManager();
         }
-        
+
         // Extract the scheme
         auth.scheme = UriParser.extractScheme(fsm.getSchemes(), uri, name);
 
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java
index e956a9f..9b80390 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/ftp/FTPClientWrapper.java
@@ -282,7 +282,7 @@ public class FTPClientWrapper implements FtpClient {
     public void setBufferSize(final int bufferSize) throws FileSystemException {
         getFtpClient().setBufferSize(bufferSize);
     }
-    
+
     @Override
     public OutputStream storeFileStream(final String relPath) throws IOException {
         try {
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileNameParser.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileNameParser.java
index 0d75e2e..b244a6f 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileNameParser.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/res/ResourceFileNameParser.java
@@ -56,7 +56,7 @@ public class ResourceFileNameParser extends GenericFileNameParser {
 
         return "/";
     }
-    
+
     @Override
     protected FileName createFileName(final String scheme, final String rootFile, final String path,
             final FileType type) {
diff --git a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/RawMonitorInputStream.java b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/RawMonitorInputStream.java
index 42b682a..cc2fa59 100644
--- a/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/RawMonitorInputStream.java
+++ b/commons-vfs2/src/main/java/org/apache/commons/vfs2/util/RawMonitorInputStream.java
@@ -27,7 +27,7 @@ import java.util.concurrent.atomic.AtomicLong;
  * <p>
  * This is the same as {@link MonitorInputStream} but without the buffering.
  * </p>
- * 
+ *
  * @since 2.5
  */
 public class RawMonitorInputStream extends FilterInputStream {
diff --git a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/res/test/Vfs444TestCase.java b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/res/test/Vfs444TestCase.java
index 49e3412..6617688 100644
--- a/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/res/test/Vfs444TestCase.java
+++ b/commons-vfs2/src/test/java/org/apache/commons/vfs2/provider/res/test/Vfs444TestCase.java
@@ -33,7 +33,7 @@ import org.junit.Assert;
 import junit.framework.Test;
 
 /**
- * Test cases for VFS-444. 
+ * Test cases for VFS-444.
  */
 public class Vfs444TestCase extends AbstractProviderTestConfig {
     public static Test suite() throws Exception {
@@ -101,7 +101,7 @@ public class Vfs444TestCase extends AbstractProviderTestConfig {
             FileName root = getManager().resolveURI("res:test-data");
             FileName file = getManager().resolveName(root, "test.zip");
             String uri = file.getURI();
-            FileObject result = getManager().resolveFile(uri); 
+            FileObject result = getManager().resolveFile(uri);
             Assert.assertNotNull(result);
             Assert.assertTrue(result.exists());
         }