mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Remove unused private methods
See gh-30655
This commit is contained in:
parent
3175fb8302
commit
a63e730136
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2012-2021 the original author or authors.
|
* Copyright 2012-2022 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@ -350,17 +350,6 @@ public class Restarter {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void clear(String className, String fieldName) {
|
|
||||||
try {
|
|
||||||
clear(Class.forName(className), fieldName);
|
|
||||||
}
|
|
||||||
catch (Exception ex) {
|
|
||||||
if (this.logger.isDebugEnabled()) {
|
|
||||||
this.logger.debug("Unable to clear field " + className + " " + fieldName, ex);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
private void clear(Class<?> type, String fieldName) throws Exception {
|
private void clear(Class<?> type, String fieldName) throws Exception {
|
||||||
try {
|
try {
|
||||||
Field field = type.getDeclaredField(fieldName);
|
Field field = type.getDeclaredField(fieldName);
|
||||||
|
@ -221,10 +221,6 @@ class MetadataGenerationEnvironment {
|
|||||||
return Collections.unmodifiableList(stack);
|
return Collections.unmodifiableList(stack);
|
||||||
}
|
}
|
||||||
|
|
||||||
private boolean hasAnnotationRecursive(Element element, String type) {
|
|
||||||
return !getElementsAnnotatedOrMetaAnnotatedWith(element, this.elements.getTypeElement(type)).isEmpty();
|
|
||||||
}
|
|
||||||
|
|
||||||
private boolean collectElementsAnnotatedOrMetaAnnotatedWith(TypeElement annotationType, LinkedList<Element> stack) {
|
private boolean collectElementsAnnotatedOrMetaAnnotatedWith(TypeElement annotationType, LinkedList<Element> stack) {
|
||||||
Element element = stack.peekLast();
|
Element element = stack.peekLast();
|
||||||
for (AnnotationMirror annotation : this.elements.getAllAnnotationMirrors(element)) {
|
for (AnnotationMirror annotation : this.elements.getAllAnnotationMirrors(element)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user