logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1432066 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java
Date Fri, 11 Jan 2013 14:40:27 GMT
Author: ggregory
Date: Fri Jan 11 14:40:27 2013
New Revision: 1432066

URL: http://svn.apache.org/viewvc?rev=1432066&view=rev
Log:
Rename local var to 'clazz' from 'item'.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java?rev=1432066&r1=1432065&r2=1432066&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginManager.java
Fri Jan 11 14:40:27 2013
@@ -165,15 +165,15 @@ public class PluginManager {
         for (final String pkg : packages) {
             resolver.findInPackage(test, pkg);
         }
-        for (final Class<?> item : resolver.getClasses()) {
-            final Plugin p = item.getAnnotation(Plugin.class);
+        for (final Class<?> clazz : resolver.getClasses()) {
+            final Plugin p = clazz.getAnnotation(Plugin.class);
             final String pluginType = p.type();
             if (!pluginTypeMap.containsKey(pluginType)) {
                 pluginTypeMap.putIfAbsent(pluginType, new ConcurrentHashMap<String, PluginType>());
             }
             final Map<String, PluginType> map = pluginTypeMap.get(pluginType);
             final String type = p.elementType().equals(Plugin.EMPTY) ? p.name() : p.elementType();
-            map.put(p.name().toLowerCase(), new PluginType(item, type, p.printObject(), p.deferChildren()));
+            map.put(p.name().toLowerCase(), new PluginType(clazz, type, p.printObject(),
p.deferChildren()));
         }
         long elapsed = System.nanoTime() - start;
         plugins = pluginTypeMap.get(type);



Mime
View raw message