You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by hi...@apache.org on 2010/02/13 10:06:56 UTC
svn commit: r909777 - in /harmony/enhanced/classlib/trunk/modules/luni/src:
main/java/org/apache/harmony/luni/util/Msg.java
main/java/org/apache/harmony/luni/util/MsgHelp.java
test/api/common/org/apache/harmony/luni/tests/util/MsgHelpTest.java
Author: hindessm
Date: Sat Feb 13 09:06:56 2010
New Revision: 909777
URL: http://svn.apache.org/viewvc?rev=909777&view=rev
Log:
Remove old MsgHelp class. Deprecate old Msg class. Can't remove it as the
IBM VMEs still rely on it.
Removed:
harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/MsgHelp.java
harmony/enhanced/classlib/trunk/modules/luni/src/test/api/common/org/apache/harmony/luni/tests/util/MsgHelpTest.java
Modified:
harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Msg.java
Modified: harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Msg.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Msg.java?rev=909777&r1=909776&r2=909777&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Msg.java (original)
+++ harmony/enhanced/classlib/trunk/modules/luni/src/main/java/org/apache/harmony/luni/util/Msg.java Sat Feb 13 09:06:56 2010
@@ -22,7 +22,7 @@
import java.util.MissingResourceException;
import java.util.ResourceBundle;
-import org.apache.harmony.luni.util.MsgHelp;
+import org.apache.harmony.luni.internal.nls.Messages;
/**
* This class retrieves strings from a resource bundle and returns them,
@@ -37,7 +37,10 @@
* will be returned as the associated message. This means that the <em>KEY</em>
* should a reasonable human-readable (english) string.
*
+ * @deprecated use module specific message class such as {@link
+ * org.apache.harmony.luni.internal.nls.Message} for luni.
*/
+@Deprecated
public class Msg {
// ResourceBundle holding the system messages.
@@ -46,7 +49,7 @@
static {
// Attempt to load the messages.
try {
- bundle = MsgHelp.setLocale(Locale.getDefault(),
+ bundle = Messages.setLocale(Locale.getDefault(),
"org.apache.harmony.luni.util.ExternalMessages");
} catch (Throwable e) {
e.printStackTrace();
@@ -143,6 +146,6 @@
}
}
- return MsgHelp.format(format, args);
+ return Messages.format(format, args);
}
}