diff options
Diffstat (limited to 'annotation/src/main/java/org/apache')
-rw-r--r-- | annotation/src/main/java/org/apache/harmony/annotation/internal/nls/Messages.java | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/annotation/src/main/java/org/apache/harmony/annotation/internal/nls/Messages.java b/annotation/src/main/java/org/apache/harmony/annotation/internal/nls/Messages.java index 2182ae0..91f3548 100644 --- a/annotation/src/main/java/org/apache/harmony/annotation/internal/nls/Messages.java +++ b/annotation/src/main/java/org/apache/harmony/annotation/internal/nls/Messages.java @@ -20,12 +20,22 @@ * if this tool runs again. Better make changes in the template file. */ +// BEGIN android-note +// Redundant code has been removed and is now called from MsgHelp. +// END android-note + package org.apache.harmony.annotation.internal.nls; + +import java.security.AccessController; +import java.security.PrivilegedAction; +import java.util.Locale; import java.util.MissingResourceException; import java.util.ResourceBundle; +// BEGIN android-changed import org.apache.harmony.luni.util.MsgHelp; +// END android-changed /** * This class retrieves strings from a resource bundle and returns them, @@ -43,8 +53,10 @@ import org.apache.harmony.luni.util.MsgHelp; */ public class Messages { + // BEGIN android-changed private static final String sResource = "org.apache.harmony.annotation.internal.nls.messages"; + // END android-changed /** * Retrieves a message which has no arguments. @@ -54,7 +66,9 @@ public class Messages { * @return String the message for that key in the system message bundle. */ static public String getString(String msg) { + // BEGIN android-changed return MsgHelp.getString(sResource, msg); + // END android-changed } /** @@ -121,6 +135,12 @@ public class Messages { * @return String the message for that key in the system message bundle. */ static public String getString(String msg, Object[] args) { + // BEGIN android-changed return MsgHelp.getString(sResource, msg, args); + // END android-changed } + + // BEGIN android-note + // Duplicate code was dropped in favor of using MsgHelp. + // END android-note } |