A wild Velocity 5.0.0 appears!

This commit is contained in:
Andrew Steinborn
2023-03-15 23:00:37 -04:00
parent 7e9a25209c
commit 8b1eb9b214
5 changed files with 9 additions and 22 deletions

View File

@@ -534,14 +534,7 @@ public class VelocityServer implements ProxyServer, ForwardingAudience {
shutdown = true;
if (explicitExit) {
AccessController.doPrivileged(new PrivilegedAction<Void>() {
@Override
@SuppressFBWarnings("DM_EXIT")
public Void run() {
System.exit(0);
return null;
}
});
System.exit(0);
}
};

View File

@@ -82,8 +82,7 @@ public class JavaPluginLoader implements PluginLoader {
}
URL pluginJarUrl = candidate.getSource().get().toUri().toURL();
PluginClassLoader loader = AccessController.doPrivileged(
(PrivilegedAction<PluginClassLoader>) () -> new PluginClassLoader(new URL[]{pluginJarUrl}));
PluginClassLoader loader = new PluginClassLoader(new URL[]{pluginJarUrl});
loader.addToClassloaders();
JavaVelocityPluginDescriptionCandidate candidateInst =