- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for CollectionThatThrowsClassCastException (0.26 sec)
-
guava-tests/test/com/google/common/base/PredicatesTest.java
class CollectionThatThrowsClassCastException<T> extends ArrayList<T> { @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 1L; @Override public boolean contains(@Nullable Object element) { throw new ClassCastException(""); } } Collection<Integer> nums = new CollectionThatThrowsClassCastException<>(); nums.add(3);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 32.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/PredicatesTest.java
class CollectionThatThrowsClassCastException<T> extends ArrayList<T> { @GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 1L; @Override public boolean contains(@Nullable Object element) { throw new ClassCastException(""); } } Collection<Integer> nums = new CollectionThatThrowsClassCastException<>(); nums.add(3);
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 32.3K bytes - Viewed (0)