- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 76 for computeIfAbsent (0.08 sec)
-
impl/maven-core/src/main/java/org/apache/maven/execution/MavenSession.java
ConcurrentMap<String, ConcurrentMap<String, Object>> pluginContextsByKey = pluginContextsByProjectAndPluginKey.computeIfAbsent(projectKey, k -> new ConcurrentHashMap<>()); String pluginKey = plugin.getPluginLookupKey(); return pluginContextsByKey.computeIfAbsent(pluginKey, k -> new ConcurrentHashMap<>()); } public ProjectDependencyGraph getProjectDependencyGraph() {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jan 24 17:29:44 UTC 2025 - 16.7K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java
return vertices.get(id); } public Collection<Vertex> getVertices() { return vertices.values(); } Vertex addVertex(String label) { return vertices.computeIfAbsent(label, Vertex::new); } void addEdge(Vertex from, Vertex to) throws CycleDetectedException { from.children.add(to); to.parents.add(from); List<String> cycle = findCycle(to);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.6K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/builder/multithreaded/SmartProjectComparator.java
Long existingWeight = projectWeights.get(project); if (existingWeight != null) { return existingWeight; } // Calculate weight without using computeIfAbsent to avoid recursive update issues long weight = calculateWeight(project); // Use putIfAbsent to handle concurrent access safely Long previousWeight = projectWeights.putIfAbsent(project, weight);
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Aug 06 12:03:40 UTC 2025 - 4.6K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/Tags.kt
.toList() .reversed() .joinToString(prefix = "{", postfix = "}") { "${it.key}=${it.value}" } } internal fun <T : Any> AtomicReference<Tags>.computeIfAbsent( type: KClass<T>, compute: () -> T, ): T { var computed: T? = null while (true) { val tags = get() // If the element is already present. Return it.
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Oct 24 11:37:46 UTC 2025 - 3.9K bytes - Viewed (0) -
build-logic/build-update-utils/src/main/kotlin/gradlebuild/buildutils/tasks/FixProjectHealthTask.kt
} } private fun MutableMap<String, MutableList<String>>.addToMap(filePath: String, values: List<String>) { this.computeIfAbsent(filePath) { mutableListOf() }.addAll(values) }Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Mon Mar 03 06:57:08 UTC 2025 - 6.2K bytes - Viewed (1) -
impl/maven-core/src/main/java/org/apache/maven/internal/transformation/impl/PomInlinerTransformer.java
return newArtifacts; } @SuppressWarnings("unchecked") private Set<String> needsInlining(RepositorySystemSession session) { return (Set<String>) session.getData() .computeIfAbsent( PomInlinerTransformer.class.getName() + ".needsInlining", ConcurrentHashMap::newKeySet); } @OverrideRegistered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jun 06 20:01:00 UTC 2025 - 5.8K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/concurrent/BuildStep.java
} public void skip() { skip.set(true); mojos.clear(); } public void addMojo(MojoExecution mojo, int priority) { if (!skip.get()) { mojos.computeIfAbsent(priority, k -> new LinkedHashMap<>()) .put(mojo.getGoal() + ":" + mojo.getExecutionId(), mojo); } } public void executeAfter(BuildStep stepToExecuteBefore) {Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Apr 30 16:21:08 UTC 2025 - 4.9K bytes - Viewed (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/codegen/ApiTypeProvider.kt
apiTypesBySourceName.computeIfAbsent(sourceName) { repository.classBytesFor(sourceName)?.let { apiTypeFor(sourceName) { it } } }?.invoke() } internal fun allTypes(): Sequence<ApiType> = open { repository.allClassesBytesBySourceName().map { (sourceName, classBytes) -> apiTypesBySourceName.computeIfAbsent(sourceName) {Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Mar 12 15:56:18 UTC 2025 - 20.2K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/rdma/disni/DisniMemoryRegion.java
// or DiSNI-specific methods if (buffer.isDirect()) { // Assign a unique address to each buffer instance return bufferAddresses.computeIfAbsent(buffer, b -> addressCounter.getAndIncrement()); } else { throw new IllegalArgumentException("Only direct ByteBuffers are supported for RDMA"); } } /**Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 23 05:11:12 UTC 2025 - 5.3K bytes - Viewed (0) -
build-logic/kotlin-dsl-shared-runtime/src/main/kotlin/org/gradle/kotlin/dsl/internal/sharedruntime/support/ClassBytesRepository.kt
{ loader.getResourceAsStream(classFilePath).use { it!!.readBytes() } } } } private fun openJarFile(file: File) = openJars.computeIfAbsent(file, ::JarFile) override fun close() { openJars.values.forEach(JarFile::close) } } /**Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Fri Jun 28 08:29:28 UTC 2024 - 6.3K bytes - Viewed (0)