File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
test/framework/src/main/java/org/elasticsearch/bootstrap Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 2525import org .elasticsearch .jdk .JarHell ;
2626import org .elasticsearch .plugins .PluginDescriptor ;
2727import org .elasticsearch .secure_sm .SecureSM ;
28- import org .elasticsearch .test .ESTestCase ;
2928import org .elasticsearch .test .PrivilegedOperations ;
3029import org .elasticsearch .test .mockito .SecureMockMaker ;
3130import org .junit .Assert ;
@@ -361,8 +360,10 @@ public static void ensureInitialized() {}
361360 public static Closeable disableTestSecurityManager () {
362361 final var sm = System .getSecurityManager ();
363362 if (sm == null ) {
364- throw new SecurityException ("SecurityManager already disabled. This is indicative of a test bug. " +
365- "Please ensure callers to this method close the returned Closeable." );
363+ throw new SecurityException (
364+ "SecurityManager already disabled. This is indicative of a test bug. "
365+ + "Please ensure callers to this method close the returned Closeable."
366+ );
366367 }
367368 AccessController .doPrivileged ((PrivilegedAction <Void >) () -> {
368369 Security .setSecurityManager (null );
You can’t perform that action at this time.
0 commit comments