commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [11/50] [abbrv] commons-imaging git commit: Local variable is not needed.
Date Wed, 24 May 2017 18:40:59 GMT
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 <ggregory@apache.org>
Authored: Fri Dec 23 18:24:55 2016 +0000
Committer: Gary D. Gregory <ggregory@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();
         }
     }
 


Mime
View raw message