Local variable is not needed. git-svn-id: https://svn.apache.org/repos/asf/commons/proper/imaging/trunk@1775879 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/23c17bfd Tree: http://git-wip-us.apache.org/repos/asf/commons-imaging/tree/23c17bfd Diff: http://git-wip-us.apache.org/repos/asf/commons-imaging/diff/23c17bfd Branch: refs/heads/master Commit: 23c17bfd1736ba20d14fdb9227ea6ac2bce0e8d9 Parents: 650fa54 Author: Gary D. Gregory <[email protected]> Authored: Fri Dec 23 18:19:48 2016 +0000 Committer: Gary D. Gregory <[email protected]> Committed: Fri Dec 23 18:19:48 2016 +0000 ---------------------------------------------------------------------- src/main/java/org/apache/commons/imaging/Imaging.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-imaging/blob/23c17bfd/src/main/java/org/apache/commons/imaging/Imaging.java ---------------------------------------------------------------------- diff --git a/src/main/java/org/apache/commons/imaging/Imaging.java b/src/main/java/org/apache/commons/imaging/Imaging.java index bab9ff0..fc3a5d1 100644 --- a/src/main/java/org/apache/commons/imaging/Imaging.java +++ b/src/main/java/org/apache/commons/imaging/Imaging.java @@ -703,9 +703,7 @@ public final class Imaging { private static ImageInfo getImageInfo(final ByteSource byteSource, final Map<String, Object> params) throws ImageReadException, IOException { - final ImageParser imageParser = getImageParser(byteSource); - - return imageParser.getImageInfo(byteSource, params); + return getImageParser(byteSource).getImageInfo(byteSource, params); } private static ImageParser getImageParser(final ByteSource byteSource)
