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
commit 74e7fd172624111016e30bfa0258c68960afb9a0 Author: Gary Gregory <[email protected]> AuthorDate: Wed Dec 31 17:10:04 2025 -0500 Use for each on array --- src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java b/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java index 3633a26e4..c894654c9 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java @@ -328,9 +328,9 @@ private static <T> String anyToString(final T object) { } private static void appendRecursiveTypes(final StringBuilder builder, final int[] recursiveTypeIndexes, final Type[] argumentTypes) { - for (int i = 0; i < recursiveTypeIndexes.length; i++) { - // toString() or SO - GT_JOINER.join(builder, argumentTypes[i].toString()); + for (final Type type : argumentTypes) { + // toString() or you get a SO + GT_JOINER.join(builder, Objects.toString(type)); } final Type[] argumentsFiltered = ArrayUtils.removeAll(argumentTypes, recursiveTypeIndexes); if (argumentsFiltered.length > 0) {
