pdfbox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From til...@apache.org
Subject svn commit: r1867321 - /pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java
Date Sun, 22 Sep 2019 07:31:56 GMT
Author: tilman
Date: Sun Sep 22 07:31:56 2019
New Revision: 1867321

URL: http://svn.apache.org/viewvc?rev=1867321&view=rev
Log:
PDFBOX-4071: remove useless assignment

Modified:
    pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java

Modified: pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java?rev=1867321&r1=1867320&r2=1867321&view=diff
==============================================================================
--- pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java (original)
+++ pdfbox/branches/2.0/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java Sun Sep
22 07:31:56 2019
@@ -431,7 +431,7 @@ public class ScratchFile implements Clos
         ScratchFileBuffer buf = new ScratchFileBuffer(this);
         
         byte[] byteBuffer = new byte[8192];
-        int bytesRead = 0;
+        int bytesRead;
         while ((bytesRead = input.read(byteBuffer)) > -1)
         {
             buf.write(byteBuffer, 0, bytesRead);



Mime
View raw message