Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 112 for uncheckedNonnullCast (0.26 sec)

  1. subprojects/core/src/main/java/org/gradle/api/internal/AbstractPolymorphicDomainObjectContainer.java

                        && hasProperty(name);
            }
        }
    
        @Override
        public <U extends T> NamedDomainObjectContainer<U> containerWithType(Class<U> type) {
            return Cast.uncheckedNonnullCast(getInstantiator().newInstance(TypedDomainObjectContainerWrapper.class, type, this));
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Oct 09 10:01:06 UTC 2023
    - 6.6K bytes
    - Viewed (0)
  2. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/CollectionUtils.java

    import java.util.Optional;
    import java.util.Set;
    
    import static org.gradle.internal.Cast.cast;
    import static org.gradle.internal.Cast.castNullable;
    import static org.gradle.internal.Cast.uncheckedNonnullCast;
    
    @SuppressWarnings("join_with_collect")
    public abstract class CollectionUtils {
    
        /**
         * Returns null if the collection is empty otherwise expects a {@link #single(Iterable)} element to be found.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 24.3K bytes
    - Viewed (0)
  3. platforms/core-runtime/launcher/src/main/java/org/gradle/launcher/cli/converter/LayoutToPropertiesConverter.java

            configureFromBuildDir(layout, properties);
            configureFromHomeDir(layout.getGradleUserHomeDir(), properties);
            configureFromSystemPropertiesOfThisJvm(Cast.uncheckedNonnullCast(properties));
            properties.putAll(initialProperties.getRequestedSystemProperties());
    
            Map<String, String> daemonJvmProperties = new HashMap<>();
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 28 21:41:57 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  4. platforms/software/dependency-management/src/main/java/org/gradle/api/internal/artifacts/transform/DefaultVariantTransformRegistry.java

                T parameterObject = parameterType == null ? null : parametersInstantiationScheme.withServices(services).instantiator().newInstance(parameterType);
                registration = Cast.uncheckedNonnullCast(instantiatorFactory.decorateLenient().newInstance(TypedRegistration.class, parameterObject, immutableAttributesFactory));
                registrationAction.execute(registration);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Dec 11 13:37:56 UTC 2023
    - 8.3K bytes
    - Viewed (0)
  5. platforms/core-runtime/base-services/src/main/java/org/gradle/util/internal/GUtil.java

        public static <T extends Collection<?>> T flattenElements(Object... elements) {
            Collection<T> out = new LinkedList<T>();
            flatten(elements, out, true);
            return Cast.uncheckedNonnullCast(out);
        }
    
        public static <T extends Collection<?>> T flatten(Collection<?> elements, T addTo, boolean flattenMapsAndArrays) {
            return flatten(elements, addTo, flattenMapsAndArrays, flattenMapsAndArrays);
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:40 UTC 2024
    - 19.3K bytes
    - Viewed (0)
  6. subprojects/core/src/main/java/org/gradle/internal/classpath/CallInterceptingMetaClass.java

            return Cast.uncheckedNonnullCast(super.respondsTo(obj, name, argTypes));
        }
    
        /**
         * This is overridden just to make the compiler happy about the unchecked conversions.
         */
        @Override
        public List<MetaMethod> respondsTo(Object obj, String name) {
            return Cast.uncheckedNonnullCast(super.respondsTo(obj, name));
        }
        //endregion
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 11 13:46:35 UTC 2024
    - 21.8K bytes
    - Viewed (0)
  7. platforms/software/testing-base-infrastructure/src/main/java/org/gradle/api/internal/tasks/testing/worker/TestWorker.java

                testServices.get(IdGenerator.class),
                testServices.get(ActorFactory.class),
                testServices.get(Clock.class)
            );
            IdGenerator<Object> idGenerator = Cast.uncheckedNonnullCast(testServices.get(IdGenerator.class));
    
            targetProcessor = new WorkerTestClassProcessor(targetProcessor, idGenerator.generateId(),
                    workerProcessContext.getDisplayName(), testServices.get(Clock.class));
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 15:59:04 UTC 2024
    - 10K bytes
    - Viewed (0)
  8. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/AbstractMinimalProvider.java

            return calculateOwnValue(ValueConsumer.IgnoreUnsafeRead).orNull();
        }
    
        @Override
        public T getOrElse(T defaultValue) {
            return calculateOwnValue(ValueConsumer.IgnoreUnsafeRead).orElse(Cast.uncheckedNonnullCast(defaultValue));
        }
    
        @Override
        public Value<? extends T> calculateValue(ValueConsumer consumer) {
            return calculateOwnValue(consumer).pushWhenMissing(getDeclaredDisplayName());
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 17 23:22:41 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  9. subprojects/core-api/src/main/java/org/gradle/util/CollectionUtils.java

    import java.util.NoSuchElementException;
    import java.util.Set;
    
    import static org.gradle.internal.Cast.cast;
    import static org.gradle.internal.Cast.castNullable;
    import static org.gradle.internal.Cast.uncheckedNonnullCast;
    
    /**
     * This class is only here to maintain binary compatibility with existing plugins.
     * <p>
     * Plugins should prefer external collection frameworks over this class.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:17:19 UTC 2024
    - 26K bytes
    - Viewed (0)
  10. subprojects/build-events/src/main/java/org/gradle/internal/build/event/DefaultBuildEventsListenerRegistry.java

                    }
                    if (next == END) {
                        return;
                    }
                    try {
                        handle(Cast.uncheckedNonnullCast(next));
                    } catch (Exception e) {
                        failure.set(e);
                        break;
                    }
                }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jun 05 19:34:01 UTC 2024
    - 12.5K bytes
    - Viewed (0)
Back to top