commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chtom...@apache.org
Subject [45/50] [abbrv] commons-imaging git commit: Inline local variable
Date Wed, 24 May 2017 18:41:33 GMT
Inline local variable

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/imaging/trunk@1795460 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/2e8379b5
Tree: http://git-wip-us.apache.org/repos/asf/commons-imaging/tree/2e8379b5
Diff: http://git-wip-us.apache.org/repos/asf/commons-imaging/diff/2e8379b5

Branch: refs/heads/master
Commit: 2e8379b55611ce891b968c2daa3ada4f8952188b
Parents: 5d89c42
Author: Benedikt Ritter <britter@apache.org>
Authored: Wed May 17 21:27:55 2017 +0000
Committer: Benedikt Ritter <britter@apache.org>
Committed: Wed May 17 21:27:55 2017 +0000

----------------------------------------------------------------------
 src/main/java/org/apache/commons/imaging/Imaging.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/commons-imaging/blob/2e8379b5/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 ec8a74d..3fbb2c9 100644
--- a/src/main/java/org/apache/commons/imaging/Imaging.java
+++ b/src/main/java/org/apache/commons/imaging/Imaging.java
@@ -169,8 +169,7 @@ public final class Imaging {
 
         String normalizedFilename = filename.toLowerCase(Locale.ENGLISH);
 
-        final ImageParser[] imageParsers = ImageParser.getAllImageParsers();
-        for (final ImageParser imageParser : imageParsers) {
+        for (final ImageParser imageParser : ImageParser.getAllImageParsers()) {
             final String[] exts = imageParser.getAcceptedExtensions();
 
             for (final String ext : exts) {


Mime
View raw message