commons-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1775880&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=1775880&r1=1775879&r2=1775880&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:22:40 2016
@@ -50,9 +50,8 @@ public class ByteSourceFile extends Byte
                         + ", 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;
         }
     }
 



Mime
View raw message