harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ton...@apache.org
Subject svn commit: r629320 - /harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/MessageFormat.java
Date Wed, 20 Feb 2008 02:21:10 GMT
Author: tonywu
Date: Tue Feb 19 18:21:08 2008
New Revision: 629320

URL: http://svn.apache.org/viewvc?rev=629320&view=rev
Log:
Apply patch for HARMONY-5460 ([classlib][text] MessageFormat regression at r612718)

Modified:
    harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/MessageFormat.java

Modified: harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/MessageFormat.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/MessageFormat.java?rev=629320&r1=629319&r2=629320&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/MessageFormat.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/MessageFormat.java
Tue Feb 19 18:21:08 2008
@@ -39,8 +39,6 @@
 
     private static final long serialVersionUID = 6479157306784022952L;
 
-    private static com.ibm.icu.text.MessageFormat format;
-
     private Locale locale = Locale.getDefault();
 
     transient private String[] strings;
@@ -453,12 +451,7 @@
                 }
             }
         }
-        if (format == null) {
-            format = new com.ibm.icu.text.MessageFormat(template);
-        } else if (!template.equals(format.toPattern())){
-            format.applyPattern(template);
-        }
-        return format.format(objects);
+        return com.ibm.icu.text.MessageFormat.format(template, objects);
     }
 
     /**



Mime
View raw message