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

commit 5e47d5e0d21fe122a0cdef19115499d1e0eeb5c6
Author: Gary Gregory <garydgreg...@gmail.com>
AuthorDate: Mon Jan 18 11:05:35 2021 -0500

    Sort methods.
---
 .../vfs2/provider/FileContentThreadData.java       | 42 +++++++++++-----------
 1 file changed, 21 insertions(+), 21 deletions(-)

diff --git 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileContentThreadData.java
 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileContentThreadData.java
index f2e6859..f53c592 100644
--- 
a/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileContentThreadData.java
+++ 
b/commons-vfs2/src/main/java/org/apache/commons/vfs2/provider/FileContentThreadData.java
@@ -49,14 +49,6 @@ class FileContentThreadData {
         this.inputStreamList.add(inputStream);
     }
 
-    void setOutstr(final DefaultFileContent.FileContentOutputStream 
outputStream) {
-        this.outputStream = outputStream;
-    }
-
-    DefaultFileContent.FileContentOutputStream getOutstr() {
-        return this.outputStream;
-    }
-
     void addRastr(final RandomAccessContent randomAccessContent) {
         if (this.randomAccessContentList == null) {
             this.randomAccessContentList = new ArrayList<>();
@@ -64,12 +56,25 @@ class FileContentThreadData {
         this.randomAccessContentList.add(randomAccessContent);
     }
 
+    public void closeOutstr() throws FileSystemException {
+        outputStream.close();
+        outputStream = null;
+    }
+
+    DefaultFileContent.FileContentOutputStream getOutstr() {
+        return this.outputStream;
+    }
+
     boolean hasInputStream() {
         return this.inputStreamList != null && !this.inputStreamList.isEmpty();
     }
 
-    public Object removeInstr(final int pos) {
-        return this.inputStreamList.remove(pos);
+    boolean hasRandomAccessContent() {
+        return randomAccessContentList != null && 
!randomAccessContentList.isEmpty();
+    }
+
+    public boolean hasStreams() {
+        return hasInputStream() || outputStream != null || 
hasRandomAccessContent();
     }
 
     InputStream removeInputStream(final int pos) {
@@ -80,6 +85,10 @@ class FileContentThreadData {
         this.inputStreamList.remove(inputStream);
     }
 
+    public Object removeInstr(final int pos) {
+        return this.inputStreamList.remove(pos);
+    }
+
     public Object removeRastr(final int pos) {
         return this.randomAccessContentList.remove(pos);
     }
@@ -88,16 +97,7 @@ class FileContentThreadData {
         this.randomAccessContentList.remove(randomAccessContent);
     }
 
-    public boolean hasStreams() {
-        return hasInputStream() || outputStream != null || 
hasRandomAccessContent();
-    }
-
-    public void closeOutstr() throws FileSystemException {
-        outputStream.close();
-        outputStream = null;
-    }
-
-    boolean hasRandomAccessContent() {
-        return randomAccessContentList != null && 
!randomAccessContentList.isEmpty();
+    void setOutstr(final DefaultFileContent.FileContentOutputStream 
outputStream) {
+        this.outputStream = outputStream;
     }
 }

Reply via email to