You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by ti...@apache.org on 2019/09/22 07:32:01 UTC
svn commit: r1867322 -
/pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java
Author: tilman
Date: Sun Sep 22 07:32:01 2019
New Revision: 1867322
URL: http://svn.apache.org/viewvc?rev=1867322&view=rev
Log:
PDFBOX-4071: remove useless assignment
Modified:
pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java
Modified: pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java
URL: http://svn.apache.org/viewvc/pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java?rev=1867322&r1=1867321&r2=1867322&view=diff
==============================================================================
--- pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java (original)
+++ pdfbox/branches/issue45/pdfbox/src/main/java/org/apache/pdfbox/io/ScratchFile.java Sun Sep 22 07:32:01 2019
@@ -418,7 +418,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);