Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 119 for uncheckedNonnullCast (0.25 sec)

  1. subprojects/core-api/src/main/java/org/gradle/api/artifacts/dsl/DependencyModifier.java

            // Enforce a copy of the dependency to avoid modifying the original dependency
            // The unchecked cast can be incorrect if D is an implementation type, but it shouldn't be used in that way.
            D copy = Cast.uncheckedNonnullCast(dependency.copy());
            modifyImplementation(copy);
            return copy;
        }
    
        /**
         * Modify the given dependency.
         *
         * @param dependency the dependency to modify
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Aug 22 04:12:21 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/process/internal/worker/request/WorkerAction.java

                Class<?> workerImplementation = Class.forName(workerImplementationName);
                implementation = Cast.uncheckedNonnullCast(instantiatorFactory.inject(serviceRegistry).newInstance(workerImplementation));
            } catch (Exception e) {
                failure = e;
            }
    
            if (failure == null) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Mar 27 08:22:48 UTC 2024
    - 7.4K bytes
    - Viewed (0)
  3. platforms/core-runtime/messaging/src/main/java/org/gradle/internal/remote/internal/hub/MessageHub.java

                if (handler instanceof Dispatch) {
                    dispatch = Cast.uncheckedNonnullCast(handler);
                } else {
                    dispatch = DISCARD;
                }
                BoundedDispatch<Object> boundedDispatch;
                if (dispatch instanceof BoundedDispatch) {
                    boundedDispatch = Cast.uncheckedNonnullCast(dispatch);
                } else {
                    boundedDispatch = DISCARD;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 08:59:22 UTC 2023
    - 16.2K bytes
    - Viewed (0)
  4. subprojects/core/src/main/java/org/gradle/execution/plan/TaskNodeFactory.java

                        File taskJar = jarFileFor(type);
                        return plugins.stream()
                            .map(plugin -> Cast.<Class<Plugin<?>>>uncheckedNonnullCast(plugin.getClass()))
                            .filter(pluginType -> Objects.equals(jarFileFor(pluginType), taskJar))
                            .map(pluginType -> pluginManager.findPluginIdForClass(pluginType)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Mar 12 02:21:10 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  5. platforms/software/reporting/src/main/java/org/gradle/api/reporting/GenerateBuildDashboard.java

                        public void execute(Task task) {
                            if (!(task instanceof Reporting)) {
                                return;
                            }
                            reports.add(Cast.uncheckedNonnullCast(task));
                        }
                    });
                }
            });
            return reports;
        }
    
        /**
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Feb 22 11:30:12 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  6. subprojects/core-api/src/main/java/org/gradle/internal/typeconversion/NotationParserBuilder.java

                throw new IllegalArgumentException(String.format("Cannot convert from String when notation is %s.", notationType.getSimpleName()));
            }
            NotationConverter<String, T> notationParser = Cast.uncheckedNonnullCast(new CharSequenceNotationParser());
            fromCharSequence(notationParser);
            return this;
        }
    
        public NotationParserBuilder<N, T> invalidNotationMessage(String invalidNotationMessage) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Jul 27 20:34:59 UTC 2020
    - 6.9K bytes
    - Viewed (0)
  7. 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)
  8. 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)
  9. 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)
  10. 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)
Back to top