- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 178 for computeIfAbsent (0.23 sec)
-
subprojects/core/src/main/java/org/gradle/internal/classpath/intercept/CallInterceptorRegistry.java
} public static CallSiteDecorator getGroovyCallDecorator(BytecodeInterceptorFilter interceptorFilter) { return groovyDecorators.computeIfAbsent(interceptorFilter, key -> new DefaultCallSiteDecorator(currentGroovyCallInterceptorSet.getCallInterceptors(interceptorFilter))); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Nov 24 13:33:59 UTC 2023 - 5K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/AbstractSession.java
return allRepositories.computeIfAbsent(repository, DefaultRemoteRepository::new); } @Override public Node getNode(org.eclipse.aether.graph.DependencyNode node) { return getNode(node, false); } @Override public Node getNode(org.eclipse.aether.graph.DependencyNode node, boolean verbose) { return allNodes.computeIfAbsent(node, n -> new DefaultNode(this, n, verbose));
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Tue Jun 11 07:23:04 UTC 2024 - 27.5K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/execution/ReactorManager.java
public Map getPluginContext(PluginDescriptor plugin, MavenProject project) { Map<String, Map> pluginContextsByKey = pluginContextsByProjectAndPluginKey.computeIfAbsent(project.getId(), k -> new HashMap<>()); return pluginContextsByKey.computeIfAbsent(plugin.getPluginLookupKey(), k -> new HashMap<>()); } public void setFailureBehavior(String failureBehavior) { if (failureBehavior == null) {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Fri Sep 22 06:02:04 UTC 2023 - 5.6K bytes - Viewed (0) -
subprojects/core/src/main/java/org/gradle/internal/classpath/types/ExternalPluginsInstrumentationTypeRegistry.java
} } private Set<String> computeAndCacheInstrumentedSuperTypes(String type, Set<String> visited) { // We intentionally avoid using computeIfAbsent, since ConcurrentHashMap doesn't allow map modifications in the computeIfAbsent map function. // The result is, that multiple threads could recalculate the same key multiple times, but that is not a problem in our case.
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Apr 25 10:00:18 UTC 2024 - 5.4K bytes - Viewed (0) -
platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/ConfigurationCacheAwareLocalComponentCache.kt
import java.util.function.Function class ConfigurationCacheAwareLocalComponentCache( private val cache: BuildTreeConfigurationCache ) : LocalComponentCache { override fun computeIfAbsent(project: ProjectState, factory: Function<ProjectState, LocalComponentGraphResolveState>): LocalComponentGraphResolveState { return cache.loadOrCreateProjectMetadata(project.identityPath) { factory.apply(project)
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Sat Jun 08 11:29:25 UTC 2024 - 1.3K bytes - Viewed (0) -
platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/builder/ResolveState.java
public ComponentMetaDataResolver getComponentMetadataResolver() { return metaDataResolver; } private ModuleResolveState getModule(ModuleIdentifier id, boolean rootModule) { return modules.computeIfAbsent(id, mid -> new ModuleResolveState(idGenerator, id, metaDataResolver, attributesFactory, versionComparator, versionParser, selectorStateResolver, resolveOptimizations, rootModule, conflictResolution)); } @Override
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 14:19:34 UTC 2024 - 16.7K bytes - Viewed (0) -
analysis/analysis-api-standalone/analysis-api-standalone-base/src/org/jetbrains/kotlin/analysis/api/standalone/base/project/structure/PluginStructureProvider.kt
} private fun getOrCalculatePluginDescriptor( designation: PluginDesignation, ): RawPluginDescriptor = pluginDescriptorsCache.computeIfAbsent(designation) { val descriptor = RawPluginDescriptor() PluginXmlPathResolver.DEFAULT_PATH_RESOLVER.resolvePath( readContext = ReadContext,
Registered: Wed Jun 12 09:53:16 UTC 2024 - Last Modified: Tue Jun 04 22:09:27 UTC 2024 - 7.3K bytes - Viewed (0) -
platforms/core-configuration/declarative-dsl-provider/src/main/kotlin/org/gradle/internal/declarativedsl/project/schemaFromGradleExtensions.kt
} private class CachedHierarchyAnnotationChecker(private val annotationType: KClass<out Annotation>) { fun isAnnotatedMaybeInSupertypes(kClass: KClass<*>): Boolean { // Can't use computeIfAbsent because of recursive calls hasRestrictedAnnotationWithSuperTypesCache[kClass]?.let { return it } return hasRestrictedAnnotationWithSuperTypes(kClass).also { hasRestrictedAnnotationCache[kClass] = it } }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu May 30 12:25:07 UTC 2024 - 7.2K bytes - Viewed (0) -
maven-core/src/main/java/org/apache/maven/ReactorReader.java
if (allProjects != null) { Map<String, Map<String, Map<String, MavenProject>>> map = new HashMap<>(); allProjects.forEach(project -> map.computeIfAbsent(project.getGroupId(), k -> new HashMap<>()) .computeIfAbsent(project.getArtifactId(), k -> new HashMap<>()) .put(project.getVersion(), project)); this.allProjects = map; } else {
Registered: Wed Jun 12 09:55:16 UTC 2024 - Last Modified: Thu May 02 16:33:18 UTC 2024 - 21.3K bytes - Viewed (0) -
platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/MethodCache.kt
) { private val methodCache = hashMapOf<Class<*>, Method?>() fun forObject(value: Any) = forClass(value.javaClass) fun forClass(type: Class<*>) = methodCache.computeIfAbsent(type) { it.firstAccessibleMatchingMethodOrNull(predicate) } } internal fun Class<*>.firstAccessibleMatchingMethodOrNull(predicate: Method.() -> Boolean): Method? =
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri Jun 07 23:09:56 UTC 2024 - 1.6K bytes - Viewed (0)