Correction to static field name

This commit is contained in:
Dale Schultz 2016-09-13 14:32:44 -04:00
parent 695a7473d1
commit 30efb4e880
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ import java.util.Locale;
* This class provides Number conversion utilities based on the default Locale. * This class provides Number conversion utilities based on the default Locale.
*/ */
public final class NumberUtil { public final class NumberUtil {
private static final NumberFormat numFormat = NumberFormat.getInstance(Locale.getDefault()); private static final NumberFormat NUM_FORMATTER = NumberFormat.getInstance(Locale.getDefault());
private NumberUtil() { private NumberUtil() {
} }
@ -40,6 +40,6 @@ public final class NumberUtil {
* @exception ParseException is thrown when parse errors are encountered. * @exception ParseException is thrown when parse errors are encountered.
*/ */
public static double doubleValue(String str) throws ParseException { public static double doubleValue(String str) throws ParseException {
return numFormat.parse(str).doubleValue(); return NUM_FORMATTER.parse(str).doubleValue();
} }
} }