commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From l..@apache.org
Subject svn commit: r1003889 - in /commons/proper/math/branches/MATH_2_X: ./ src/main/java/org/apache/commons/math/dfp/Dfp.java
Date Sat, 02 Oct 2010 21:11:55 GMT
Author: luc
Date: Sat Oct  2 21:11:55 2010
New Revision: 1003889

URL: http://svn.apache.org/viewvc?rev=1003889&view=rev
Log:
backported r1003349 from trunk to branch 2.X
Unnecessary to cast byte into byte
Add missing @Override marker

Modified:
    commons/proper/math/branches/MATH_2_X/   (props changed)
    commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/Dfp.java

Propchange: commons/proper/math/branches/MATH_2_X/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Sat Oct  2 21:11:55 2010
@@ -1 +1 @@
-/commons/proper/math/trunk:1003346
+/commons/proper/math/trunk:1003346,1003348-1003349

Modified: commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/Dfp.java
URL: http://svn.apache.org/viewvc/commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/Dfp.java?rev=1003889&r1=1003888&r2=1003889&view=diff
==============================================================================
--- commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/Dfp.java
(original)
+++ commons/proper/math/branches/MATH_2_X/src/main/java/org/apache/commons/math/dfp/Dfp.java
Sat Oct  2 21:11:55 2010
@@ -344,19 +344,19 @@ public class Dfp implements FieldElement
         // Check some special cases
         if (s.equals(POS_INFINITY_STRING)) {
             sign = (byte) 1;
-            nans = (byte) INFINITE;
+            nans = INFINITE;
             return;
         }
 
         if (s.equals(NEG_INFINITY_STRING)) {
             sign = (byte) -1;
-            nans = (byte) INFINITE;
+            nans = INFINITE;
             return;
         }
 
         if (s.equals(NAN_STRING)) {
             sign = (byte) 1;
-            nans = (byte) QNAN;
+            nans = QNAN;
             return;
         }
 
@@ -1949,6 +1949,7 @@ public class Dfp implements FieldElement
     /** Get a string representation of the instance.
      * @return string representation of the instance
      */
+    @Override
     public String toString() {
         if (nans != FINITE) {
             // if non-finite exceptional cases



Mime
View raw message