Use final.
This commit is contained in:
parent
d72c88a082
commit
24957f9934
|
@ -874,7 +874,7 @@ public class NumberUtils {
|
|||
* can be null)
|
||||
* @return true if the magnitude is zero
|
||||
*/
|
||||
private static boolean isZero(final String mant, String dec) {
|
||||
private static boolean isZero(final String mant, final String dec) {
|
||||
return isAllZeros(mant) && isAllZeros(dec);
|
||||
}
|
||||
|
||||
|
|
|
@ -717,7 +717,7 @@ public class NumberUtilsTest {
|
|||
}
|
||||
}
|
||||
|
||||
private static void assertCreateNumberZero(String number, Object zero, Object negativeZero) {
|
||||
private static void assertCreateNumberZero(final String number, final Object zero, final Object negativeZero) {
|
||||
assertEquals(zero, NumberUtils.createNumber(number), () -> "Input: " + number);
|
||||
assertEquals(zero, NumberUtils.createNumber("+" + number), () -> "Input: +" + number);
|
||||
assertEquals(negativeZero, NumberUtils.createNumber("-" + number), () -> "Input: -" + number);
|
||||
|
|
Loading…
Reference in New Issue