fixed checkstyle warnings
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/branches/MATH_2_X@992878 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
5b1beecc97
commit
a7cfaf46e3
|
@ -321,7 +321,7 @@ public class DfpMath {
|
||||||
int p2 = 0;
|
int p2 = 0;
|
||||||
|
|
||||||
// Check the arguments somewhat here
|
// Check the arguments somewhat here
|
||||||
if (a.equals(a.getZero()) || a.lessThan(a.getZero()) || (a.equals(a) == false)) {
|
if (a.equals(a.getZero()) || a.lessThan(a.getZero()) || a.isNaN()) {
|
||||||
// negative, zero or NaN
|
// negative, zero or NaN
|
||||||
a.getField().setIEEEFlagsBits(DfpField.FLAG_INVALID);
|
a.getField().setIEEEFlagsBits(DfpField.FLAG_INVALID);
|
||||||
return a.dotrap(DfpField.FLAG_INVALID, "ln", a, a.newInstance((byte)1, (byte) Dfp.QNAN));
|
return a.dotrap(DfpField.FLAG_INVALID, "ln", a, a.newInstance((byte)1, (byte) Dfp.QNAN));
|
||||||
|
@ -524,7 +524,7 @@ public class DfpMath {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (y.equals(one)) {
|
if (y.equals(one)) {
|
||||||
if (!x.equals(x)) {
|
if (x.isNaN()) {
|
||||||
// Test for NaNs
|
// Test for NaNs
|
||||||
x.getField().setIEEEFlagsBits(DfpField.FLAG_INVALID);
|
x.getField().setIEEEFlagsBits(DfpField.FLAG_INVALID);
|
||||||
return x.dotrap(DfpField.FLAG_INVALID, POW_TRAP, x, x);
|
return x.dotrap(DfpField.FLAG_INVALID, POW_TRAP, x, x);
|
||||||
|
@ -532,7 +532,7 @@ public class DfpMath {
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!x.equals(x) || !y.equals(y)) {
|
if (x.isNaN() || y.isNaN()) {
|
||||||
// Test for NaNs
|
// Test for NaNs
|
||||||
x.getField().setIEEEFlagsBits(DfpField.FLAG_INVALID);
|
x.getField().setIEEEFlagsBits(DfpField.FLAG_INVALID);
|
||||||
return x.dotrap(DfpField.FLAG_INVALID, POW_TRAP, x, x.newInstance((byte)1, (byte) Dfp.QNAN));
|
return x.dotrap(DfpField.FLAG_INVALID, POW_TRAP, x, x.newInstance((byte)1, (byte) Dfp.QNAN));
|
||||||
|
|
Loading…
Reference in New Issue