commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pste...@apache.org
Subject svn commit: r201940 - /jakarta/commons/proper/math/trunk/src/java/org/apache/commons/math/fraction/FractionFormat.java
Date Mon, 27 Jun 2005 03:46:58 GMT
Author: psteitz
Date: Sun Jun 26 20:46:57 2005
New Revision: 201940

URL: http://svn.apache.org/viewcvs?rev=201940&view=rev
Log:
Added integer parse restriction.

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=201940&r1=201939&r2=201940&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
Sun Jun 26 20:46:57 2005
@@ -152,6 +152,7 @@
     private static NumberFormat getDefaultNumberFormat(Locale locale) {
         NumberFormat nf = NumberFormat.getNumberInstance(locale);
         nf.setMaximumFractionDigits(0);
+        nf.setParseIntegerOnly(true);
         return nf;
     }
     



---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message