logging-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1396005 - /logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java
Date Tue, 09 Oct 2012 12:51:11 GMT
Author: ggregory
Date: Tue Oct  9 12:51:11 2012
New Revision: 1396005

URL: http://svn.apache.org/viewvc?rev=1396005&view=rev
Log:
Fix generics warning.

Modified:
    logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java

Modified: logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java
URL: http://svn.apache.org/viewvc/logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java?rev=1396005&r1=1396004&r2=1396005&view=diff
==============================================================================
--- logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java
(original)
+++ logging/log4j/log4j2/trunk/core/src/main/java/org/apache/logging/log4j/core/helpers/Loader.java
Tue Oct  9 12:51:11 2012
@@ -203,7 +203,7 @@ public final class Loader {
      * @return The Class.
      * @throws ClassNotFoundException if the Class could not be found.
      */
-    public static Class loadClass(String className) throws ClassNotFoundException {
+    public static Class<?> loadClass(String className) throws ClassNotFoundException
{
         // Just call Class.forName(className) if we are instructed to ignore the TCL.
         if (ignoreTCL) {
             return Class.forName(className);
@@ -216,7 +216,7 @@ public final class Loader {
         }
     }
 
-    public static ClassLoader getClassLoader(Class class1, Class class2) {
+    public static ClassLoader getClassLoader(Class<?> class1, Class<?> class2)
{
 
         ClassLoader loader1 = null;
         try {



Mime
View raw message