Local variable is not needed.

git-svn-id: 
https://svn.apache.org/repos/asf/commons/proper/imaging/trunk@1775927 
13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/commons-imaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-imaging/commit/3ec90672
Tree: http://git-wip-us.apache.org/repos/asf/commons-imaging/tree/3ec90672
Diff: http://git-wip-us.apache.org/repos/asf/commons-imaging/diff/3ec90672

Branch: refs/heads/master
Commit: 3ec906724ef94c0110be3e61db625e95ac203d17
Parents: df7e667
Author: Gary D. Gregory <[email protected]>
Authored: Fri Dec 23 23:22:56 2016 +0000
Committer: Gary D. Gregory <[email protected]>
Committed: Fri Dec 23 23:22:56 2016 +0000

----------------------------------------------------------------------
 .../commons/imaging/formats/tiff/datareaders/DataReaderTiled.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-imaging/blob/3ec90672/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
----------------------------------------------------------------------
diff --git 
a/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
 
b/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
index 575ccaa..9864e06 100644
--- 
a/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
+++ 
b/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderTiled.java
@@ -115,8 +115,7 @@ public final class DataReaderTiled extends ImageDataReader {
 
         // 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;
 

Reply via email to