- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 75 for computeIfAbsent (0.4 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/KotlinSourceModernTest.kt
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Mar 10 21:47:20 GMT 2026 - 49.7K bytes - Click Count (0) -
guava/src/com/google/common/collect/Synchronized.java
synchronized (mutex) { return delegate().replace(key, value); } } @Override public V computeIfAbsent(K key, Function<? super K, ? extends V> mappingFunction) { synchronized (mutex) { return delegate().computeIfAbsent(key, mappingFunction); } } @SuppressWarnings("nullness") // TODO: b/423853632 - Remove after checker is fixed. @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Aug 08 15:11:10 GMT 2025 - 56.9K bytes - Click Count (0) -
impl/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) {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Dec 12 11:02:17 GMT 2024 - 6K bytes - Click Count (0) -
src/main/java/jcifs/util/AuthenticationRateLimiter.java
return false; } // Check per-account limit if (username != null) { AccountAttempts account = accountAttempts.computeIfAbsent(username, k -> new AccountAttempts()); if (account.isLockedOut()) { if (account.getLockoutExpiry().isAfter(Instant.now())) { totalAttemptsBlocked.incrementAndGet();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 15.1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelper.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Nov 12 14:59:46 GMT 2025 - 12.3K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/ErrorReportingTestListener.java
if (outputEvent.getMessage().startsWith(REPRODUCE_WITH_PREFIX)) { Deque<String> lines = reproductionLines.computeIfAbsent(Descriptor.of(suite), d -> new LinkedList<>()); lines.add(outputEvent.getMessage()); } EventWriter eventWriter = eventWriters.computeIfAbsent(Descriptor.of(suite), EventWriter::new); eventWriter.write(outputEvent); } @Override
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 10.7K bytes - Click Count (0) -
compat/maven-model-builder/src/main/java/org/apache/maven/model/building/Graph.java
@Deprecated(since = "4.0.0") class Graph { final Map<String, Set<String>> graph = new LinkedHashMap<>(); synchronized void addEdge(String from, String to) throws CycleDetectedException { if (graph.computeIfAbsent(from, l -> new HashSet<>()).add(to)) { List<String> cycle = visitCycle(graph, Collections.singleton(to), new HashMap<>(), new LinkedList<>()); if (cycle != null) {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 3.4K bytes - Click Count (0) -
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ValidateJsonNoKeywordsTask.java
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 7.6K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/MetadataGraph.java
vFrom.setCompareScope(scopedVertices); List<MetadataGraphEdge> exList = excidentEdges.computeIfAbsent(vFrom, k -> new ArrayList<>()); if (!exList.contains(e)) { exList.add(e); } List<MetadataGraphEdge> inList = incidentEdges.computeIfAbsent(vTo, k -> new ArrayList<>()); if (!inList.contains(e)) { inList.add(e); }
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 13K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/classanalysis/ClassGraph.kt
val shadowPackagePrefix = shadowPackage.takeIf(String::isNotEmpty) ?.let { it.replace('.', '/') + "/" } ?: "" operator fun get(className: String) = classes.computeIfAbsent(className) { val outputClassName = if (unshadedPackages.matches(className)) className else shadowPackagePrefix + className ClassDetails(outputClassName).also { classDetails ->Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 2.6K bytes - Click Count (0)