Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 310 for unchecked (0.41 sec)

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

            // These come from Entry<K, Collection<V>>> objects somewhere.
            @SuppressWarnings("unchecked")
            K key = (K) entry.getKey();
            keySet.add(key);
            for (Object v : (Collection<?>) entry.getValue()) {
              // These come from Entry<K, Collection<V>>> objects somewhere.
              @SuppressWarnings("unchecked")
              V value = (V) v;
              builder.add(mapEntry(key, value));
            }
          }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/CollectCollectors.java

                  ImmutableRangeSet.Builder::build);
    
      // Lists
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() {
        return (Collector) TO_IMMUTABLE_LIST;
      }
    
      // Sets
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        return (Collector) TO_IMMUTABLE_SET;
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/TreeRangeMapTest.java

                          @SuppressWarnings("unchecked")
                          Entry<Range<Integer>, String> entry = (Entry<Range<Integer>, String>) o;
                          rangeMap.put(entry.getKey(), entry.getValue());
                        }
                        return rangeMap.asMapOfRanges();
                      }
    
                      @SuppressWarnings("unchecked")
                      @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 28K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/TableCollectionTest.java

            @SuppressWarnings("unchecked")
            Cell<String, Integer, Character> cell = (Cell<String, Integer, Character>) element;
            table.put(cell.getRowKey(), cell.getColumnKey(), cell.getValue());
          }
          return table.cellSet();
        }
    
        abstract Table<String, Integer, Character> createTable();
    
        @Override
        @SuppressWarnings("unchecked")
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 19 20:34:55 GMT 2024
    - 35.3K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/AbstractIteratorTester.java

             * doesn't recognize this kind of cast as unchecked cast. Neither does
             * Eclipse 3.4. Right now, this suppression is mostly unnecessary.
             */
            @SuppressWarnings("unchecked")
            MultiExceptionListIterator multiExceptionListIterator =
                (MultiExceptionListIterator) reference;
            multiExceptionListIterator.promoteToNext(targetReturnValueFromNext);
          }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 21.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/CollectCollectors.java

                  ImmutableRangeSet.Builder::build);
    
      // Lists
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableList<E>> toImmutableList() {
        return (Collector) TO_IMMUTABLE_LIST;
      }
    
      // Sets
    
      @SuppressWarnings({"rawtypes", "unchecked"})
      static <E> Collector<E, ?, ImmutableSet<E>> toImmutableSet() {
        return (Collector) TO_IMMUTABLE_SET;
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 16.7K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableSortedSet.java

        if (hasSameComparator && (elements instanceof ImmutableSortedSet)) {
          @SuppressWarnings("unchecked")
          ImmutableSortedSet<E> original = (ImmutableSortedSet<E>) elements;
          if (!original.isPartialView()) {
            return original;
          }
        }
        @SuppressWarnings("unchecked") // elements only contains E's; it's safe.
        E[] array = (E[]) Iterables.toArray(elements);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 38.5K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/MultimapTestSuiteBuilder.java

            // These come from Entry<K, Collection<V>>> objects somewhere.
            @SuppressWarnings("unchecked")
            K key = (K) entry.getKey();
            keySet.add(key);
            for (Object v : (Collection<?>) entry.getValue()) {
              // These come from Entry<K, Collection<V>>> objects somewhere.
              @SuppressWarnings("unchecked")
              V value = (V) v;
              builder.add(mapEntry(key, value));
            }
          }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 26.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/reflect/Invokable.java

              "Invokable is known to return " + getReturnType() + ", not " + returnType);
        }
        @SuppressWarnings("unchecked") // guarded by previous check
        Invokable<T, R1> specialized = (Invokable<T, R1>) this;
        return specialized;
      }
    
      @SuppressWarnings("unchecked") // The declaring class is T's raw class, or one of its supertypes.
      @Override
      public final Class<? super T> getDeclaringClass() {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 18.6K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/collect/testing/FeatureSpecificTestSuiteBuilder.java

     * @author George van den Driessche
     */
    @GwtIncompatible
    public abstract class FeatureSpecificTestSuiteBuilder<
        B extends FeatureSpecificTestSuiteBuilder<B, G>, G> {
      @SuppressWarnings("unchecked")
      protected B self() {
        return (B) this;
      }
    
      // Test Data
    
      private @Nullable G subjectGenerator;
      // Gets run before every test.
      private Runnable setUp;
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 10.2K bytes
    - Viewed (0)
Back to top