commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1775881 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java
Date Fri, 23 Dec 2016 18:24:55 GMT
Author: ggregory
Date: Fri Dec 23 18:24:55 2016
New Revision: 1775881

URL: http://svn.apache.org/viewvc?rev=1775881&view=rev
Log:
Local variable is not needed.

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java?rev=1775881&r1=1775880&r2=1775881&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/common/bytesource/ByteSourceFile.java
Fri Dec 23 18:24:55 2016
@@ -71,8 +71,7 @@ public class ByteSourceFile extends Byte
             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