Merge pull request #30655 from dreis2211

* pr/30655:
  Remove unused private methods

Closes gh-30655
pull/30748/head
Stephane Nicoll 3 years ago
commit d4b9253260

@ -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…
Cancel
Save