commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From grobme...@apache.org
Subject svn commit: r767938 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java
Date Thu, 23 Apr 2009 15:09:09 GMT
Author: grobmeier
Date: Thu Apr 23 15:09:08 2009
New Revision: 767938

URL: http://svn.apache.org/viewvc?rev=767938&view=rev
Log:
fixed codeflow

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java?rev=767938&r1=767937&r2=767938&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/ar/ArArchiveInputStream.java
Thu Apr 23 15:09:08 2009
@@ -86,8 +86,7 @@
             final byte[] realized = new byte[expected.length];
             final int read = read(realized);
             if (read != expected.length) {
-                throw new IOException(
-                        "failed to read header. Occured at byte: " + getCount());
+                throw new IOException("failed to read header. Occured at byte: " + getCount());
             }
             for (int i = 0; i < expected.length; i++) {
                 if (expected[i] != realized[i]) {
@@ -126,15 +125,11 @@
             final byte[] realized = new byte[expected.length];
             final int read = read(realized);
             if (read != expected.length) {
-                throw new IOException(
-                        "failed to read entry header. Occured at byte: "
-                                + getCount());
+                throw new IOException("failed to read entry header. Occured at byte: " +
getCount());
             }
             for (int i = 0; i < expected.length; i++) {
                 if (expected[i] != realized[i]) {
-                    throw new IOException(
-                            "invalid entry header. not read the content? Occured at byte:
"
-                                    + getCount());
+                    throw new IOException("invalid entry header. not read the content? Occured
at byte: " + getCount());
                 }
             }
         }
@@ -147,9 +142,7 @@
         if (temp.endsWith("/")) {
             temp = temp.substring(0, temp.length() - 1);
         }
-        currentEntry = new ArArchiveEntry(temp, 
-                                          Long.parseLong(
-                                                  new String(length).trim()));
+        currentEntry = new ArArchiveEntry(temp, Long.parseLong(new String(length).trim()));
         return currentEntry;
     }
 



Mime
View raw message