- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 38 for ClassCastException (0.17 sec)
-
android/guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedPriorityBlockingQueue.java
* OutOfMemoryError}). This class does not permit {@code null} elements. A priority queue relying on * {@linkplain Comparable natural ordering} also does not permit insertion of non-comparable objects * (doing so results in {@code ClassCastException}). * * <p>This class and its iterator implement all of the optional methods of the {@link * Collection} and {@link Iterator} interfaces. The Iterator provided in method {@link #iterator()}
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 18.9K bytes - Viewed (0) -
guava/src/com/google/common/collect/Comparators.java
* Comparators}</a>. * * @param a first value to compare, returned if less than or equal to b. * @param b second value to compare. * @throws ClassCastException if the parameters are not <i>mutually comparable</i>. * @since 30.0 */ public static <T extends Comparable<? super T>> T min(T a, T b) { return (a.compareTo(b) <= 0) ? a : b; } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.9K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Throwables.java
* (IOException) e.getCause()} throws a {@link ClassCastException} that discards the original * exception {@code e} if the cause is not an {@link IOException}, but {@code * Throwables.getCauseAs(e, IOException.class)} keeps {@code e} as the {@link * ClassCastException}'s cause. * * @throws ClassCastException if the cause cannot be cast to the expected type. The {@code * ClassCastException}'s cause is {@code throwable}.
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbPipeHandleImplTest.java
// Happy path: unwrap to concrete type SmbPipeHandleImpl unwrapped = target.unwrap(SmbPipeHandleImpl.class); assertSame(target, unwrapped); // Incompatible type: expect ClassCastException class OtherPipeHandle implements SmbPipeHandle { @Override public SmbPipeResource getPipe() { return mock(SmbPipeResource.class); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/TreeMultiset.java
* {@code ClassCastException} for any elements {@code e1} and {@code e2} in the multiset. If the * user attempts to add an element to the multiset that violates this constraint (for example, the * user attempts to add a string element to a set whose elements are integers), the {@code * add(Object)} call will throw a {@code ClassCastException}. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 33.8K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplTest.java
assertSame(session, session.unwrap(jcifs.SmbSession.class)); // Edge: force incompatible class via raw type to trigger ClassCastException assertThrows(ClassCastException.class, () -> session.unwrap((Class) String.class)); } @Test @DisplayName("toString contains key identifiers") void testToString() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 12.5K bytes - Viewed (0) -
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-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) -
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) -
src/test/java/jcifs/smb/SIDTest.java
void testUnwrap() throws Exception { SID sid = new SID("S-1-5-21-1"); // Happy path assertSame(sid, sid.unwrap(SID.class)); assertSame(sid, sid.unwrap(Object.class)); // Invalid unwrap assertThrows(ClassCastException.class, () -> sid.unwrap(String.class)); }
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 15.8K bytes - Viewed (0)