This is an automated email from the ASF dual-hosted git repository.

ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-lang.git


The following commit(s) were added to refs/heads/master by this push:
     new 67c6450b6 Refactor rename variable "hex_prefixes" to "hexPrefixes" 
(#1059)
67c6450b6 is described below

commit 67c6450b6179e027ff253cec31b6ebec882acfba
Author: 徐梦旗 <[email protected]>
AuthorDate: Thu Apr 20 21:00:51 2023 +0800

    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;

Reply via email to