You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by ch...@apache.org on 2017/05/24 18:40:59 UTC

[11/50] [abbrv] commons-imaging git commit: Local variable is not needed.

Local variable is not needed.

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

Branch: refs/heads/master
Commit: 1743e64bd2f06425b12061850d012c7fc86ef7ad
Parents: 7fe8373
Author: Gary D. Gregory <gg...@apache.org>
Authored: Fri Dec 23 18:24:55 2016 +0000
Committer: Gary D. Gregory <gg...@apache.org>
Committed: Fri Dec 23 18:24:55 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/1743e64b/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 77ef5cd..87adbd8 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
@@ -71,8 +71,7 @@ public class ByteSourceFile extends ByteSource {
             while ((read = is.read(buffer)) > 0) {
                 baos.write(buffer, 0, read);
             }
-            final byte[] ret = baos.toByteArray();
-            return ret;
+            return baos.toByteArray();
         }
     }