You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by at...@apache.org on 2008/09/10 12:21:52 UTC

svn commit: r693773 - /portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/i18n/KeyedMessage.java

Author: ate
Date: Wed Sep 10 03:21:50 2008
New Revision: 693773

URL: http://svn.apache.org/viewvc?rev=693773&view=rev
Log:
- added generated serialVersionUID
- applied Generics

Modified:
    portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/i18n/KeyedMessage.java

Modified: portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/i18n/KeyedMessage.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/i18n/KeyedMessage.java?rev=693773&r1=693772&r2=693773&view=diff
==============================================================================
--- portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/i18n/KeyedMessage.java (original)
+++ portals/jetspeed-2/portal/branches/security-refactoring/jetspeed-api/src/main/java/org/apache/jetspeed/i18n/KeyedMessage.java Wed Sep 10 03:21:50 2008
@@ -173,6 +173,8 @@
  */
 public class KeyedMessage implements Serializable
 {
+    private static final long serialVersionUID = -2741118913698034852L;
+
     /**
      * Static String Field name searched for in the class defining a KeyedMessage containing the default resource bundle
      * to use for translation. <br/><em>Note: this Field is looked up using definingClass.getField thus it may also be
@@ -188,7 +190,7 @@
     /**
      * Map caching default resource bundle names keyed on containingClass
      */
-    private static final HashMap resourceNameMap                 = new HashMap();
+    private static final HashMap<Class<?>, String> resourceNameMap                 = new HashMap<Class<?>, String>();
 
     /**
      * Default message used when key couldn't be looked up in the default or a specified resource bundle
@@ -214,7 +216,7 @@
     /**
      * The class in which this instance is defined as a static Field.
      */
-    private Class                containingClass;
+    private Class<?>             containingClass;
 
     /**
      * Indicates if this instance could be {@link #resolve() resolved}.
@@ -277,7 +279,7 @@
     {
         synchronized (resourceNameMap)
         {
-            return (String) resourceNameMap.get(containingClass);
+            return resourceNameMap.get(containingClass);
         }
     }
 



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org