- Sort Score
- Result 10 results
- Languages All
Results 21 - 30 of 76 for computeIfAbsent (0.66 sec)
-
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); }
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed Jul 23 17:27:08 UTC 2025 - 13K bytes - Viewed (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 ->Registered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Sat Sep 30 16:17:28 UTC 2023 - 2.6K bytes - Viewed (0) -
build-logic-commons/gradle-plugin/src/main/kotlin/gradlebuild/testcleanup/TestFilesCleanupService.kt
} private fun addExecutedTaskPath(taskPath: String) { projectPathToExecutedTaskPaths.computeIfAbsent(taskPathToProjectPath(taskPath)) { mutableListOf() }.add(taskPath) } private fun addFailedTaskPath(taskPath: String) { projectPathToFailedTaskPaths.computeIfAbsent(taskPathToProjectPath(taskPath)) { mutableListOf() }.add(taskPath) } privateRegistered: Wed Dec 31 11:36:14 UTC 2025 - Last Modified: Wed Nov 05 11:43:49 UTC 2025 - 12.5K bytes - Viewed (1) -
impl/maven-core/src/main/java/org/apache/maven/artifact/handler/manager/DefaultArtifactHandlerManager.java
allHandlers.clear(); } } } @Override public ArtifactHandler getArtifactHandler(String id) { return allHandlers.computeIfAbsent(id, k -> { Type type = typeRegistry.require(id); return new DefaultArtifactHandler( id, type.getExtension(), type.getClassifier(),
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jan 10 08:42:00 UTC 2025 - 3.4K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProblemCollector.java
} private LongAdder getCounter(BuilderProblem.Severity severity) { return counters.computeIfAbsent(severity, k -> new LongAdder()); } private List<P> getProblems(BuilderProblem.Severity severity) { return problems.computeIfAbsent(severity, k -> new CopyOnWriteArrayList<>()); }Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Jul 18 17:30:19 UTC 2025 - 11.4K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/Lifecycle.java
lifecycle.allPhases().forEach(phase -> phase.plugins() .forEach(plugin -> plugin.getExecutions().forEach(exec -> exec.getGoals() .forEach(goal -> goals.computeIfAbsent(phase.name(), n -> new ArrayList<>()) .add(plugin.getGroupId() + ":" + plugin.getArtifactId() + ":" + plugin.getVersion() + ":" + goal)))));
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Dec 13 23:04:37 UTC 2024 - 3.7K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/lifecycle/internal/PhaseId.java
* Parses the phase identifier. * * @param phase the phase identifier. * @return the {@link PhaseId}. */ public static synchronized PhaseId of(String phase) { return INSTANCES.computeIfAbsent(phase, PhaseId::new); } /** * Constructor. * * @param phase the phase identifier string. */ private PhaseId(String phase) { int phaseStart;Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Fri Oct 25 12:31:46 UTC 2024 - 4.3K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultTypeRegistry.java
return Optional.of(require(id)); } @Override @Nonnull public Type require(String id) { requireNonNull(id, "id cannot be null"); return usedTypes.computeIfAbsent(id, i -> { Type type = lookup.lookupList(TypeProvider.class).stream() .flatMap(p -> p.provides().stream()) .filter(t -> Objects.equals(id, t.id()))
Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Wed May 14 04:47:58 UTC 2025 - 4K bytes - Viewed (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvn/resident/ResidentMavenInvoker.java
// and allow multiple instances per JVM, this may become a pool? derive key based in invokerRequest? MavenContext result = residentContext.computeIfAbsent( "resident", k -> new MavenContext(invokerRequest, false, (MavenOptions) invokerRequest.options().orElse(null))); return copyIfDifferent(result, invokerRequest);Registered: Sun Dec 28 03:35:09 UTC 2025 - Last Modified: Thu Sep 11 17:20:46 UTC 2025 - 4.1K bytes - Viewed (0) -
impl/maven-core/src/main/java/org/apache/maven/project/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.1K bytes - Viewed (0)