Search Options

Results per page
Sort
Preferred Languages
Advance

Results 131 - 140 of 178 for computeIfAbsent (0.48 sec)

  1. platforms/core-configuration/input-tracking/src/main/java/org/gradle/internal/configuration/inputs/AccessTrackingProperties.java

        }
    
        @Override
        @Nullable
        public Object computeIfAbsent(Object key, Function<? super Object, ?> mappingFunction) {
            Object oldValue;
            Object computedValue = null;
            synchronized (delegate) {
                oldValue = delegate.get(key);
                if (oldValue == null) {
                    computedValue = delegate.computeIfAbsent(key, mappingFunction);
                }
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Apr 23 07:32:51 UTC 2024
    - 20.7K bytes
    - Viewed (0)
  2. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/resolveengine/graph/conflicts/DefaultCapabilitiesConflictHandler.java

        }
    
        private Set<NodeState> findNodesFor(CapabilityInternal capability) {
            String capabilityId = capability.getCapabilityId();
    
            return capabilityWithoutVersionToNodes.computeIfAbsent(capabilityId, k -> new LinkedHashSet<>());
        }
    
        @Override
        public boolean hasConflicts() {
            return !conflicts.isEmpty();
        }
    
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 14:19:34 UTC 2024
    - 12.1K bytes
    - Viewed (0)
  3. subprojects/diagnostics/src/main/java/org/gradle/api/tasks/diagnostics/internal/configurations/model/ConfigurationReportModelFactory.java

                return ruleChain.doesSomething();
            }
        }
    
        /**
         * Recursively calling {@link Map#computeIfAbsent(Object, Function)} to insert multiple keys could pose issues, depending on the implementation of the underlying map.
         *
         * This method exists to externalize that usage and avoid the potential for these sort of issues.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jan 05 20:34:52 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/core-serialization-codecs/src/main/kotlin/org/gradle/internal/serialize/codecs/core/jos/JavaObjectSerializationCodec.kt

         * be called multiple times for the same type.
         */
        private
        fun readObjectMethodHierarchyForDecoding(type: Class<*>): List<Method> =
            readObjectHierarchy.computeIfAbsent(type) {
                readObjectMethodHierarchyFrom(it.allMethods())
            }
    }
    
    
    internal
    fun Method.isReadResolve() =
        !isStatic(modifiers)
            && parameterCount == 0
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Jun 07 23:09:56 UTC 2024
    - 11.4K bytes
    - Viewed (0)
  5. platforms/software/dependency-management/src/main/java/org/gradle/internal/component/external/model/VariantMetadataRules.java

        }
    
        public AttributeContainerInternal getAttributes(@Nullable String variantName) {
            if (variantName == null) {
                return baseAttributes;
            } else {
                return variantAttributes.computeIfAbsent(variantName, name -> attributesFactory.mutable(baseAttributes));
            }
        }
    
        protected AttributeContainerInternal joinVariantAttributes(VariantResolveMetadata variant, AttributeContainerInternal parent) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 12.4K bytes
    - Viewed (0)
  6. platforms/software/dependency-management/src/main/java/org/gradle/internal/locking/LockFileReaderWriter.java

                } catch (IOException e) {
                    throw new RuntimeException("Unable to load unique lockfile", e);
                }
                for (String emptyLockId : emptyLockIds) {
                    uniqueLockState.computeIfAbsent(emptyLockId, k -> new ArrayList<>());
                }
                return uniqueLockState;
            } else {
                return new HashMap<>();
            }
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 05 02:50:41 UTC 2024
    - 10.7K bytes
    - Viewed (0)
  7. platforms/core-configuration/declarative-dsl-core/src/main/kotlin/org/gradle/internal/declarativedsl/parsing/GrammarToTree.kt

            fun sourceData(node: LighterASTNode, offset: Int = sourceOffset): LightTreeSourceData =
                sourceData.computeIfAbsent(node) {
                    it.sourceData(sourceIdentifier, sourceCode, offset)
                }
    
            fun rootSourceData(): LightTreeSourceData =
                sourceData.computeIfAbsent(root) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 31.2K bytes
    - Viewed (0)
  8. platforms/core-runtime/base-services/src/main/java/org/gradle/internal/classloader/TransformReplacer.java

                throw new UncheckedIOException(e);
            }
        }
    
        private Loader getLoader(ProtectionDomain domain) {
            // This is a very verbose Java 6-compatible way of doing
            // return loaders.computeIfAbsent(domain, this::createLoaderForDomain).
            Loader transformLoader = loaders.get(domain);
            if (transformLoader == null) {
                transformLoader = storeIfAbsent(domain, createLoaderForDomain(domain));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Jun 11 09:51:15 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  9. platforms/jvm/plugins-jvm-test-suite/src/main/java/org/gradle/api/plugins/jvm/internal/DefaultJvmTestSuite.java

                this.instantiatorFactory = instantiatorFactory;
            }
    
            public <T extends JvmTestToolchain<?>> T getOrCreate(Class<T> type) {
                return uncheckedCast(cache.computeIfAbsent(type, t -> create(uncheckedCast(type))));
            }
    
            private <T extends JvmTestToolchainParameters> JvmTestToolchain<T> create(Class<? extends JvmTestToolchain<T>> type) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Feb 09 22:19:12 UTC 2024
    - 14K bytes
    - Viewed (0)
  10. platforms/core-execution/file-watching/src/main/java/org/gradle/internal/watch/registry/impl/WatchableHierarchies.java

            if (parent == null) {
                return false;
            }
            if (isAncestorASymlink(symlinkCache, parent)) {
                return true;
            }
            return symlinkCache.computeIfAbsent(parent.getAbsolutePath(), __ -> Files.isSymbolicLink(parent.toPath()));
        }
    
        @CheckReturnValue
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jan 25 17:02:39 UTC 2024
    - 15.8K bytes
    - Viewed (0)
Back to top