commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [03/50] [abbrv] commons-imaging git commit: Local variable is not needed.
Date Wed, 24 May 2017 18:40:51 GMT
Local variable is not needed.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/imaging/trunk@1775872 13f79535-47bb-0310-9956-ffa450edef68


Project: http://git-wip-us.apache.org/repos/asf/commons-imaging/repo
Commit: http://git-wip-us.apache.org/repos/asf/commons-imaging/commit/ea94f208
Tree: http://git-wip-us.apache.org/repos/asf/commons-imaging/tree/ea94f208
Diff: http://git-wip-us.apache.org/repos/asf/commons-imaging/diff/ea94f208

Branch: refs/heads/master
Commit: ea94f2081dd418bbb9ce255d82b4631928aed4e5
Parents: ed36249
Author: Gary D. Gregory <ggregory@apache.org>
Authored: Fri Dec 23 18:15:12 2016 +0000
Committer: Gary D. Gregory <ggregory@apache.org>
Committed: Fri Dec 23 18:15:12 2016 +0000

----------------------------------------------------------------------
 .../org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java  | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-imaging/blob/ea94f208/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java
----------------------------------------------------------------------
diff --git a/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java b/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java
index b9cd7e7..93b61d3 100644
--- a/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java
+++ b/src/main/java/org/apache/commons/imaging/formats/rgbe/RgbeImageParser.java
@@ -83,14 +83,13 @@ public class RgbeImageParser extends ImageParser {
     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