commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bode...@apache.org
Subject svn commit: r1571926 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java
Date Wed, 26 Feb 2014 05:21:59 GMT
Author: bodewig
Date: Wed Feb 26 05:21:59 2014
New Revision: 1571926

URL: http://svn.apache.org/r1571926
Log:
move static method to end of class

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java?rev=1571926&r1=1571925&r2=1571926&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/sevenz/SevenZOutputFile.java
Wed Feb 26 05:21:59 2014
@@ -310,14 +310,6 @@ public class SevenZOutputFile implements
         };
     }
 
-    private static <T> Iterable<T> reverse(Iterable<T> i) {
-        LinkedList<T> l = new LinkedList<T>();
-        for (T t : i) {
-            l.addFirst(t);
-        }
-        return l;
-    }
-
     private Iterable<? extends SevenZMethodConfiguration> getContentMethods(SevenZArchiveEntry
entry) {
         Iterable<? extends SevenZMethodConfiguration> ms = entry.getContentMethods();
         return ms == null ? contentMethods : ms;
@@ -731,6 +723,14 @@ public class SevenZOutputFile implements
         }
     }
 
+    private static <T> Iterable<T> reverse(Iterable<T> i) {
+        LinkedList<T> l = new LinkedList<T>();
+        for (T t : i) {
+            l.addFirst(t);
+        }
+        return l;
+    }
+
     private class OutputStreamWrapper extends OutputStream {
         @Override
         public void write(final int b) throws IOException {



Mime
View raw message