Remove redundant conditional branch
@@ -835,9 +835,7 @@ public class BigFraction extends Number implements Comparable<BigFraction>, Seri
private static BigInteger roundAndRightShift(BigInteger value, int bits, boolean hasFractionalBits) {
if (bits <= 0) {
throw new IllegalArgumentException();
- } else if (bits > value.bitLength()) {
- return BigInteger.ZERO;
- } else {
+ }
boolean roundUp = false;
if (value.testBit(bits - 1)
&& (hasFractionalBits
@@ -851,7 +849,6 @@ public class BigFraction extends Number implements Comparable<BigFraction>, Seri
}
return result;
}
- }
/**
* <p>
