Remove unused private methods
See gh-30655
This commit is contained in:
committed by
Stephane Nicoll
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");
|
||||
* 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);
|
||||
|
||||
Reference in New Issue
Block a user