Remove unused private methods

See gh-30655
This commit is contained in:
dreis2211 2022-04-13 20:02:05 +02:00 committed by Stephane Nicoll
parent 3175fb8302
commit a63e730136
2 changed files with 1 additions and 16 deletions

View File

@ -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");
* 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 {
try {
Field field = type.getDeclaredField(fieldName);

View File

@ -221,10 +221,6 @@ class MetadataGenerationEnvironment {
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) {
Element element = stack.peekLast();
for (AnnotationMirror annotation : this.elements.getAllAnnotationMirrors(element)) {