Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 249 for nonNull (0.1 sec)

  1. android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java

    import org.checkerframework.checker.nullness.qual.NonNull;
    
    /**
     * A {@link ClassToInstanceMap} whose contents will never change, with many other important
     * properties detailed at {@link ImmutableCollection}.
     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @Immutable(containerOf = "B")
    @GwtIncompatible
    @ElementTypesAreNonnullByDefault
    // TODO(b/278589132): Remove the redundant "@NonNull" on B once it's no longer required by J2KT.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed May 10 21:56:03 UTC 2023
    - 7.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/ObjectArrays.java

    import com.google.errorprone.annotations.CanIgnoreReturnValue;
    import java.lang.reflect.Array;
    import java.util.Arrays;
    import java.util.Collection;
    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Static utility methods pertaining to object arrays.
     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @GwtCompatible(emulated = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultMojoExecution.java

                    return Collections.unmodifiableMap(node.stream()
                            .filter(Objects::nonNull)
                            .map(Node::getDependency)
                            .filter(Objects::nonNull)
                            .collect(Collectors.toMap(d -> d.getGroupId() + ":" + d.getArtifactId(), d -> d)));
                }
            };
        }
    
        @Override
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 5.2K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/legacy/resolver/transform/DefaultArtifactTransformationManager.java

            this.artifactTransformations = Stream.of("release", "latest", "snapshot")
                    .map(artifactTransformations::get)
                    .filter(Objects::nonNull)
                    .collect(Collectors.toList());
        }
    
        public void transformForResolve(Artifact artifact, RepositoryRequest request)
                throws ArtifactResolutionException, ArtifactNotFoundException {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.5K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/ObjectArrays.java

    import java.lang.reflect.Array;
    import java.util.Arrays;
    import java.util.Collection;
    import javax.annotation.CheckForNull;
    import org.checkerframework.checker.nullness.qual.NonNull;
    import org.checkerframework.checker.nullness.qual.Nullable;
    
    /**
     * Static utility methods pertaining to object arrays.
     *
     * @author Kevin Bourrillion
     * @since 2.0
     */
    @GwtCompatible(emulated = true)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 9K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testSpliteratorNullable() {
        initCollectionWithNullElement();
        assertFalse(collection.spliterator().hasCharacteristics(Spliterator.NONNULL));
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSpliteratorNotImmutable_collectionAllowsAdd() {
        // If add is supported, verify that IMMUTABLE is not reported.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Oct 31 14:51:04 UTC 2024
    - 3.9K bytes
    - Viewed (0)
  7. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelProcessor.java

                    .map(m -> m.locate(projectDirectory)
                            .map(org.apache.maven.api.services.Source::getPath)
                            .orElse(null))
                    .filter(Objects::nonNull)
                    .findFirst()
                    .orElseGet(() -> modelLocator.locatePom(projectDirectory));
            if (!pom.equals(projectDirectory) && !pom.getParent().equals(projectDirectory)) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 8.5K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/base/NullnessCasts.java

       * there's no way to assign a {@code @Nullable T} to a field {@code T foo;} and instruct the
       * analysis that that means "plain {@code T}" rather than the inferred type {@code @Nullable T}.
       * (Even if supported added {@code @NonNull}, that would not help, since the problem case
       * addressed by this method is the case in which {@code T} has parametric nullness -- and thus its
       * value may be legitimately {@code null}.)
       */
      @ParametricNullness
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Aug 17 15:44:29 UTC 2021
    - 3.1K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/base/Equivalence.java

         * and Equivalence<Object>.
         */
        private final Equivalence<? super @NonNull T> equivalence;
    
        @ParametricNullness private final T reference;
    
        private Wrapper(Equivalence<? super @NonNull T> equivalence, @ParametricNullness T reference) {
          this.equivalence = checkNotNull(equivalence);
          this.reference = reference;
        }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu May 16 14:34:47 UTC 2024
    - 13.8K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/testers/CollectionSpliteratorTester.java

      @CollectionSize.Require(absent = ZERO)
      public void testSpliteratorNullable() {
        initCollectionWithNullElement();
        assertFalse(collection.spliterator().hasCharacteristics(Spliterator.NONNULL));
      }
    
      @CollectionFeature.Require(SUPPORTS_ADD)
      public void testSpliteratorNotImmutable_collectionAllowsAdd() {
        // If add is supported, verify that IMMUTABLE is not reported.
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 3.8K bytes
    - Viewed (0)
Back to top