- Sort Score
- Num 10 results
- Language All
Results 741 - 750 of 1,438 for SuppressWarnings (0.09 seconds)
-
android/guava/src/com/google/common/collect/ImmutableEnumSet.java
import java.util.EnumSet; import org.jspecify.annotations.Nullable; /** * Implementation of {@link ImmutableSet} backed by a non-empty {@link java.util.EnumSet}. * * @author Jared Levy */ @GwtCompatible @SuppressWarnings("serial") // we're overriding default serialization final class ImmutableEnumSet<E extends Enum<E>> extends ImmutableSet<E> { static <E extends Enum<E>> ImmutableSet<E> asImmutable(EnumSet<E> set) { switch (set.size()) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 4.2K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/LinkedListMultimap.java
stream.defaultReadObject(); keyToKeyList = CompactLinkedHashMap.create(); int size = stream.readInt(); for (int i = 0; i < size; i++) { @SuppressWarnings("unchecked") // reading data stored by writeObject K key = (K) stream.readObject(); @SuppressWarnings("unchecked") // reading data stored by writeObject V value = (V) stream.readObject(); put(key, value); } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 18:35:44 GMT 2025 - 26.6K bytes - Click Count (0) -
guava/src/com/google/common/base/Predicates.java
* representations and are not serializable. * * @param target the collection that may contain the function input */ @SuppressWarnings("NoHardKeywords") // We're stuck with the name for compatibility reasons. public static <T extends @Nullable Object> Predicate<T> in(Collection<? extends T> target) { return new InPredicate<>(target); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 26.6K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.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 BiMapEntrySetTester<K, V> extends AbstractBiMapTester<K, V> { @MapFeature.Require(SUPPORTS_PUT) @CollectionSize.Require(absent = ZERO) public void testSetValue_valueAbsent() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.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 SetCreationTester<E> extends AbstractSetTester<E> { @CollectionFeature.Require(value = ALLOWS_NULL_VALUES, absent = REJECTS_DUPLICATES_AT_CREATION)Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/MultimapContainsKeyTester.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 MultimapContainsKeyTester<K, V> extends AbstractMultimapTester<K, V, Multimap<K, V>> { @CollectionSize.Require(absent = ZERO) public void testContainsKeyYes() {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.1K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.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 SetCreationTester<E> extends AbstractSetTester<E> { @CollectionFeature.Require(value = ALLOWS_NULL_VALUES, absent = REJECTS_DUPLICATES_AT_CREATION)Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/ListMultimapRemoveTester.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 ListMultimapRemoveTester<K, V> extends AbstractListMultimapTester<K, V> { @MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(SEVERAL)Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
} /** * Creates and returns a new builder, configured to build {@code MinMaxPriorityQueue} instances * sized appropriately to hold {@code expectedSize} elements. */ @SuppressWarnings("rawtypes") // https://github.com/google/guava/issues/989 public static Builder<Comparable> expectedSize(int expectedSize) { return new Builder<Comparable>(Ordering.natural()).expectedSize(expectedSize); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ClassToInstanceMapTesting.java
immutableEntry(Three.class, new Impl(3)), immutableEntry(Four.class, new Impl(4)), immutableEntry(Five.class, new Impl(5))); } @Override @SuppressWarnings("unchecked") public Entry<Class<?>, Impl>[] createArray(int length) { return (Entry<Class<?>, Impl>[]) new Entry<?, ?>[length]; } @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 20:00:15 GMT 2026 - 2.7K bytes - Click Count (0)