Use final.

This commit is contained in:
Gary Gregory 2021-05-25 13:34:08 -04:00
parent d72c88a082
commit 24957f9934
2 changed files with 2 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);