- Sort Score
- Num 10 results
- Language All
Results 21 - 30 of 65 for computeIfAbsent (0.2 seconds)
-
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) } privateCreated: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Nov 05 11:43:49 GMT 2025 - 12.5K bytes - Click Count (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(),
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jan 10 08:42:00 GMT 2025 - 3.4K bytes - Click Count (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<>()); }Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Jul 18 17:30:19 GMT 2025 - 11.4K bytes - Click Count (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)))));
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Dec 13 23:04:37 GMT 2024 - 3.7K bytes - Click Count (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) {Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Wed Mar 12 15:56:18 GMT 2025 - 20.2K bytes - Click Count (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;Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 4.3K bytes - Click Count (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()))
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Wed May 14 04:47:58 GMT 2025 - 4K bytes - Click Count (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) } } /**Created: Wed Dec 31 11:36:14 GMT 2025 - Last Modified: Fri Jun 28 08:29:28 GMT 2024 - 6.3K bytes - Click Count (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);Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Thu Sep 11 17:20:46 GMT 2025 - 4.1K bytes - Click Count (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);
Created: Sun Dec 28 03:35:09 GMT 2025 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 4.1K bytes - Click Count (0)