jspwiki-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jalka...@apache.org
Subject svn commit: r750215 - /incubator/jspwiki/trunk/src/java/org/apache/wiki/parser/PluginContent.java
Date Wed, 04 Mar 2009 23:02:05 GMT
Author: jalkanen
Date: Wed Mar  4 23:02:05 2009
New Revision: 750215

URL: http://svn.apache.org/viewvc?rev=750215&view=rev
Log:
Added generics, removing compiler warnings.

Modified:
    incubator/jspwiki/trunk/src/java/org/apache/wiki/parser/PluginContent.java

Modified: incubator/jspwiki/trunk/src/java/org/apache/wiki/parser/PluginContent.java
URL: http://svn.apache.org/viewvc/incubator/jspwiki/trunk/src/java/org/apache/wiki/parser/PluginContent.java?rev=750215&r1=750214&r2=750215&view=diff
==============================================================================
--- incubator/jspwiki/trunk/src/java/org/apache/wiki/parser/PluginContent.java (original)
+++ incubator/jspwiki/trunk/src/java/org/apache/wiki/parser/PluginContent.java Wed Mar  4
23:02:05 2009
@@ -68,8 +68,7 @@
      *  @param pluginName The FQN of a plugin.
      *  @param parameters A Map of parameters.
      */
-    @SuppressWarnings("unchecked")
-    public PluginContent( String pluginName, Map parameters )
+    public PluginContent( String pluginName, Map<String, Object> parameters )
     {
         m_pluginName = pluginName;
         m_params     = parameters;
@@ -101,7 +100,7 @@
      *  
      *  @return The parameter map.
      */
-    public Map getParameters()
+    public Map<String, Object> getParameters()
     {
         return m_params;
     }
@@ -181,7 +180,7 @@
                 //
                 //  Parse any variable instances from the string
                 //
-                for( Map.Entry e : m_params.entrySet() )
+                for( Map.Entry<String,Object> e : m_params.entrySet() )
                 {
                     Object val = e.getValue();
                 



Mime
View raw message