From a601bc863b76d47ad92c629ada562849c04c17f5 Mon Sep 17 00:00:00 2001 From: dreis2211 Date: Sat, 18 Aug 2018 13:27:43 +0200 Subject: [PATCH] Remove unused method in TypeUtils Closes gh-14130 --- .../boot/configurationprocessor/TypeUtils.java | 10 ---------- 1 file changed, 10 deletions(-) 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 ce3e6d32751..1b3f6dabb82 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;