logging-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1432067&view=rev
Log:
Rename local var to 'plugin' from 'p'.

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=1432067&r1=1432066&r2=1432067&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:55 2013
@@ -166,14 +166,14 @@ public class PluginManager {
             resolver.findInPackage(test, pkg);
         }
         for (final Class<?> clazz : resolver.getClasses()) {
-            final Plugin p = clazz.getAnnotation(Plugin.class);
-            final String pluginType = p.type();
+            final Plugin plugin = clazz.getAnnotation(Plugin.class);
+            final String pluginType = plugin.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(clazz, type, p.printObject(),
p.deferChildren()));
+            final String type = plugin.elementType().equals(Plugin.EMPTY) ? plugin.name()
: plugin.elementType();
+            map.put(plugin.name().toLowerCase(), new PluginType(clazz, type, plugin.printObject(),
plugin.deferChildren()));
         }
         long elapsed = System.nanoTime() - start;
         plugins = pluginTypeMap.get(type);



Mime
View raw message