diff --git a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SecurityActions.java b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SecurityActions.java index 550c8fcc..a3edbeba 100644 --- a/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SecurityActions.java +++ b/api/src/main/java/jakarta/enterprise/inject/build/compatible/spi/SecurityActions.java @@ -26,6 +26,7 @@ private SecurityActions() { static ServiceLoader loadService(Class service, ClassLoader classLoader) { return AccessController.doPrivileged( - (PrivilegedAction>) () -> ServiceLoader.load(service, classLoader)); + (PrivilegedAction>) () -> ServiceLoader.load(service, classLoader) + ); } } diff --git a/api/src/main/java/jakarta/enterprise/inject/spi/SecurityActions.java b/api/src/main/java/jakarta/enterprise/inject/spi/SecurityActions.java index 35747504..56aa55bb 100644 --- a/api/src/main/java/jakarta/enterprise/inject/spi/SecurityActions.java +++ b/api/src/main/java/jakarta/enterprise/inject/spi/SecurityActions.java @@ -35,6 +35,7 @@ private SecurityActions() { static ServiceLoader loadService(Class service, ClassLoader classLoader) { return AccessController.doPrivileged( - (PrivilegedAction>) () -> ServiceLoader.load(service, classLoader)); + (PrivilegedAction>) () -> ServiceLoader.load(service, classLoader) + ); } } diff --git a/api/src/main/java/jakarta/enterprise/util/SecurityActions.java b/api/src/main/java/jakarta/enterprise/util/SecurityActions.java index 32a40be8..36364e83 100644 --- a/api/src/main/java/jakarta/enterprise/util/SecurityActions.java +++ b/api/src/main/java/jakarta/enterprise/util/SecurityActions.java @@ -39,7 +39,8 @@ static void setAccessible(Method method) { (PrivilegedAction) () -> { method.setAccessible(true); return null; - }); + } + ); } else { method.setAccessible(true); } @@ -48,7 +49,8 @@ static void setAccessible(Method method) { static Method[] getDeclaredMethods(Class clazz) { if (System.getSecurityManager() != null) { return AccessController.doPrivileged( - (PrivilegedAction) () -> clazz.getDeclaredMethods()); + (PrivilegedAction) () -> clazz.getDeclaredMethods() + ); } else { return clazz.getDeclaredMethods(); } diff --git a/ide-config/src/main/resources/cdi-format.xml b/ide-config/src/main/resources/cdi-format.xml index abda5766..6fef52e3 100644 --- a/ide-config/src/main/resources/cdi-format.xml +++ b/ide-config/src/main/resources/cdi-format.xml @@ -305,7 +305,7 @@ - +