commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anaximandro (Woody)" <agodinh...@globo.com>
Subject [18n] suggestion patch - LocalizedMessage.java
Date Tue, 01 Feb 2005 08:26:23 GMT
"final" enhacements
Index: LocalizedMessage.java
===================================================================
RCS file:
/home/cvspublic/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18
n/LocalizedMessage.java,v
retrieving revision 1.1
diff -u -r1.1 LocalizedMessage.java
--- LocalizedMessage.java 4 Oct 2004 13:41:09 -0000 1.1
+++ LocalizedMessage.java 1 Feb 2005 03:21:20 -0000
@@ -25,29 +25,29 @@
 import java.util.Locale;

 public class LocalizedMessage extends LocalizedText {
-    public static String TITLE = "title";
+    private static final String TITLE = "title";

-    public LocalizedMessage(String messageId) {
+    public LocalizedMessage(final String messageId) {
         super(messageId);
     }

-    public LocalizedMessage(String messageId, Object[] arguments) {
+    public LocalizedMessage(final String messageId, final Object[]
arguments) {
         super(messageId, arguments);
     }

     public String getTitle() throws MessageNotFoundException {
-        return getText(TITLE, Locale.getDefault());
+        return getEntry(TITLE, Locale.getDefault());
     }

-    public String getTitle(Locale locale) throws MessageNotFoundException {
-        return getText(TITLE, locale);
+    public String getTitle(final Locale locale) throws
MessageNotFoundException {
+        return getEntry(TITLE, locale);
     }

-    public String getTitle(String defaultTitle) {
-        return getText(TITLE, defaultTitle, Locale.getDefault());
+    public String getTitle(final String defaultTitle) {
+        return getEntry(TITLE, defaultTitle, Locale.getDefault());
     }

-    public String getTitle(Locale locale, String defaultTitle) {
-        return getText(TITLE, defaultTitle, locale);
+    public String getTitle(final Locale locale, final String defaultTitle)
{
+        return getEntry(TITLE, defaultTitle, locale);
     }
 }


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


Mime
View raw message