Local variable is not needed. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/imaging/trunk@1775880 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/7fe8373e Tree: http://git-wip-us.apache.org/repos/asf/commons-imaging/tree/7fe8373e Diff: http://git-wip-us.apache.org/repos/asf/commons-imaging/diff/7fe8373e Branch: refs/heads/master Commit: 7fe8373eb988de6f6f9895f55dde05a147ace2fc Parents: 23c17bf Author: Gary D. Gregory <ggreg...@apache.org> Authored: Fri Dec 23 18:22:40 2016 +0000 Committer: Gary D. Gregory <ggreg...@apache.org> Committed: Fri Dec 23 18:22:40 2016 +0000 ---------------------------------------------------------------------- .../apache/commons/imaging/common/bytesource/ByteSourceFile.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-imaging/blob/7fe8373e/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java b/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java index e67d933..77ef5cd 100644 --- a/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java +++ b/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java @@ -50,9 +50,8 @@ public class ByteSourceFile extends ByteSource { + ", data length: " + raf.length() + ")."); } - final byte[] ret = BinaryFunctions.getRAFBytes(raf, start, length, + return BinaryFunctions.getRAFBytes(raf, start, length, "Could not read value from file"); - return ret; } }