Search Options

Results per page
Sort
Preferred Languages
Advance

Results 81 - 90 of 985 for SuppressWarnings (0.09 sec)

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

          Map<? extends Class<? extends S>, ? extends S> map) {
        if (map instanceof ImmutableClassToInstanceMap) {
          @SuppressWarnings("rawtypes") // JDT-based J2KT Java frontend does not permit the direct cast
          Map rawMap = map;
          @SuppressWarnings("unchecked") // covariant casts safe (unmodifiable)
          ImmutableClassToInstanceMap<B> cast = (ImmutableClassToInstanceMap<B>) rawMap;
          return cast;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.1K bytes
    - Viewed (0)
  2. android/guava-testlib/src/com/google/common/collect/testing/ConcurrentMapTestSuiteBuilder.java

        return result;
      }
    
      @SuppressWarnings("rawtypes") // class literals
      static final List<? extends Class<? extends AbstractTester>> TESTERS =
          asList(
              ConcurrentMapPutIfAbsentTester.class,
              ConcurrentMapRemoveTester.class,
              ConcurrentMapReplaceTester.class,
              ConcurrentMapReplaceEntryTester.class);
    
      @SuppressWarnings("rawtypes") // class literals
      @Override
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 2.2K bytes
    - Viewed (0)
  3. guava-testlib/src/com/google/common/collect/testing/google/TestStringListMultimapGenerator.java

        return copyToList(values);
      }
    
      @Override
      public final ListMultimap<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
        Entry<String, String>[] array = (Entry<String, String>[]) new Entry<?, ?>[entries.length];
        int i = 0;
        for (Object o : entries) {
          @SuppressWarnings("unchecked")
          Entry<String, String> e = (Entry<String, String>) o;
          array[i++] = e;
        }
        return create(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 3K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      }
    
      public void testAssignableParameterizedTypeToClass() {
        @SuppressWarnings("rawtypes") // Trying to test raw class
        TypeToken<List> tokL = new TypeToken<List>() {};
        assertTrue(tokL.isSupertypeOf(StringList.class));
        assertTrue(tokL.isSupertypeOf(StringList.class.getGenericInterfaces()[0]));
    
        @SuppressWarnings("rawtypes") // Trying to test raw class
        TypeToken<Second> tokS = new TypeToken<Second>() {};
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Sep 02 17:23:59 UTC 2025
    - 89K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/collect/RegularImmutableAsList.java

    /**
     * An {@link ImmutableAsList} implementation specialized for when the delegate collection is already
     * backed by an {@code ImmutableList} or array.
     *
     * @author Louis Wasserman
     */
    @GwtCompatible
    @SuppressWarnings("serial") // uses writeReplace, not default serialization
    class RegularImmutableAsList<E> extends ImmutableAsList<E> {
      private final ImmutableCollection<E> delegate;
      private final ImmutableList<? extends E> delegateList;
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  6. guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java

            mapEntry("five", "May"));
      }
    
      @Override
      public Map<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
        Entry<String, String>[] array = (Entry<String, String>[]) new Entry<?, ?>[entries.length];
        int i = 0;
        for (Object o : entries) {
          @SuppressWarnings("unchecked")
          Entry<String, String> e = (Entry<String, String>) o;
          array[i++] = e;
        }
        return create(array);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 14:50:24 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/AbstractBiMapTest.java

    @NullUnmarked
    public class AbstractBiMapTest extends TestCase {
    
      // The next two tests verify that map entries are not accessed after they're
      // removed, since IdentityHashMap throws an exception when that occurs.
      @SuppressWarnings("IdentityHashMapBoxing") // explicitly testing IdentityHashMap
      public void testIdentityKeySetIteratorRemove() {
        BiMap<Integer, String> bimap =
            new AbstractBiMap<Integer, String>(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/FilteredEntryMultimap.java

      }
    
      @Override
      public Collection<V> removeAll(@Nullable Object key) {
        return MoreObjects.firstNonNull(asMap().remove(key), unmodifiableEmptyCollection());
      }
    
      @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types
      Collection<V> unmodifiableEmptyCollection() {
        // These return false, rather than throwing a UOE, on remove calls.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/http/HandlerTest.java

            factoryField.set(null, null);
    
            // Clear the protocol handlers cache
            Field handlersField = Handler.class.getDeclaredField("PROTOCOL_HANDLERS");
            handlersField.setAccessible(true);
            @SuppressWarnings("unchecked")
            Map<String, URLStreamHandler> handlers = (Map<String, URLStreamHandler>) handlersField.get(null);
            handlers.clear();
        }
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.1K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/MoreCollectors.java

       */
      @SuppressWarnings("unchecked")
      public static <T extends @Nullable Object> Collector<T, ?, T> onlyElement() {
        return (Collector) ONLY_ELEMENT;
      }
    
      /**
       * This atrocity is here to let us report several of the elements in the stream if there were more
       * than one, not just two.
       */
      @SuppressWarnings("EmptyList") // ImmutableList doesn't support nullable element types
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 5.4K bytes
    - Viewed (0)
Back to top