|
42 | 42 | import org.elasticsearch.index.IndexVersion; |
43 | 43 | import org.elasticsearch.index.codec.vectors.reflect.OffHeapReflectionUtils; |
44 | 44 | import org.elasticsearch.jdk.JarHell; |
45 | | -import org.elasticsearch.jdk.RuntimeVersionFeature; |
46 | 45 | import org.elasticsearch.monitor.jvm.HotThreads; |
47 | 46 | import org.elasticsearch.monitor.jvm.JvmInfo; |
48 | 47 | import org.elasticsearch.monitor.os.OsProbe; |
|
63 | 62 | import java.lang.reflect.InvocationTargetException; |
64 | 63 | import java.nio.file.Files; |
65 | 64 | import java.nio.file.Path; |
66 | | -import java.security.Permission; |
67 | 65 | import java.security.Security; |
68 | 66 | import java.util.ArrayList; |
69 | 67 | import java.util.HashMap; |
|
78 | 76 | import java.util.stream.Collectors; |
79 | 77 | import java.util.stream.Stream; |
80 | 78 |
|
81 | | -import static org.elasticsearch.bootstrap.BootstrapSettings.SECURITY_FILTER_BAD_DEFAULTS_SETTING; |
82 | 79 | import static org.elasticsearch.nativeaccess.WindowsFunctions.ConsoleCtrlHandler.CTRL_CLOSE_EVENT; |
83 | 80 |
|
84 | 81 | /** |
@@ -236,8 +233,7 @@ private static void initPhase2(Bootstrap bootstrap) throws IOException { |
236 | 233 | var pluginData = Stream.concat( |
237 | 234 | modulesBundles.stream() |
238 | 235 | .map(bundle -> new PolicyUtils.PluginData(bundle.getDir(), bundle.pluginDescriptor().isModular(), false)), |
239 | | - pluginsBundles.stream() |
240 | | - .map(bundle -> new PolicyUtils.PluginData(bundle.getDir(), bundle.pluginDescriptor().isModular(), true)) |
| 236 | + pluginsBundles.stream().map(bundle -> new PolicyUtils.PluginData(bundle.getDir(), bundle.pluginDescriptor().isModular(), true)) |
241 | 237 | ).toList(); |
242 | 238 |
|
243 | 239 | var pluginPolicyPatches = collectPluginPolicyPatches(modulesBundles, pluginsBundles, logger); |
|
0 commit comments