Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 42 for uncheckedNonnullCast (0.26 sec)

  1. platforms/core-runtime/logging/src/main/java/org/gradle/util/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: Tue May 28 13:09:37 UTC 2024
    - 21.3K bytes
    - Viewed (0)
  2. subprojects/core/src/main/java/org/gradle/api/internal/attributes/DefaultImmutableAttributes.java

         */
        @Override
        public <T> AttributeValue<T> findEntry(Attribute<T> key) {
            DefaultImmutableAttributes attributes = hierarchy.get(key);
            return Cast.uncheckedNonnullCast(attributes == null ? MISSING : attributes);
        }
    
        /**
         * Locates the entry for the attribute with the given name. Returns a 'missing' value when not present.
         */
        @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Jan 10 12:57:50 UTC 2024
    - 9.9K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/api/internal/provider/DefaultValueSourceProviderFactory.java

        }
    
        private <P extends ValueSourceParameters> void configureParameters(@Nullable P parameters, Action<? super ValueSourceSpec<P>> configureAction) {
            DefaultValueSourceSpec<P> valueSourceSpec = Cast.uncheckedNonnullCast(specInstantiator.newInstance(
                DefaultValueSourceSpec.class,
                parameters
            ));
            configureAction.execute(valueSourceSpec);
        }
    
        @Nullable
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 18 08:26:25 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. platforms/ide/ide-native/src/main/java/org/gradle/ide/xcode/tasks/GenerateXcodeProjectFileTask.java

        }
    
        @Override
        protected XcodeProjectFile create() {
            return new XcodeProjectFile(Cast.uncheckedNonnullCast(getPropertyListTransformer()));
        }
    
        private PBXFileReference toFileReference(File file) {
            return new PBXFileReference(file.getName(), file.getAbsolutePath(), PBXReference.SourceTree.ABSOLUTE);
        }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue Sep 26 14:49:12 UTC 2023
    - 15.5K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/typeregistration/BaseInstanceFactory.java

            }
    
            @Override
            public Object create(MutableModelNode modelNode) {
                ImplementationFactory<PUBLIC, Object> implementationFactory = Cast.uncheckedNonnullCast(implementationRegistration.getFactory());
                return implementationFactory.create(publicType, implementationRegistration.getImplementationType(), modelNode.getPath().getName(), modelNode);
            }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 18.5K bytes
    - Viewed (0)
  6. platforms/core-configuration/model-core/src/main/java/org/gradle/internal/metaobject/BeanDynamicObject.java

                }
                return DynamicInvokeResult.notFound();
            }
        }
    
        private class MapAdapter extends MetaClassAdapter {
            Map<String, Object> map = Cast.uncheckedNonnullCast(bean);
    
            @Override
            public boolean hasProperty(String name) {
                return map.containsKey(name) || super.hasProperty(name);
            }
    
            @Override
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri May 24 13:45:02 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  7. platforms/software/signing/src/main/java/org/gradle/plugins/signing/SigningExtension.java

            });
            final Map<Signature, T> artifacts = new HashMap<>();
            signTask.getSignatures().all(signature -> {
                final T artifact = publicationToSign.addDerivedArtifact(
                    Cast.uncheckedNonnullCast(signature.getSource()),
                    new DefaultDerivedArtifactFile(signature, signTask)
                );
                artifact.builtBy(signTask);
                artifacts.put(signature, artifact);
            });
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed Oct 11 12:16:09 UTC 2023
    - 22.3K bytes
    - Viewed (0)
  8. subprojects/core/src/main/java/org/gradle/invocation/DefaultGradle.java

        }
    
        private Closure<?> decorate(String registrationPoint, Closure closure) {
            return getListenerBuildOperationDecorator().decorate(registrationPoint, Cast.<Closure<?>>uncheckedNonnullCast(closure));
        }
    
        private <T> Action<T> decorate(String registrationPoint, Action<T> action) {
            return getListenerBuildOperationDecorator().decorate(registrationPoint, action);
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 22 05:18:22 UTC 2024
    - 23.6K bytes
    - Viewed (0)
  9. platforms/core-runtime/native/src/main/java/org/gradle/internal/nativeintegration/services/NativeServices.java

                }
            }
            return notAvailable(FileSystems.class, operatingSystem);
        }
    
        private <T> T notAvailable(Class<T> type, OperatingSystem operatingSystem) {
            return Cast.uncheckedNonnullCast(Proxy.newProxyInstance(type.getClassLoader(), new Class<?>[]{type}, new BrokenService(type.getSimpleName(), useNativeIntegrations, operatingSystem)));
        }
    
        private static String format(Throwable throwable) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Wed May 29 06:47:39 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  10. platforms/software/testing-base/src/main/java/org/gradle/api/tasks/testing/AbstractTestTask.java

            testListenerInternalBroadcaster.add(testWorkerProgressListener);
    
            TestExecuter<TestExecutionSpec> testExecuter = Cast.uncheckedNonnullCast(createTestExecuter());
            TestListenerInternal resultProcessorDelegate = testListenerInternalBroadcaster.getSource();
            if (failFast) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Mar 25 18:49:01 UTC 2024
    - 27.6K bytes
    - Viewed (0)
Back to top