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 <[email protected]> Authored: Fri Dec 23 19:00:59 2016 +0000 Committer: Gary D. Gregory <[email protected]> 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();
