commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anaximandro (Woody)" <agodinh...@globo.com>
Subject [i18n] suggestion patch - LocalizedError.java
Date Tue, 01 Feb 2005 08:29:07 GMT
"final" enhacements
Index: LocalizedError.java
===================================================================
RCS file:
/home/cvspublic/jakarta-commons-sandbox/i18n/src/java/org/apache/commons/i18
n/LocalizedError.java,v
retrieving revision 1.1
diff -u -r1.1 LocalizedError.java
--- LocalizedError.java 4 Oct 2004 13:41:09 -0000 1.1
+++ LocalizedError.java 1 Feb 2005 03:24:20 -0000
@@ -28,43 +28,43 @@
     private final static String SUMMARY = "summary";
     private final static String DETAILS = "details";

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

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

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

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

-    public String getSummary(String defaultSummary) {
-        return getText(SUMMARY, defaultSummary, Locale.getDefault());
+    public String getSummary(final String defaultSummary) {
+        return getEntry(SUMMARY, defaultSummary, Locale.getDefault());
     }

-    public String getSummary(Locale locale, String defaultSummary) {
-        return getText(SUMMARY, defaultSummary, locale);
+    public String getSummary(final Locale locale, final String
defaultSummary) {
+        return getEntry(SUMMARY, defaultSummary, locale);
     }

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

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

-    public String getDetails(String defaultDetails) {
-        return getText(DETAILS, defaultDetails, Locale.getDefault());
+    public String getDetails(final String defaultDetails) {
+        return getEntry(DETAILS, defaultDetails, Locale.getDefault());
     }

-    public String getDetails(Locale locale, String defaultDetails) {
-        return getText(DETAILS, defaultDetails, locale);
+    public String getDetails(final Locale locale, final String
defaultDetails) {
+        return getEntry(DETAILS, defaultDetails, locale);
     }
 }
\ No newline at end of file


---------------------------------------------------------------------
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