click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r937814 - /click/trunk/click/framework/src/org/apache/click/Context.java
Date Sun, 25 Apr 2010 16:06:15 GMT
Author: sabob
Date: Sun Apr 25 16:06:15 2010
New Revision: 937814

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

Modified:
    click/trunk/click/framework/src/org/apache/click/Context.java

Modified: click/trunk/click/framework/src/org/apache/click/Context.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/Context.java?rev=937814&r1=937813&r2=937814&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/Context.java (original)
+++ click/trunk/click/framework/src/org/apache/click/Context.java Sun Apr 25 16:06:15 2010
@@ -757,7 +757,7 @@ public class Context {
      * @throws RuntimeException if an error occurs
      */
     @SuppressWarnings("unchecked")
-    public String renderTemplate(Class templateClass, Map<String, Object> model) {
+    public String renderTemplate(Class templateClass, Map<String, ? extends Object>
model) {
 
         if (templateClass == null) {
             String msg = "Null templateClass parameter";
@@ -785,7 +785,7 @@ public class Context {
      * @return rendered Velocity template merged with the model data
      * @throws RuntimeException if an error occurs
      */
-    public String renderTemplate(String templatePath, Map<String, Object> model) {
+    public String renderTemplate(String templatePath, Map<String, ? extends Object>
model) {
 
         if (templatePath == null) {
             String msg = "Null templatePath parameter";



Mime
View raw message