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/06/27 12:48:52 UTC

[commons-text] branch master updated: Format tweak

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-text.git


The following commit(s) were added to refs/heads/master by this push:
     new a5b6c544 Format tweak
a5b6c544 is described below

commit a5b6c54421eb1aab35b36cdc2016a2a7e74c9787
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Tue Jun 27 08:48:48 2023 -0400

    Format tweak
---
 src/main/java/org/apache/commons/text/RandomStringGenerator.java | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/src/main/java/org/apache/commons/text/RandomStringGenerator.java b/src/main/java/org/apache/commons/text/RandomStringGenerator.java
index 8f7bd5ae..16f1f5d5 100644
--- a/src/main/java/org/apache/commons/text/RandomStringGenerator.java
+++ b/src/main/java/org/apache/commons/text/RandomStringGenerator.java
@@ -244,13 +244,12 @@ public final class RandomStringGenerator {
          */
         public Builder withinRange(final char[]... pairs) {
             characterList = new ArrayList<>();
-            for (final char[] pair :  pairs) {
-                Validate.isTrue(pair.length == 2,
-                      "Each pair must contain minimum and maximum code point");
+            for (final char[] pair : pairs) {
+                Validate.isTrue(pair.length == 2, "Each pair must contain minimum and maximum code point");
                 final int minimumCodePoint = pair[0];
                 final int maximumCodePoint = pair[1];
-                Validate.isTrue(minimumCodePoint <= maximumCodePoint,
-                    "Minimum code point %d is larger than maximum code point %d", minimumCodePoint, maximumCodePoint);
+                Validate.isTrue(minimumCodePoint <= maximumCodePoint, "Minimum code point %d is larger than maximum code point %d", minimumCodePoint,
+                        maximumCodePoint);
 
                 for (int index = minimumCodePoint; index <= maximumCodePoint; index++) {
                     characterList.add((char) index);