commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1775872 - /commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java
Date Fri, 23 Dec 2016 18:15:12 GMT
Author: ggregory
Date: Fri Dec 23 18:15:12 2016
New Revision: 1775872

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

Modified:
    commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java

Modified: commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java?rev=1775872&r1=1775871&r2=1775872&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java
(original)
+++ commons/proper/imaging/trunk/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java
Fri Dec 23 18:15:12 2016
@@ -83,14 +83,13 @@ public class RgbeImageParser extends Ima
     public ImageInfo getImageInfo(final ByteSource byteSource, final Map<String, Object>
params)
             throws ImageReadException, IOException {
         try (RgbeInfo info = new RgbeInfo(byteSource)) {
-            final ImageInfo ret = new ImageInfo(
+            return new ImageInfo(
                     getName(),
                     32, // todo may be 64 if double?
                     new ArrayList<String>(), ImageFormats.RGBE, getName(),
                     info.getHeight(), "image/vnd.radiance", 1, -1, -1, -1, -1,
                     info.getWidth(), false, false, false,
                     ImageInfo.ColorType.RGB, ImageInfo.CompressionAlgorithm.ADAPTIVE_RLE);
-            return ret;
         }
     }
 



Mime
View raw message