jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jalka...@apache.org
Subject svn commit: r661987 - /incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/ClassUtil.java
Date Sat, 31 May 2008 09:13:48 GMT
Author: jalkanen
Date: Sat May 31 02:13:48 2008
New Revision: 661987

URL: http://svn.apache.org/viewvc?rev=661987&view=rev
Log:
Javadoc, Java5, checkstyle, and comment fixes.

Modified:
    incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/ClassUtil.java

Modified: incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/ClassUtil.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/ClassUtil.java?rev=661987&r1=661986&r2=661987&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/ClassUtil.java (original)
+++ incubator/jspwiki/trunk/src/com/ecyrd/jspwiki/util/ClassUtil.java Sat May 31 02:13:48
2008
@@ -48,7 +48,7 @@
      */
     public  static final String MAPPINGS = "/ini/classmappings.xml";
     
-    private static Map c_classMappings = new Hashtable();
+    private static Map<String, String> c_classMappings = new Hashtable<String, String>();
 
     /**
      *  Initialize the class mappings document.
@@ -153,7 +153,7 @@
     public static Class findClass( String packageName, String className )
         throws ClassNotFoundException
     {
-        ArrayList list = new ArrayList();
+        ArrayList<String> list = new ArrayList<String>();
         list.add( packageName );
 
         return findClass( list, className );
@@ -324,7 +324,7 @@
     private static Class getMappedClass( String requestedClass )
         throws WikiException
     {
-        String mappedClass = (String)c_classMappings.get( requestedClass );
+        String mappedClass = c_classMappings.get( requestedClass );
         
         if( mappedClass == null )
         {



Mime
View raw message