Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for JdkObsolete (0.04 sec)

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

                CollectionSize.ANY)
            .suppressing(suppressForArrayList())
            .createTestSuite();
      }
    
      // We are testing LinkedList / testing our tests on LinkedList.
      @SuppressWarnings("JdkObsolete")
      public Test testsForLinkedList() {
        return ListTestSuiteBuilder.using(
                new TestStringListGenerator() {
                  @Override
                  public List<String> create(String[] elements) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Sep 04 15:04:05 UTC 2025
    - 12K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/SortedMultisets.java

     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    final class SortedMultisets {
      private SortedMultisets() {}
    
      /** A skeleton implementation for {@link SortedMultiset#elementSet}. */
      @SuppressWarnings("JdkObsolete") // TODO(b/6160855): Switch GWT emulations to NavigableSet.
      static class ElementSet<E extends @Nullable Object> extends Multisets.ElementSet<E>
          implements SortedSet<E> {
        @Weak private final SortedMultiset<E> multiset;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/MultimapBuilder.java

          Supplier<List<V>> result = (Supplier) INSTANCE;
          return result;
        }
    
        @Override
        // We recommend against linkedListValues but need to keep it for compatibility.
        @SuppressWarnings("JdkObsolete")
        public List<?> get() {
          return new LinkedList<>();
        }
      }
    
      private static final class HashSetSupplier<V extends @Nullable Object>
          implements Supplier<Set<V>>, Serializable {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 18K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/MultimapBuilder.java

          Supplier<List<V>> result = (Supplier) INSTANCE;
          return result;
        }
    
        @Override
        // We recommend against linkedListValues but need to keep it for compatibility.
        @SuppressWarnings("JdkObsolete")
        public List<?> get() {
          return new LinkedList<>();
        }
      }
    
      private static final class HashSetSupplier<V extends @Nullable Object>
          implements Supplier<Set<V>>, Serializable {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 18K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/Lists.java

       * syntax</a>.
       */
      @SuppressWarnings({
        "NonApiType", // acts as a direct substitute for a constructor call
        "JdkObsolete", // We recommend against this method but need to keep it for compatibility.
      })
      public static <E extends @Nullable Object> LinkedList<E> newLinkedList() {
        return new LinkedList<>();
      }
    
      /**
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 42.2K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(3, (int) enumer.nextElement());
        assertFalse(enumer.hasMoreElements());
      }
    
      // We're testing our asEnumeration method against a known-good implementation.
      @SuppressWarnings("JdkObsolete")
      private static Enumeration<Integer> enumerate(int... ints) {
        Vector<Integer> vector = new Vector<>(Ints.asList(ints));
        return vector.elements();
      }
    
      public void testToString() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/IteratorsTest.java

        assertEquals(3, (int) enumer.nextElement());
        assertFalse(enumer.hasMoreElements());
      }
    
      // We're testing our asEnumeration method against a known-good implementation.
      @SuppressWarnings("JdkObsolete")
      private static Enumeration<Integer> enumerate(int... ints) {
        Vector<Integer> vector = new Vector<>(Ints.asList(ints));
        return vector.elements();
      }
    
      public void testToString() {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 54.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/Iterators.java

       * you have a {@link Collection}), or {@code Iterators.asEnumeration(collection.iterator())}.
       */
      // This is an adapter for cases in which users do need an Enumeration for whatever reason.
      @SuppressWarnings("JdkObsolete")
      public static <T extends @Nullable Object> Enumeration<T> asEnumeration(Iterator<T> iterator) {
        checkNotNull(iterator);
        return new Enumeration<T>() {
          @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 50.5K bytes
    - Viewed (0)
Back to top