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 39aa8a57d [LANG-1773] Apache Commons Lang no longer builds on Android (#1381) 39aa8a57d is described below commit 39aa8a57d25ff43598dc912bf899ea89a3036457 Author: Éamonn McManus <emcma...@google.com> AuthorDate: Mon May 12 04:58:05 2025 -0700 [LANG-1773] Apache Commons Lang no longer builds on Android (#1381) Remove an unnecessary reference to `java.lang.reflect.AnnotatedType`, which does not exist on Android. We immediately call `getType()` on it, so we might just as well use the method that gives us `Type[]` directly. --- src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java | 5 ++--- 1 file changed, 2 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 3cdc9c119..ca668dbca 100644 --- a/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java +++ b/src/main/java/org/apache/commons/lang3/reflect/TypeUtils.java @@ -16,7 +16,6 @@ */ package org.apache.commons.lang3.reflect; -import java.lang.reflect.AnnotatedType; import java.lang.reflect.Array; import java.lang.reflect.GenericArrayType; import java.lang.reflect.GenericDeclaration; @@ -1361,8 +1360,8 @@ private static boolean isAssignable(final Type type, final WildcardType toWildca */ private static boolean isCyclical(final Class<?> cls) { for (final TypeVariable<?> typeParameter : cls.getTypeParameters()) { - for (final AnnotatedType annotatedBound : typeParameter.getAnnotatedBounds()) { - if (annotatedBound.getType().getTypeName().contains(cls.getName())) { + for (final Type bound : typeParameter.getBounds()) { + if (bound.getTypeName().contains(cls.getName())) { return true; } }