commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [19/50] [abbrv] commons-imaging git commit: Local variable is not needed.
Date Wed, 24 May 2017 18:41:07 GMT
Local variable is not needed.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/imaging/trunk@1775890 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/c3c8838a
Tree: http://git-wip-us.apache.org/repos/asf/commons-imaging/tree/c3c8838a
Diff: http://git-wip-us.apache.org/repos/asf/commons-imaging/diff/c3c8838a

Branch: refs/heads/master
Commit: c3c8838abc7a5841d98ecf72bdc5e6753ab9e3fb
Parents: 38c8705
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Fri Dec 23 19:00:59 2016 +0000
Committer: Gary D. Gregory <ggregory@apache.org>
Committed: Fri Dec 23 19:00:59 2016 +0000

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


http://git-wip-us.apache.org/repos/asf/commons-imaging/blob/c3c8838a/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderStrips.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderStrips.java
b/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderStrips.java
index 0f00406..ee632e9 100644
--- a/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderStrips.java
+++ b/src/main/java/org/apache/commons/imaging/formats/tiff/datareaders/DataReaderStrips.java
@@ -166,8 +166,7 @@ public final class DataReaderStrips extends ImageDataReader {
         // this logic will handle all cases not conforming to the
         // special case handled above
 
-        final ByteArrayInputStream bais = new ByteArrayInputStream(bytes);
-        final BitInputStream bis = new BitInputStream(bais, byteOrder);
+        final BitInputStream bis = new BitInputStream(new ByteArrayInputStream(bytes), byteOrder);
 
         int[] samples = new int[bitsPerSampleLength];
         resetPredictor();


Mime
View raw message