- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for createIfAbsent (0.18 sec)
-
subprojects/core/src/test/groovy/org/gradle/api/internal/initialization/loadercache/DefaultClassLoaderCacheTest.groovy
def classPath = classPath("root") when: def result = cache.createIfAbsent(id1, classPath, parent, { ClassLoader spec -> loader } as Function, null) then: result == loader cache.size() == 1 when: def result2 = cache.createIfAbsent(id1, classPath, parent, { throw new RuntimeException() } as Function, null) then:
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Wed Feb 23 19:34:48 UTC 2022 - 7.4K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/initialization/ImmutableClassLoaderScope.java
listener.childScopeCreated(parent.getId(), id, origin); ClassLoaderId classLoaderId = id.localId(); if (localClassLoaderFactory != null) { localClassLoader = classLoaderCache.createIfAbsent(classLoaderId, classPath, parent.getExportClassLoader(), localClassLoaderFactory, classpathImplementationHash); } else {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jan 12 20:19:43 UTC 2024 - 3.5K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/api/internal/initialization/loadercache/DefaultClassLoaderCache.java
return doGet(id, classPath, parent, filterSpec, implementationHash, this::createClassLoader); } @Override public ClassLoader createIfAbsent(ClassLoaderId id, ClassPath classPath, @Nullable ClassLoader parent, Function<ClassLoader, ClassLoader> factoryFunction, @Nullable HashCode implementationHash) {
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon Dec 11 13:37:56 UTC 2023 - 10.4K bytes - Viewed (0)