Search Options

Results per page
Sort
Preferred Languages
Advance

Results 141 - 150 of 185 for computeIfAbsent (0.89 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. platforms/jvm/testing-junit-platform/src/main/java/org/gradle/api/internal/tasks/testing/junitplatform/JUnitPlatformTestExecutionListener.java

        }
    
        private boolean createDescriptorIfAbsent(TestIdentifier node) {
            MutableBoolean wasCreated = new MutableBoolean(false);
            descriptorsByUniqueId.computeIfAbsent(node.getUniqueId(), uniqueId -> {
                wasCreated.set(true);
                boolean isTestClassId = isTestClassIdentifier(node);
                if (node.getType().isContainer() || isTestClassId) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 06 06:58:25 UTC 2024
    - 15K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/fess/crawler/FessCrawlerThread.java

            if (StringUtil.isBlank(value)) {
                return Collections.emptyList();
            }
            return split(value, ",").get(stream -> stream.map(String::trim)//
                    .map(s -> clientRuleCache.computeIfAbsent(s, t -> {
                        final String[] values = t.split(":", 2);
                        if (values.length != 2) {
                            return null;
                        }
    Registered: Wed Jun 12 13:08:18 UTC 2024
    - Last Modified: Thu Feb 22 01:37:57 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  10. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/ivyservice/moduleconverter/dependencies/DefaultLocalConfigurationMetadataBuilder.java

         */
        private DependencyState getDefinedState(ConfigurationInternal configuration, DependencyCache cache) {
            return cache.computeIfAbsent(configuration, this::doGetDefinedState);
        }
    
        /**
         * Calculate the defined dependencies and excludes for {@code configuration}, while converting the
         * DSL representation to the internal representation.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 16:00:57 UTC 2024
    - 18K bytes
    - Viewed (0)
Back to top