- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 985 for SuppressWarnings (0.29 sec)
-
android/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) -
android/guava-tests/test/com/google/common/collect/UnmodifiableListIteratorTest.java
@GwtCompatible @NullMarked public class UnmodifiableListIteratorTest extends TestCase { @SuppressWarnings("DoNotCall") public void testRemove() { Iterator<String> iterator = create(); assertTrue(iterator.hasNext()); assertEquals("a", iterator.next()); assertThrows(UnsupportedOperationException.class, () -> iterator.remove()); } @SuppressWarnings("DoNotCall") public void testAdd() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 2.8K bytes - Viewed (0) -
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)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 26.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
} @GwtIncompatible // DoubleMath.mean @SuppressWarnings("deprecation") // test of deprecated method public void testMean_intVarargs() { assertThat(DoubleMath.mean(11, -22, 44, -88)).isWithin(1.0e-10).of(-13.75); assertThat(DoubleMath.mean(11)).isWithin(1.0e-10).of(11.0); } @GwtIncompatible // DoubleMath.mean @SuppressWarnings("deprecation") // test of deprecated method
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.3K bytes - Viewed (0) -
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) -
android/guava-testlib/src/com/google/common/collect/testing/PerCollectionSizeTestSuiteBuilder.java
OneSizeTestSuiteBuilder<T, E>, OneSizeGenerator<T, E>> { @SuppressWarnings("rawtypes") // class literals private final List<Class<? extends AbstractTester>> testers; @SuppressWarnings("rawtypes") // class literals OneSizeTestSuiteBuilder(List<Class<? extends AbstractTester>> testers) { this.testers = testers; } @SuppressWarnings("rawtypes") // class literals @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Jul 14 14:44:08 UTC 2025 - 5.4K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/Primitives.java
@SuppressWarnings("ConstantCaseForConstants") private static final Map<Class<?>, Class<?>> PRIMITIVE_TO_WRAPPER_TYPE; /** A map from wrapper types to their corresponding primitive types. */ // It's a constant, and we can't use ImmutableMap here without creating a circular dependency. @SuppressWarnings("ConstantCaseForConstants")
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 28 01:26:26 UTC 2024 - 4.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapRemoveTester.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 BiMapRemoveTester<K, V> extends AbstractBiMapTester<K, V> { @MapFeature.Require(SUPPORTS_REMOVE) @CollectionSize.Require(absent = ZERO)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.2K bytes - Viewed (1) -
android/guava-testlib/src/com/google/common/collect/testing/testers/AbstractListIndexOfTester.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 abstract class AbstractListIndexOfTester<E> extends AbstractListTester<E> { /** Override to call {@code indexOf()} or {@code lastIndexOf()}. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.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 CollectionContainsTester<E> extends AbstractCollectionTester<E> { @CollectionSize.Require(absent = ZERO) public void testContains_yes() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.2K bytes - Viewed (0)