diff --git a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java index ce3e6d3275..1b3f6dabb8 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java @@ -128,16 +128,6 @@ class TypeUtils { || this.env.getTypeUtils().isAssignable(type, this.mapType); } - public boolean isEnclosedIn(Element candidate, TypeElement element) { - if (candidate == null || element == null) { - return false; - } - if (candidate.equals(element)) { - return true; - } - return isEnclosedIn(candidate.getEnclosingElement(), element); - } - public String getJavaDoc(Element element) { String javadoc = (element != null) ? this.env.getElementUtils().getDocComment(element) : null;