- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 65 for computeIfAbsent (0.15 seconds)
-
impl/maven-core/src/main/java/org/apache/maven/project/artifact/DefaultProjectArtifactsCache.java
} return cache.computeIfAbsent(key, k -> new CacheRecord(artifacts)); } @Override public CacheRecord put(Key key, LifecycleExecutionException exception) { Objects.requireNonNull(exception, "exception cannot be null"); assertUniqueKey(key); return cache.computeIfAbsent(key, k -> new CacheRecord(exception)); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Sep 29 14:45:25 GMT 2025 - 8.3K bytes - Click Count (0) -
compat/maven-model/src/test/java/org/apache/maven/model/pom/PomMemoryAnalyzer.java
} return plural; } private void recordString(String path, String value) { pathStats .computeIfAbsent(path, k -> new HashMap<>()) .computeIfAbsent(value, k -> new StringStats()) .recordOccurrence(value); } List<PathAnalysis> getPathAnalysisSorted() {Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Mar 21 04:56:21 GMT 2025 - 13.4K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/FailingCall.kt
override fun <T> tag(type: Class<out T>): T? = error("unexpected") override fun <T : Any> tag( type: KClass<T>, computeIfAbsent: () -> T, ): T = error("unexpected") override fun <T : Any> tag( type: Class<T>, computeIfAbsent: () -> T, ): T = error("unexpected") override fun clone(): Call = error("unexpected")
Created: Fri Dec 26 11:42:13 GMT 2025 - Last Modified: Wed Nov 05 18:28:35 GMT 2025 - 1.6K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/configuration/internal/EnhancedCompositeBeanHelper.java
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Nov 12 14:59:46 GMT 2025 - 12.3K bytes - Click Count (0) -
impl/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 {
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Dec 15 11:20:38 GMT 2025 - 24.4K 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 Dec 28 03:35:09 GMT 2025 - Last Modified: Tue Feb 25 08:27:34 GMT 2025 - 3.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/Interpolator.java
* * @see Function * @see Optional * @see HashMap#computeIfAbsent(Object, Function) */ static UnaryOperator<String> memoize(UnaryOperator<String> callback) { Map<String, Optional<String>> cache = new HashMap<>(); return s -> cache.computeIfAbsent(s, v -> Optional.ofNullable(callback.apply(v))) .orElse(null); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Mon Jan 13 16:14:35 GMT 2025 - 6.9K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/MojoExecutor.java
SessionData data = session.getSession().getData(); Map<MavenProject, OwnerReentrantLock> locks = data.computeIfAbsent(PROJECT_LOCKS, ConcurrentHashMap::new); return locks.computeIfAbsent(session.getCurrentProject(), p -> new OwnerReentrantLock()); } } static class OwnerReentrantLock extends ReentrantLock { @Override
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Jun 12 14:55:55 GMT 2025 - 21K 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 Dec 31 11:36:14 GMT 2025 - Last Modified: Sat Sep 30 16:17:28 GMT 2023 - 2.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 Dec 28 03:35:09 GMT 2025 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 13K bytes - Click Count (0)