commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1775927 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
Date Fri, 23 Dec 2016 23:22:56 GMT
Author: ggregory
Date: Fri Dec 23 23:22:56 2016
New Revision: 1775927

URL: http://svn.apache.org/viewvc?rev=1775927&view=rev
Log:
Local variable is not needed.

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java?rev=1775927&r1=1775926&r2=1775927&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
Fri Dec 23 23:22:56 2016
@@ -115,8 +115,7 @@ public final class DataReaderTiled exten
 
         // End of May 2012 changes
 
-        final ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
-        final BitInputStream bis = new BitInputStream(bais, byteOrder);
+        final BitInputStream bis = new BitInputStream(new ByteArrayInputStream(bytes), byteOrder);
 
         final int pixelsPerTile = tileWidth * tileLength;
 



Mime
View raw message