Search Options

Results per page
Sort
Preferred Languages
Advance

Results 251 - 260 of 985 for SuppressWarnings (0.16 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRetainAllTester.java

     */
    @GwtCompatible
    @Ignore("test runners must not instantiate and run this directly, only via suites we build")
    // @Ignore affects the Android test runner, which respects JUnit 4 annotations on JUnit 3 tests.
    @SuppressWarnings("JUnit4ClassUsedInJUnit3")
    public class CollectionRetainAllTester<E> extends AbstractCollectionTester<E> {
    
      /** A collection of elements to retain, along with a description for use in failure messages. */
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Fri Jul 18 15:05:43 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/SimpleAbstractMultisetTest.java

    import org.jspecify.annotations.NullMarked;
    import org.jspecify.annotations.Nullable;
    
    /**
     * Unit test for {@link AbstractMultiset}.
     *
     * @author Kevin Bourrillion
     * @author Louis Wasserman
     */
    @SuppressWarnings("serial") // No serialization is used in this test
    @GwtCompatible
    @NullMarked
    public class SimpleAbstractMultisetTest extends TestCase {
      @J2ktIncompatible
      @GwtIncompatible // suite
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/AbstractTableTest.java

          assertEquals(ImmutableMap.of(5, 'x'), row);
        }
      }
    
      @SuppressWarnings("unchecked") // C can only be @Nullable Character or Character
      protected @NonNull C cellValue(Character character) {
        return (C) character;
      }
    
      // Only safe wrt. ClassCastException. Not null-safe (can be used to test expected Table NPEs)
      @SuppressWarnings("unchecked")
      protected C nullableCellValue(@Nullable Character character) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 5.8K bytes
    - Viewed (0)
  4. compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/ArtifactMetadata.java

                String classifier,
                String artifactUri) {
            this(groupId, name, version, type, artifactScope, classifier, artifactUri, null, true, null);
        }
    
        @SuppressWarnings("checkstyle:parameternumber")
        public ArtifactMetadata(
                String groupId,
                String name,
                String version,
                String type,
                ArtifactScopeEnum artifactScope,
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Sun Mar 30 23:08:36 UTC 2025
    - 8K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/SetsTest.java

      }
    
      public void testNewLinkedHashSetEmpty() {
        @SuppressWarnings("UseCollectionConstructor") // test of factory method
        LinkedHashSet<Integer> set = Sets.newLinkedHashSet();
        verifyLinkedHashSetContents(set, EMPTY_COLLECTION);
      }
    
      public void testNewLinkedHashSetFromCollection() {
        @SuppressWarnings("UseCollectionConstructor") // test of factory method
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 45.3K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/base/JoinerTest.java

      /*
       * Both of these fields *are* immutable/constant. They don't use the type ImmutableList because
       * they need to behave slightly differently.
       */
      @SuppressWarnings("ConstantCaseForConstants")
      private static final List<Integer> UNDERREPORTING_SIZE_LIST;
    
      @SuppressWarnings("ConstantCaseForConstants")
      private static final List<Integer> OVERREPORTING_SIZE_LIST;
    
      static {
        List<Integer> collection123 = Arrays.asList(1, 2, 3);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 12.7K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/LinkedHashMultimap.java

        for (int i = 0; i < distinctKeys; i++) {
          @SuppressWarnings("unchecked")
          K key = (K) stream.readObject();
          map.put(key, createCollection(key));
        }
        int entries = stream.readInt();
        for (int i = 0; i < entries; i++) {
          @SuppressWarnings("unchecked")
          K key = (K) stream.readObject();
          @SuppressWarnings("unchecked")
          V value = (V) stream.readObject();
          /*
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableMultimap.java

       */
      public static <K, V> ImmutableMultimap<K, V> copyOf(Multimap<? extends K, ? extends V> multimap) {
        if (multimap instanceof ImmutableMultimap) {
          @SuppressWarnings("unchecked") // safe since multimap is not writable
          ImmutableMultimap<K, V> kvMultimap = (ImmutableMultimap<K, V>) multimap;
          if (!kvMultimap.isPartialView()) {
            return kvMultimap;
          }
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 28.6K bytes
    - Viewed (0)
  9. guava-tests/test/com/google/common/collect/ForwardingListIteratorTest.java

    /**
     * Tests for {@code ForwardingListIterator}.
     *
     * @author Robert Konigsberg
     */
    @NullUnmarked
    public class ForwardingListIteratorTest extends TestCase {
    
      @SuppressWarnings("rawtypes")
      public void testForwarding() {
        new ForwardingWrapperTester()
            .testForwarding(
                ListIterator.class,
                new Function<ListIterator, ListIterator<?>>() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 1.6K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/io/SourceSinkFactories.java

          return file;
        }
    
        File getFile() {
          return fileThreadLocal.get();
        }
    
        // acts as an override in subclasses that implement SourceSinkFactory
        @SuppressWarnings("EffectivelyPrivate")
        public final void tearDown() throws IOException {
          if (!fileThreadLocal.get().delete()) {
            logger.warning("Unable to delete file: " + fileThreadLocal.get());
          }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 17.9K bytes
    - Viewed (0)
Back to top