commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ggreg...@apache.org
Subject svn commit: r1747596 - /commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/RationalNumberTest.java
Date Thu, 09 Jun 2016 20:30:07 GMT
Author: ggregory
Date: Thu Jun  9 20:30:07 2016
New Revision: 1747596

URL: http://svn.apache.org/viewvc?rev=1747596&view=rev
Log:
Access static method directly.

Modified:
    commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/RationalNumberTest.java

Modified: commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/RationalNumberTest.java
URL: http://svn.apache.org/viewvc/commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/RationalNumberTest.java?rev=1747596&r1=1747595&r2=1747596&view=diff
==============================================================================
--- commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/RationalNumberTest.java
(original)
+++ commons/proper/imaging/trunk/src/test/java/org/apache/commons/imaging/common/RationalNumberTest.java
Thu Jun  9 20:30:07 2016
@@ -118,7 +118,7 @@ public class RationalNumberTest extends
         final RationalNumber rational = RationalNumber.valueOf(testValue);
         final double difference = Math.abs(testValue - rational.doubleValue());
 
-        final NumberFormat nf = DecimalFormat.getInstance();
+        final NumberFormat nf = NumberFormat.getInstance();
         nf.setMaximumFractionDigits(15);
 
         // TODO assert something here, the following will fail for some values. Do we have
a bug?



Mime
View raw message