Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 183 for computeIfAbsent (0.23 sec)

  1. 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)
        }
    }
    
    
    /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Apr 01 17:45:10 UTC 2024
    - 6.2K bytes
    - Viewed (0)
  2. build-logic/packaging/src/main/kotlin/gradlebuild/instrumentation/tasks/InstrumentedSuperTypesMergeTask.kt

                    properties.forEach { key, value ->
                        val className = key.toString()
                        val superTypeNames = value.toString().split(",")
                        directSuperTypes.computeIfAbsent(className) { linkedSetOf() }.addAll(superTypeNames)
                    }
                }
    
            // Note: superTypesFiles contains only direct super types, but no transitive ones,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 19 14:00:26 UTC 2024
    - 5.5K bytes
    - Viewed (0)
  3. src/mdo/java/ImmutableCollections.java

                throw uoe();
            }
    
            @Override
            public Object replace(Object key, Object value) {
                throw uoe();
            }
    
            @Override
            public Object computeIfAbsent(Object key, Function<? super Object, ?> mappingFunction) {
                throw uoe();
            }
    
            @Override
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 22 17:27:48 UTC 2024
    - 16.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/resolution/failure/describer/MissingAttributeAmbiguousGraphVariantsFailureDescriber.java

                    Attribute<?> attribute = candidateAttribute.getAttribute();
                    Set<String> unrequestedValuesForAttribute = unrequestedAttributesWithValues.computeIfAbsent(attribute.getName(), name -> new HashSet<>());
                    unrequestedValuesForAttribute.add(Objects.requireNonNull(candidateAttribute.getProvided()).toString());
                });
            });
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 16:12:53 UTC 2024
    - 6K bytes
    - Viewed (0)
  5. platforms/core-configuration/configuration-cache/src/main/kotlin/org/gradle/internal/cc/impl/isolation/IsolatedActionSerializer.kt

    private
    class EnvironmentEncoder : ClassEncoder {
    
        private
        val refs = IdentityHashMap<Class<*>, Int>()
    
        override fun WriteContext.encodeClass(type: Class<*>) {
            writeSmallInt(refs.computeIfAbsent(type) { refs.size })
        }
    
        fun getResultingEnvironment(): Map<Int, Any> =
            refs.invert()
    }
    
    
    private
    class EnvironmentDecoder(
        val environment: Map<Int, Any>
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:30 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  6. platforms/core-configuration/kotlin-dsl/src/main/kotlin/org/gradle/kotlin/dsl/provider/KotlinScriptClassPathProvider.kt

            cachedClassLoaderClassPath.of(coreAndPluginsScope.exportClassLoader)
        }
    
        fun compilationClassPathOf(scope: ClassLoaderScope): ClassPath =
            cachedScopeCompilationClassPath.computeIfAbsent(scope, ::computeCompilationClassPath)
    
        private
        fun computeCompilationClassPath(scope: ClassLoaderScope): ClassPath {
            return gradleKotlinDsl + exportClassPathFromHierarchyOf(scope)
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 12 19:16:36 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  7. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/projectmodule/ProjectArtifactResolver.java

            // the same artifact id.
            //
            // This should be replaced by a computeIfAbsent(...) to be thread-safe and ensure there's only ever one DefaultResolvableArtifact created for a single id.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 6.3K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/api/internal/attributes/DefaultImmutableAttributesFactory.java

        }
    
        ImmutableAttributes doConcatIsolatable(ImmutableAttributes node, Attribute<?> key, @Nullable Isolatable<?> value) {
            synchronized (this) {
                List<DefaultImmutableAttributes> nodeChildren = children.computeIfAbsent(node, k -> new ArrayList<>());
                for (DefaultImmutableAttributes child : nodeChildren) {
                    if (child.attribute.equals(key) && child.value.equals(value)) {
                        return child;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  9. subprojects/core/src/main/java/org/gradle/cache/internal/DefaultFileContentCacheFactory.java

                // A very dumb strategy for invalidating cache
                locationCache.clear();
            }
    
            @Override
            public V get(File file) {
                return locationCache.computeIfAbsent(file,
                    location -> fileSystemAccess.readRegularFileContentHash(location.getAbsolutePath())
                        .map(contentHash -> contentCache.get(contentHash, key -> calculator.calculate(location, true))
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 15:51:31 UTC 2024
    - 5.6K bytes
    - Viewed (0)
  10. maven-xml-impl/src/main/java/org/apache/maven/internal/xml/ImmutableCollections.java

                throw uoe();
            }
    
            @Override
            public Object replace(Object key, Object value) {
                throw uoe();
            }
    
            @Override
            public Object computeIfAbsent(Object key, Function<? super Object, ?> mappingFunction) {
                throw uoe();
            }
    
            @Override
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Mon Jan 22 17:27:48 UTC 2024
    - 16.4K bytes
    - Viewed (0)
Back to top