You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2023/04/19 19:18:31 UTC

[commons-lang] branch master updated: Better name

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 6cca6ff4a Better name
6cca6ff4a is described below

commit 6cca6ff4a540b1811bec01934f9452761f7ef489
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Wed Apr 19 15:18:27 2023 -0400

    Better name
---
 src/test/java/org/apache/commons/lang3/CharUtilsPerfRun.java | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/test/java/org/apache/commons/lang3/CharUtilsPerfRun.java b/src/test/java/org/apache/commons/lang3/CharUtilsPerfRun.java
index 56aa26ca4..f9e37ddbb 100644
--- a/src/test/java/org/apache/commons/lang3/CharUtilsPerfRun.java
+++ b/src/test/java/org/apache/commons/lang3/CharUtilsPerfRun.java
@@ -61,12 +61,12 @@ public class CharUtilsPerfRun {
 
     private static final int COUNT = 5000;
 
-    private static final char[] CHAR_SAMPLES;
+    private static final char[] ALL_CHARS;
 
     static {
-        CHAR_SAMPLES = new char[Character.MAX_VALUE];
+        ALL_CHARS = new char[Character.MAX_VALUE];
         for (char i = Character.MIN_VALUE; i < Character.MAX_VALUE; i++) {
-            CHAR_SAMPLES[i] = i;
+            ALL_CHARS[i] = i;
         }
     }
 
@@ -117,7 +117,7 @@ public class CharUtilsPerfRun {
     private int run_CharSet(final int loopCount) {
         int t = 0;
         for (int i = 0; i < loopCount; i++) {
-            for (final char ch : CHAR_SAMPLES) {
+            for (final char ch : ALL_CHARS) {
                 final boolean b = CharSet.ASCII_NUMERIC.contains(ch);
                 t += b ? 1 : 0;
             }
@@ -128,7 +128,7 @@ public class CharUtilsPerfRun {
     private int run_CharUtils_isAsciiNumeric(final int loopCount) {
         int t = 0;
         for (int i = 0; i < loopCount; i++) {
-            for (final char ch : CHAR_SAMPLES) {
+            for (final char ch : ALL_CHARS) {
                 final boolean b = CharUtils.isAsciiNumeric(ch);
                 t += b ? 1 : 0;
             }
@@ -139,7 +139,7 @@ public class CharUtilsPerfRun {
     private int run_inlined_CharUtils_isAsciiNumeric(final int loopCount) {
         int t = 0;
         for (int i = 0; i < loopCount; i++) {
-            for (final char ch : CHAR_SAMPLES) {
+            for (final char ch : ALL_CHARS) {
                 final boolean b = ch >= '0' && ch <= '9';
                 t += b ? 1 : 0;
             }