commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1775871 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/PsdImageParser.java
Date Fri, 23 Dec 2016 18:14:54 GMT
Author: ggregory
Date: Fri Dec 23 18:14:54 2016
New Revision: 1775871

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

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/PsdImageParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/PsdImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/PsdImageParser.java?rev=1775871&r1=1775870&r2=1775871&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/PsdImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/psd/PsdImageParser.java
Fri Dec 23 18:14:54 2016
@@ -377,8 +377,7 @@ public class PsdImageParser extends Imag
     private PsdImageContents readImageContents(final ByteSource byteSource)
             throws ImageReadException, IOException {
         try (InputStream is = byteSource.getInputStream()) {
-            final PsdImageContents imageContents = readImageContents(is);
-            return imageContents;
+            return readImageContents(is);
         }
     }
 



Mime
View raw message