harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From telli...@apache.org
Subject svn commit: r788286 - in /harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text: DecimalFormat.java NumberFormat.java
Date Thu, 25 Jun 2009 08:05:01 GMT
Author: tellison
Date: Thu Jun 25 08:05:00 2009
New Revision: 788286

URL: http://svn.apache.org/viewvc?rev=788286&view=rev
Log:
Apply second patch for HARMONY-6241 (java.text.SimpleDateFormat.SimpleDateFormat(String, Locale)
performance can be improved)

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

Modified: harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/DecimalFormat.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/DecimalFormat.java?rev=788286&r1=788285&r2=788286&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/DecimalFormat.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/DecimalFormat.java
Thu Jun 25 08:05:00 2009
@@ -1436,12 +1436,4 @@
                     }
                 });
     }
-
-    com.ibm.icu.text.DecimalFormat getDform() {
-        return dform;
-    }
-
-    com.ibm.icu.text.DecimalFormatSymbols getIcuSymbols() {
-        return icuSymbols;
-    }
 }

Modified: harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/NumberFormat.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/NumberFormat.java?rev=788286&r1=788285&r2=788286&view=diff
==============================================================================
--- harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/NumberFormat.java
(original)
+++ harmony/enhanced/classlib/trunk/modules/text/src/main/java/java/text/NumberFormat.java
Thu Jun 25 08:05:00 2009
@@ -469,7 +469,7 @@
         com.ibm.icu.text.DecimalFormat icuFormat = (com.ibm.icu.text.DecimalFormat) com.ibm.icu.text.NumberFormat
                 .getNumberInstance(locale);
         String pattern = icuFormat.toPattern();
-        return new DecimalFormat(pattern, new DecimalFormatSymbols(locale));
+        return new DecimalFormat(pattern, new DecimalFormatSymbols(locale, icuFormat.getDecimalFormatSymbols()),
icuFormat);
     }
 
     /**
@@ -494,7 +494,7 @@
         com.ibm.icu.text.DecimalFormat icuFormat = (com.ibm.icu.text.DecimalFormat) com.ibm.icu.text.NumberFormat
                 .getPercentInstance(locale);
         String pattern = icuFormat.toPattern();
-        return new DecimalFormat(pattern, new DecimalFormatSymbols(locale, icuFormat.getDecimalFormatSymbols()),
icuFormat);
+        return new DecimalFormat(pattern, new DecimalFormatSymbols(locale));
     }
 
     @Override



Mime
View raw message