Skip to content

Commit a601bc8

Browse files
dreis2211snicoll
authored andcommitted
Remove unused method in TypeUtils
Closes gh-14130
1 parent 3ad3cfd commit a601bc8

File tree

1 file changed

+0
-10
lines changed
  • spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor

1 file changed

+0
-10
lines changed

spring-boot-project/spring-boot-tools/spring-boot-configuration-processor/src/main/java/org/springframework/boot/configurationprocessor/TypeUtils.java

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -128,16 +128,6 @@ public boolean isCollectionOrMap(TypeMirror type) {
128128
|| this.env.getTypeUtils().isAssignable(type, this.mapType);
129129
}
130130

131-
public boolean isEnclosedIn(Element candidate, TypeElement element) {
132-
if (candidate == null || element == null) {
133-
return false;
134-
}
135-
if (candidate.equals(element)) {
136-
return true;
137-
}
138-
return isEnclosedIn(candidate.getEnclosingElement(), element);
139-
}
140-
141131
public String getJavaDoc(Element element) {
142132
String javadoc = (element != null)
143133
? this.env.getElementUtils().getDocComment(element) : null;

0 commit comments

Comments
 (0)