You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@click.apache.org by me...@apache.org on 2010/02/26 07:23:21 UTC

svn commit: r916582 - /click/trunk/click/framework/src/org/apache/click/util/MessagesMap.java

Author: medgar
Date: Fri Feb 26 06:23:21 2010
New Revision: 916582

URL: http://svn.apache.org/viewvc?rev=916582&view=rev
Log: (empty)

Modified:
    click/trunk/click/framework/src/org/apache/click/util/MessagesMap.java

Modified: click/trunk/click/framework/src/org/apache/click/util/MessagesMap.java
URL: http://svn.apache.org/viewvc/click/trunk/click/framework/src/org/apache/click/util/MessagesMap.java?rev=916582&r1=916581&r2=916582&view=diff
==============================================================================
--- click/trunk/click/framework/src/org/apache/click/util/MessagesMap.java (original)
+++ click/trunk/click/framework/src/org/apache/click/util/MessagesMap.java Fri Feb 26 06:23:21 2010
@@ -66,7 +66,7 @@
  * The ClickServlet adds a MessagesMap instance to the Velocity Context before
  * it is merged with the page template.
  */
-public class MessagesMap implements Map {
+public class MessagesMap implements Map<String, String> {
 
     /** Cache of resource bundle and locales which were not found. */
     protected static final Set NOT_FOUND_CACHE =
@@ -159,7 +159,7 @@
      * @see java.util.Map#get(Object)
      * @throws MissingResourceException if the given key was not found
      */
-    public Object get(Object key) {
+    public String get(Object key) {
         if (containsKey(key)) {
             return (String) messages.get(key);
 
@@ -180,7 +180,7 @@
      *
      * @see java.util.Map#put(Object, Object)
      */
-    public Object put(Object key, Object value) {
+    public String put(String key, String value) {
         throw new UnsupportedOperationException();
     }
 
@@ -190,7 +190,7 @@
      *
      * @see java.util.Map#remove(Object)
      */
-    public Object remove(Object key) {
+    public String remove(Object key) {
         throw new UnsupportedOperationException();
     }