- Sort Score
- Result 10 results
- Languages All
Results 41 - 50 of 105 for ClassCastException (0.25 sec)
-
src/main/java/jcifs/DfsReferralData.java
* * @param <T> the target type to unwrap to * @param type the class of the target type * @return the referral adapted to type * @throws ClassCastException * if the type is not valid for this object */ <T extends DfsReferralData> T unwrap(Class<T> type); /** * Get the server this referral points to *
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 2.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/base/ThrowablesTest.java
assertThat(getCauseAs(thrown, SomeCheckedException.class)).isSameInstanceAs(cause); assertThat(getCauseAs(thrown, Exception.class)).isSameInstanceAs(cause); ClassCastException expected = assertThrows( ClassCastException.class, () -> getCauseAs(thrown, IllegalStateException.class)); assertThat(expected).hasCauseThat().isSameInstanceAs(thrown); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 14.9K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java
try { // noinspection SuspiciousMethodCalls assertFalse( "containsValue(wrongType) should return false or throw", getMap().containsValue(WrongType.VALUE)); } catch (ClassCastException tolerated) { } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapContainsKeyTester.java
try { // noinspection SuspiciousMethodCalls assertFalse( "containsKey(wrongType) should return false or throw", getMap().containsKey(WrongType.VALUE)); } catch (ClassCastException tolerated) { } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 26 21:06:36 UTC 2025 - 3.6K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsTester.java
} public void testContains_wrongType() { try { assertFalse( "contains(wrongType) should return false or throw", collection.contains(WrongType.VALUE)); } catch (ClassCastException tolerated) { } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.2K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapContainsValueTester.java
try { // noinspection SuspiciousMethodCalls assertFalse( "containsValue(wrongType) should return false or throw", getMap().containsValue(WrongType.VALUE)); } catch (ClassCastException tolerated) { } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.3K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/MsrpcShareGetInfoTest.java
infoField.setAccessible(true); infoField.set(msrpcShareGetInfo, info0); // This should throw ClassCastException assertThrows(ClassCastException.class, () -> { msrpcShareGetInfo.getSecurity(); }); } @Test void testGetSecurityWhenInfoIsNull() throws Exception {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 14.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapGetOrDefaultTester.java
try { assertEquals( "getOrDefault(wrongType, default) should return default or throw", v3(), getMap().getOrDefault(WrongType.VALUE, v3())); } catch (ClassCastException tolerated) { } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4.4K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionContainsAllTester.java
Collection<WrongType> wrong = MinimalCollection.of(WrongType.VALUE); try { assertFalse( "containsAll(wrongType) should return false or throw", collection.containsAll(wrong)); } catch (ClassCastException tolerated) { } }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 4K bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 18:32:41 UTC 2025 - 4K bytes - Viewed (0)