- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for CCE (0.01 sec)
-
guava-tests/test/com/google/common/reflect/MutableTypeToInstanceMapTest.java
} public void testEntrySetToArrayMutationThrows() { map.putInstance(String.class, "test"); @SuppressWarnings("unchecked") // Should get a CCE later if cast is wrong Entry<?, Object> entry = (Entry<?, Object>) map.entrySet().toArray()[0]; assertEquals(TypeToken.of(String.class), entry.getKey()); assertEquals("test", entry.getValue());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java
assertTrue(set.contains(2)); assertTrue(set.contains(3)); assertFalse(set.contains(4)); } // TODO: https://youtrack.jetbrains.com/issue/KT-71001/ - Enable when Kotlin throws expected CCE. @J2ktIncompatible public void testContains_typeMismatch() { ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.open(0, 4), integers()); assertFalse(set.contains((Object) "blah")); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.6K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/LegacyComparable.java
private final String value; LegacyComparable(String value) { this.value = value; } @Override public int compareTo(Object object) { // This method is spec'd to throw CCE if object is of the wrong type LegacyComparable that = (LegacyComparable) object; return this.value.compareTo(that.value); } @Override public boolean equals(@Nullable Object object) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 2.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Cut.java
} C endpoint() { return endpoint; } @SuppressWarnings("unchecked") // catching CCE @Override public boolean equals(@Nullable Object obj) { if (obj instanceof Cut) { // It might not really be a Cut<C>, but we'll catch a CCE if it's not Cut<C> that = (Cut<C>) obj; try { int compareResult = compareTo(that); return compareResult == 0;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 12.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ContiguousSetTest.java
assertTrue(set.contains(2)); assertTrue(set.contains(3)); assertFalse(set.contains(4)); } // TODO: https://youtrack.jetbrains.com/issue/KT-71001/ - Enable when Kotlin throws expected CCE. @J2ktIncompatible public void testContains_typeMismatch() { ImmutableSortedSet<Integer> set = ContiguousSet.create(Range.open(0, 4), integers()); assertFalse(set.contains((Object) "blah")); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/RegularContiguousSet.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.3K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
// Pretend the comparator can compare anything. If it turns out it can't // compare a and b, we should get a CCE or NPE on the subsequent line. Only methods // that are spec'd to throw CCE and NPE should call this. @SuppressWarnings({"unchecked", "nullness"}) Comparator<@Nullable Object> unsafeComparator = (Comparator<@Nullable Object>) comparator;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 36.8K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/SetViewTest.java
new EqualsTester() .addEqualityGroup(new SetContainsThrows()) .addEqualityGroup(intersection(singleton(null), singleton(null))) // NPE .addEqualityGroup(intersection(singleton(0), singleton(0))) // CCE .testEquals(); } /** Returns a {@link Set} with a {@link Set#size()} of {@code size}. */ private static ContiguousSet<Integer> setSize(int size) { checkArgument(size >= 0);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 29.9K bytes - Viewed (0)