logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1405185 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginType.java
Date Fri, 02 Nov 2012 22:23:55 GMT
Author: ggregory
Date: Fri Nov  2 22:23:55 2012
New Revision: 1405185

URL: http://svn.apache.org/viewvc?rev=1405185&view=rev
Log:
Use generics.

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

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginType.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginType.java?rev=1405185&r1=1405184&r2=1405185&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginType.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/config/plugins/PluginType.java
Fri Nov  2 22:23:55 2012
@@ -22,21 +22,21 @@ import java.io.Serializable;
 /**
  * Plugin Descriptor.
  */
-public class PluginType implements Serializable {
+public class PluginType<T> implements Serializable {
 
-    private final Class pluginClass;
+    private final Class<T> pluginClass;
     private final String elementName;
     private boolean printObject = false;
     private boolean deferChildren = false;
 
-    public PluginType(Class clazz, String name, boolean printObj, boolean deferChildren)
{
+    public PluginType(Class<T> clazz, String name, boolean printObj, boolean deferChildren)
{
         this.pluginClass = clazz;
         this.elementName = name;
         this.printObject = printObj;
         this.deferChildren = deferChildren;
     }
 
-    public Class getPluginClass() {
+    public Class<T> getPluginClass() {
         return this.pluginClass;
     }
 



Mime
View raw message