- Sort Score
- Result 10 results
- Languages All
Results 1 - 3 of 3 for CollectionIncompatibleType (0.18 sec)
-
guava-tests/test/com/google/common/collect/ImmutableSortedSetTest.java
assertTrue(set.contains("google")); assertFalse(set.contains("")); assertFalse(set.contains("california")); assertFalse(set.contains(null)); } @SuppressWarnings("CollectionIncompatibleType") // testing incompatible types public void testExplicit_containsMismatchedTypes() { SortedSet<String> set = ImmutableSortedSet.orderedBy(STRING_LENGTH)
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 46.7K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
expectedHash += entry.hashCode(); } assertEquals(expectedHash, map.hashCode()); } assertMoreInvariants(map); } @SuppressWarnings("CollectionIncompatibleType") private void assertEntrySetNotContainsString(Set<Entry<K, V>> entrySet) { // Very unlikely that a buggy collection would ever return true. It might accidentally throw. assertFalse(entrySet.contains("foo"));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.8K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/MapInterfaceTest.java
expectedHash += entry.hashCode(); } assertEquals(expectedHash, map.hashCode()); } assertMoreInvariants(map); } @SuppressWarnings("CollectionIncompatibleType") private void assertEntrySetNotContainsString(Set<Entry<K, V>> entrySet) { // Very unlikely that a buggy collection would ever return true. It might accidentally throw. assertFalse(entrySet.contains("foo"));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 43.8K bytes - Viewed (0)