commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1552761 - /commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveInputStream.java
Date Fri, 20 Dec 2013 17:42:00 GMT
Author: sebb
Date: Fri Dec 20 17:41:59 2013
New Revision: 1552761

URL: http://svn.apache.org/r1552761
Log:
Rename local variable to avoid hiding field

Modified:
    commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveInputStream.java

Modified: commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveInputStream.java
URL: http://svn.apache.org/viewvc/commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveInputStream.java?rev=1552761&r1=1552760&r2=1552761&view=diff
==============================================================================
--- commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveInputStream.java
(original)
+++ commons/proper/compress/trunk/src/main/java/org/apache/commons/compress/archivers/dump/DumpArchiveInputStream.java
Fri Dec 20 17:41:59 2013
@@ -165,13 +165,13 @@ public class DumpArchiveInputStream exte
      * Read CLRI (deleted inode) segment.
      */
     private void readCLRI() throws IOException {
-        byte[] readBuf = raw.readRecord();
+        byte[] buffer = raw.readRecord();
 
-        if (!DumpArchiveUtil.verify(readBuf)) {
+        if (!DumpArchiveUtil.verify(buffer)) {
             throw new InvalidFormatException();
         }
 
-        active = DumpArchiveEntry.parse(readBuf);
+        active = DumpArchiveEntry.parse(buffer);
 
         if (DumpArchiveConstants.SEGMENT_TYPE.CLRI != active.getHeaderType()) {
             throw new InvalidFormatException();
@@ -189,13 +189,13 @@ public class DumpArchiveInputStream exte
      * Read BITS segment.
      */
     private void readBITS() throws IOException {
-        byte[] readBuf = raw.readRecord();
+        byte[] buffer = raw.readRecord();
 
-        if (!DumpArchiveUtil.verify(readBuf)) {
+        if (!DumpArchiveUtil.verify(buffer)) {
             throw new InvalidFormatException();
         }
 
-        active = DumpArchiveEntry.parse(readBuf);
+        active = DumpArchiveEntry.parse(buffer);
 
         if (DumpArchiveConstants.SEGMENT_TYPE.BITS != active.getHeaderType()) {
             throw new InvalidFormatException();



Mime
View raw message