Search Options

Results per page
Sort
Preferred Languages
Advance

Results 121 - 130 of 178 for computeIfAbsent (0.21 sec)

  1. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/model/DefaultExternalComponentGraphResolveState.java

                return resolveStateFor(configuration);
            }
        }
    
        private DefaultConfigurationGraphResolveState resolveStateFor(ModuleConfigurationMetadata configuration) {
            return variants.computeIfAbsent(configuration, c -> newVariantState(configuration));
        }
    
        protected VariantGraphResolveState newResolveStateFor(ModuleConfigurationMetadata configuration) {
            return newVariantState(configuration);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 19:04:04 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  2. maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/relocation/UserPropertiesArtifactRelocationSource.java

                throws ArtifactDescriptorException {
            Relocations relocations = (Relocations) session.getData()
                    .computeIfAbsent(getClass().getName() + ".relocations", () -> parseRelocations(session));
            if (relocations != null) {
                Artifact original = artifactDescriptorResult.getRequest().getArtifact();
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Dec 18 12:26:49 UTC 2023
    - 9K bytes
    - Viewed (0)
  3. maven-jline/src/main/java/org/apache/maven/jline/JLineMessageBuilderFactory.java

            MavenStyleResolver() {
                super(s -> System.getProperty("style." + s));
            }
    
            @Override
            public AttributedStyle resolve(String spec) {
                return styles.computeIfAbsent(spec, this::doResolve);
            }
    
            @Override
            public AttributedStyle resolve(String spec, String defaultSpec) {
                return resolve(defaultSpec != null ? spec + ":-" + defaultSpec : spec);
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Feb 28 23:31:59 UTC 2024
    - 9K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/api/internal/initialization/transform/services/CacheInstrumentationDataBuildService.java

                return hashToOriginalFile.get().get(hash);
            }
    
            @Nullable
            private String getArtifactHash(File file) {
                return hashCache.computeIfAbsent(file, __ -> {
                    Hasher hasher = Hashing.newHasher();
                    FileSystemLocationSnapshot snapshot = internalServices.getFileSystemAccess().read(file.getAbsolutePath());
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 15:08:33 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  5. analysis/analysis-api-fir/src/org/jetbrains/kotlin/analysis/api/fir/components/KtFirDataFlowInfoProvider.kt

                        // The leaf is in mapping, but its value is still 'null'
                        mapping.computeIfAbsent(element) { _ ->
                            unmappedCount -= 1
                            // Here we intentionally use the 'Optional' wrapper to make 'computeIfAbsent' work smoothly
                            Optional.ofNullable(computeTarget(element))
                        }
                    }
    
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Wed Jun 05 14:04:46 UTC 2024
    - 22.9K bytes
    - Viewed (0)
  6. platforms/core-runtime/internal-instrumentation-processor/src/main/java/org/gradle/internal/instrumentation/processor/AbstractInstrumentationProcessor.java

                    for (CallInterceptionRequestReader.Result readerResult : readerResults) {
                        if (readerResult instanceof CallInterceptionRequestReader.Result.InvalidRequest) {
                            errors.computeIfAbsent(methodElement, key -> new ArrayList<>()).add((CallInterceptionRequestReader.Result.InvalidRequest) readerResult);
                        } else {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:40 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  7. maven-core/src/main/java/org/apache/maven/project/ProjectSorter.java

                }
    
                String projectKey = ArtifactUtils.versionlessKey(project.getGroupId(), project.getArtifactId());
    
                Map<String, Vertex> vertices = vertexMap.computeIfAbsent(projectKey, k -> new HashMap<>(2, 1));
    
                vertices.put(project.getVersion(), graph.addVertex(projectId));
            }
    
            for (Vertex projectVertex : graph.getVertices()) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Fri Sep 22 06:02:04 UTC 2023
    - 10.3K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/mappingToJvm/DeclarativeReflectionToObjectConverter.kt

        private
        val reflectionIdentityObjects = mutableMapOf<ObjectAccessKey, Any?>()
    
        private
        fun objectByIdentity(key: ObjectAccessKey, newObject: () -> Any?): Any? {
            // This code does not use `computeIfAbsent` because `newObject` can make reentrant calls, leading to CME.
            // Also, it does not check for the value being null, because null values are potentially allowed
            if (key !in reflectionIdentityObjects) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 14:27:23 UTC 2024
    - 10.6K bytes
    - Viewed (0)
  9. platforms/jvm/java-compiler-plugin/src/test/groovy/com/gradle/internal/compiler/java/listeners/ConstantsCollectorTest.groovy

                (String constantOrigin, String dependent) -> accessibleDependentToConstants.computeIfAbsent(dependent, { new LinkedHashSet<>() }).add(constantOrigin),
                (String constantOrigin, String dependent) -> privateDependentToConstants.computeIfAbsent(dependent, { new LinkedHashSet<>() }).add(constantOrigin)
            )
            compiler = new TestCompiler(
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Sep 18 13:06:26 UTC 2023
    - 22.4K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/DependencyManagementBuildScopeServices.java

            return new ResolvedVariantCache() {
                @Override
                public ResolvedVariant computeIfAbsent(VariantResolveMetadata.Identifier key, Function<? super VariantResolveMetadata.Identifier, ? extends ResolvedVariant> mappingFunction) {
                    return map.computeIfAbsent(key, mappingFunction);
                }
            };
        }
    
        @Provides
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 27 12:34:44 UTC 2024
    - 28.4K bytes
    - Viewed (0)
Back to top