From 67c6450b6179e027ff253cec31b6ebec882acfba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=A2=A6=E6=97=97?= <2663479778@qq.com> Date: Thu, 20 Apr 2023 21:00:51 +0800 Subject: [PATCH] Refactor rename variable "hex_prefixes" to "hexPrefixes" (#1059) --- src/main/java/org/apache/commons/lang3/math/NumberUtils.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java index 4273a41c1..edb1df729 100644 --- a/src/main/java/org/apache/commons/lang3/math/NumberUtils.java +++ b/src/main/java/org/apache/commons/lang3/math/NumberUtils.java @@ -666,11 +666,11 @@ public class NumberUtils { throw new NumberFormatException("A blank string is not a valid number"); } // Need to deal with all possible hex prefixes here - final String[] hex_prefixes = {"0x", "0X", "#"}; + final String[] hexPrefixes = {"0x", "0X", "#"}; final int length = str.length(); final int offset = str.charAt(0) == '+' || str.charAt(0) == '-' ? 1 : 0; int pfxLen = 0; - for (final String pfx : hex_prefixes) { + for (final String pfx : hexPrefixes) { if (str.startsWith(pfx, offset)) { pfxLen += pfx.length() + offset; break;