Author: psteitz
Date: Sat Jun 25 20:29:09 2005
New Revision: 201821

URL: http://svn.apache.org/viewcvs?rev=201821&view=rev
Log:
Eliminated JDK 1.4 dependency.

Modified:
    
jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java

Modified: 
jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java
URL: 
http://svn.apache.org/viewcvs/jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java?rev=201821&r1=201820&r2=201821&view=diff
==============================================================================
--- 
jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java
 (original)
+++ 
jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java
 Sat Jun 25 20:29:09 2005
@@ -134,8 +134,8 @@
     

     /**

      * Create a default number format.  The default number format is based on

-     * [EMAIL PROTECTED] NumberFormat#getInstance()} with the only customizing 
is the

-     * maximum number of fraction digits, which is set to 2.  

+     * [EMAIL PROTECTED] NumberFormat#getNumberInstance(java.util.Locale)} 
with the only

+     * customizing is the maximum number of fraction digits, which is set to 
0.  

      * @return the default number format.

      */

     protected static NumberFormat getDefaultNumberFormat() {

@@ -144,13 +144,14 @@
     

     /**

      * Create a default number format.  The default number format is based on

-     * [EMAIL PROTECTED] NumberFormat#getInstance(java.util.Locale)} with the 
only

-     * customizing is the maximum number of fraction digits, which is set to 
2.  

+     * [EMAIL PROTECTED] NumberFormat#getNumberInstance(java.util.Locale)} 
with the only

+     * customizing is the maximum number of fraction digits, which is set to 
0.  

      * @param locale the specific locale used by the format.

      * @return the default number format specific to the given locale.

      */

     private static NumberFormat getDefaultNumberFormat(Locale locale) {

-        NumberFormat nf = NumberFormat.getIntegerInstance(locale);

+        NumberFormat nf = NumberFormat.getNumberInstance(locale);

+        nf.setMaximumFractionDigits(0);

         return nf;

     }

     




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to