- Sort Score
- Num 10 results
- Language All
Results 181 - 190 of 1,112 for SuppressWarnings (0.15 seconds)
-
guava-tests/test/com/google/common/collect/MultimapBuilderTest.java
// but types are typically only Comparable to themselves). @SuppressWarnings({"rawtypes", "unchecked"}) private static MultimapBuilderWithKeys<Comparable<?>> rawtypeToWildcard( MultimapBuilderWithKeys<Comparable> treeKeys) { return (MultimapBuilderWithKeys) treeKeys; } @SuppressWarnings({"rawtypes", "unchecked"}) private static <K extends @Nullable Object>Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/TreeRangeMap.java
return this; } else { return new SubRangeMap(subRange); } } @SuppressWarnings("unchecked") private RangeMap<K, V> emptySubRangeMap() { return (RangeMap<K, V>) (RangeMap<?, ?>) EMPTY_SUB_RANGE_MAP; } @SuppressWarnings("ConstantCaseForConstants") // This RangeMap is immutable. private static final RangeMap<Comparable<?>, Object> EMPTY_SUB_RANGE_MAP =Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 23 17:50:58 GMT 2025 - 26.5K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
// Test ArrayList final List<String> list = new ArrayList<>(); list.add("item1"); list.add("item2"); binary = SerializeUtil.fromObjectToBinary(list); @SuppressWarnings("unchecked") final List<String> resultList = (List<String>) SerializeUtil.fromBinaryToObject(binary); assertEquals(list.size(), resultList.size()); assertEquals(list.get(0), resultList.get(0));Created: Sat Dec 20 08:55:33 GMT 2025 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 7.6K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MutableClassToInstanceMap.java
* themselves null), so we can treat it as a plain `Object[]`. */ @SuppressWarnings("nullness") Object[] result = standardToArray(); return result; } @Override @SuppressWarnings("nullness") // b/192354773 in our checker affects toArray declarations public <T extends @Nullable Object> T[] toArray(T[] array) {Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Mon Aug 11 22:10:29 GMT 2025 - 6.7K bytes - Click Count (0) -
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 @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 30 16:15:19 GMT 2024 - 2.2K bytes - Click Count (0) -
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 @OverrideCreated: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Wed Oct 30 16:15:19 GMT 2024 - 2.2K bytes - Click Count (0) -
guava/src/com/google/common/collect/Lists.java
* advantage of <a * href="https://docs.oracle.com/javase/tutorial/java/generics/genTypeInference.html#type-inference-instantiation">"diamond" * syntax</a>. */ @SuppressWarnings("NonApiType") // acts as a direct substitute for a constructor call public static <E extends @Nullable Object> ArrayList<E> newArrayList() { return new ArrayList<>(); } /**
Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 42.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheLoaderTest.java
}; assertThat(loadCount.get()).isEqualTo(0); assertThat(reloadCount.get()).isEqualTo(0); assertThat(loadAllCount.get()).isEqualTo(0); Object unused1 = baseLoader.load(new Object()); @SuppressWarnings("unused") // https://errorprone.info/bugpattern/FutureReturnValueIgnored Future<?> possiblyIgnoredError = baseLoader.reload(new Object(), new Object());Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Tue Sep 30 22:03:28 GMT 2025 - 3.8K bytes - Click Count (0) -
android/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>(Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.3K bytes - Click Count (0) -
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>(Created: Fri Dec 26 12:43:10 GMT 2025 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 2.3K bytes - Click Count (0)