commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1775868 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
Date Fri, 23 Dec 2016 18:13:36 GMT
Author: ggregory
Date: Fri Dec 23 18:13:35 2016
New Revision: 1775868

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

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java?rev=1775868&r1=1775867&r2=1775868&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/pcx/PcxImageParser.java
Fri Dec 23 18:13:35 2016
@@ -242,8 +242,7 @@ public class PcxImageParser extends Imag
     private PcxHeader readPcxHeader(final ByteSource byteSource)
             throws ImageReadException, IOException {
         try (InputStream is = byteSource.getInputStream()) {
-            final PcxHeader ret = readPcxHeader(is, false);
-            return ret;
+            return readPcxHeader(is, false);
         }
     }
 



Mime
View raw message