- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 115 for ClassCastException (0.27 sec)
-
src/test/java/jcifs/smb/SmbTransportImplTest.java
Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 17.6K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 15.5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/SafeTreeSet.java
return delegate.toArray(); } @Override public <T> T[] toArray(T[] a) { return delegate.toArray(a); } @CanIgnoreReturnValue private <T> T checkValid(T t) { // a ClassCastException is what's supposed to happen! @SuppressWarnings("unchecked") E e = (E) t; int unused = comparator().compare(e, e); return t; } @Override
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Feb 13 17:34:21 UTC 2025 - 5.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java
try { assertFalse( "removeAll(containsWrongType) should return false or throw", collection.removeAll(MinimalCollection.of(WrongType.VALUE))); } catch (ClassCastException tolerated) { } expectUnchanged(); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 7.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/AbstractTableTest.java
} } @SuppressWarnings("unchecked") // C can only be @Nullable Character or Character protected @NonNull C cellValue(Character character) { return (C) character; } // Only safe wrt. ClassCastException. Not null-safe (can be used to test expected Table NPEs) @SuppressWarnings("unchecked") protected C nullableCellValue(@Nullable Character character) { return (C) character; }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbRenewableCredentialsTest.java
} @Override public <T extends Credentials> T unwrap(Class<T> type) { if (type.isInstance(this)) { return type.cast(this); } throw new ClassCastException("Cannot unwrap to " + type.getName()); } } static class SelfRenewingCreds extends BaseCreds { @Override public CredentialsInternal renew() {Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 7K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionRemoveAllTester.java
try { assertFalse( "removeAll(containsWrongType) should return false or throw", collection.removeAll(MinimalCollection.of(WrongType.VALUE))); } catch (ClassCastException tolerated) { } expectUnchanged(); }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 7.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingSortedMap.java
SortedMap<@Nullable Object, V> self = (SortedMap<@Nullable Object, V>) this; Object ceilingKey = self.tailMap(key).firstKey(); return unsafeCompare(comparator(), ceilingKey, key) == 0; } catch (ClassCastException | NoSuchElementException | NullPointerException e) { return false; } } /** * A sensible default implementation of {@link #subMap(Object, Object)} in terms of {@link
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Wed Feb 12 16:28:01 UTC 2025 - 5.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/AbstractTableTest.java
} } @SuppressWarnings("unchecked") // C can only be @Nullable Character or Character protected @NonNull C cellValue(Character character) { return (C) character; } // Only safe wrt. ClassCastException. Not null-safe (can be used to test expected Table NPEs) @SuppressWarnings("unchecked") protected C nullableCellValue(@Nullable Character character) { return (C) character; }Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Oct 28 16:03:47 UTC 2025 - 6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Maps.java
} /** * Delegates to {@link Map#get}. Returns {@code null} on {@code ClassCastException} and {@code * NullPointerException}. */ static <V extends @Nullable Object> @Nullable V safeGet(Map<?, V> map, @Nullable Object key) { checkNotNull(map); try { return map.get(key); } catch (ClassCastException | NullPointerException e) { return null; } } /**Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 23 17:50:58 UTC 2025 - 157.6K bytes - Viewed (0)