commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1003349 - /commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java
Date Fri, 01 Oct 2010 01:40:03 GMT
Author: sebb
Date: Fri Oct  1 01:40:02 2010
New Revision: 1003349

URL: http://svn.apache.org/viewvc?rev=1003349&view=rev
Log:
Unnecessary to cast byte into byte
Add missing @Override marker

Modified:
    commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java

Modified: commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java
URL: http://svn.apache.org/viewvc/commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java?rev=1003349&r1=1003348&r2=1003349&view=diff
==============================================================================
--- commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java (original)
+++ commons/proper/math/trunk/src/main/java/org/apache/commons/math/dfp/Dfp.java Fri Oct 
1 01:40:02 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