pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1766696 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java
Date Wed, 26 Oct 2016 16:24:49 GMT
Author: tilman
Date: Wed Oct 26 16:24:49 2016
New Revision: 1766696

URL: http://svn.apache.org/viewvc?rev=1766696&view=rev
Log:
PDFBOX-2852: rename misleading variable names

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java?rev=1766696&r1=1766695&r2=1766696&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java
(original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/pdmodel/interactive/digitalsignature/PDSignature.java
Wed Oct 26 16:24:49 2016
@@ -310,9 +310,9 @@ public class PDSignature implements COSO
     {
         int[] byteRange = getByteRange();
         int begin = byteRange[0]+byteRange[1]+1;
-        int end = byteRange[2]-begin;
+        int len = byteRange[2]-begin;
 
-        return getContents(new COSFilterInputStream(pdfFile,new int[] {begin,end}));
+        return getContents(new COSFilterInputStream(pdfFile,new int[] {begin,len}));
     }
 
     /**
@@ -326,9 +326,9 @@ public class PDSignature implements COSO
     {
         int[] byteRange = getByteRange();
         int begin = byteRange[0]+byteRange[1]+1;
-        int end = byteRange[2]-begin;
+        int len = byteRange[2]-begin;
 
-        return getContents(new COSFilterInputStream(pdfFile,new int[] {begin,end}));
+        return getContents(new COSFilterInputStream(pdfFile,new int[] {begin,len}));
     }
 
     private byte[] getContents(COSFilterInputStream fis) throws IOException



Mime
View raw message