Remove versions less than 17 from JavaVersion enum
Closes gh-29503
This commit is contained in:
@@ -46,7 +46,6 @@ import org.springframework.boot.devtools.restart.FailureHandler.Outcome;
|
||||
import org.springframework.boot.devtools.restart.classloader.ClassLoaderFiles;
|
||||
import org.springframework.boot.devtools.restart.classloader.RestartClassLoader;
|
||||
import org.springframework.boot.logging.DeferredLog;
|
||||
import org.springframework.boot.system.JavaVersion;
|
||||
import org.springframework.cglib.core.ClassNameReader;
|
||||
import org.springframework.context.ConfigurableApplicationContext;
|
||||
import org.springframework.context.support.GenericApplicationContext;
|
||||
@@ -333,9 +332,6 @@ public class Restarter {
|
||||
cleanCachedIntrospectionResultsCache();
|
||||
ReflectionUtils.clearCache();
|
||||
clearAnnotationUtilsCache();
|
||||
if (!JavaVersion.getJavaVersion().isEqualOrNewerThan(JavaVersion.NINE)) {
|
||||
clear("com.sun.naming.internal.ResourceManager", "propertiesCache");
|
||||
}
|
||||
}
|
||||
|
||||
private void cleanCachedIntrospectionResultsCache() throws Exception {
|
||||
|
||||
Reference in New Issue
Block a user