diff options
Diffstat (limited to 'sonar-core')
-rw-r--r-- | sonar-core/src/main/java/org/sonar/classloader/ClassloaderBuilder.java | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/sonar-core/src/main/java/org/sonar/classloader/ClassloaderBuilder.java b/sonar-core/src/main/java/org/sonar/classloader/ClassloaderBuilder.java index 076865924dd..5a843212fc9 100644 --- a/sonar-core/src/main/java/org/sonar/classloader/ClassloaderBuilder.java +++ b/sonar-core/src/main/java/org/sonar/classloader/ClassloaderBuilder.java @@ -117,13 +117,7 @@ public class ClassloaderBuilder { throw new IllegalStateException(String.format("The classloader '%s' already exists in the list of previously created classloaders." + " Can not create it twice.", key)); } - //TODO: to be checked, the other version of the code is not building - ClassRealm realm = AccessController.doPrivileged(new PrivilegedAction<ClassRealm>() { - @Override - public ClassRealm run() { - return new ClassRealm(key, baseClassloader); - } - }); + ClassRealm realm = AccessController.doPrivileged((PrivilegedAction<ClassRealm>) () -> new ClassRealm(key, baseClassloader)); realm.setStrategy(LoadingOrder.PARENT_FIRST.strategy); newRealmsByKey.put(key, new NewRealm(realm)); return this; |