Unnecessary to cast byte into byte

Add missing @Override marker

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@1003349 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sebastian Bazley 2010-10-01 01:40:02 +00:00
parent 955b3692b7
commit 60c7078ca3
1 changed files with 4 additions and 3 deletions

View File

@ -344,19 +344,19 @@ public class Dfp implements FieldElement<Dfp> {
// 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<Dfp> {
/** 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