commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1775876 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java
Date Fri, 23 Dec 2016 18:18:27 GMT
Author: ggregory
Date: Fri Dec 23 18:18:27 2016
New Revision: 1775876

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

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java?rev=1775876&r1=1775875&r2=1775876&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/wbmp/WbmpImageParser.java
Fri Dec 23 18:18:27 2016
@@ -158,8 +158,7 @@ public class WbmpImageParser extends Ima
     private WbmpHeader readWbmpHeader(final ByteSource byteSource)
             throws ImageReadException, IOException {
         try (InputStream is = byteSource.getInputStream()) {
-            final WbmpHeader ret = readWbmpHeader(is);
-            return ret;
+            return readWbmpHeader(is);
         }
     }
 



Mime
View raw message