click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From med...@apache.org
Subject svn commit: r919298 - /click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
Date Fri, 05 Mar 2010 05:31:55 GMT
Author: medgar
Date: Fri Mar  5 05:31:55 2010
New Revision: 919298

URL: http://svn.apache.org/viewvc?rev=919298&view=rev
Log:
improving type safety

Modified:
    click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java

Modified: click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java?rev=919298&r1=919297&r2=919298&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java (original)
+++ click/trunk/click/framework/src/org/apache/click/service/XmlConfigService.java Fri Mar
 5 05:31:55 2010
@@ -80,7 +80,7 @@
     static final String CLICK_PATH = "/click";
 
     /** The default common page headers. */
-    static final Map DEFAULT_HEADERS;
+    static final Map<String, Object> DEFAULT_HEADERS;
 
     /**
      * The default velocity properties filename: &nbsp;
@@ -135,7 +135,7 @@
 
     /** Initialize the default headers. */
     static {
-        DEFAULT_HEADERS = new HashMap();
+        DEFAULT_HEADERS = new HashMap<String, Object>();
         DEFAULT_HEADERS.put("Pragma", "no-cache");
         DEFAULT_HEADERS.put("Cache-Control", "no-store, no-cache, must-revalidate, post-check=0,
pre-check=0");
         DEFAULT_HEADERS.put("Expires", new Date(1L));
@@ -167,7 +167,7 @@
     private FileUploadService fileUploadService;
 
     /** The format class. */
-    private Class formatClass;
+    private Class<? extends Format> formatClass;
 
     /** The character encoding of this application. */
     private String charset;



Mime
View raw message