- Sort Score
- Result 10 results
- Languages All
Results 331 - 333 of 333 for UnsupportedOperationException (0.13 sec)
-
guava-tests/test/com/google/common/collect/OrderingTest.java
} private static void assertListImmutable(List<Integer> result) { try { result.set(0, 1); fail(); } catch (UnsupportedOperationException expected) { // pass } } public void testIteratorMinAndMax() { List<Integer> ints = Lists.newArrayList(5, 3, 0, 9); assertEquals(9, (int) numberOrdering.max(ints.iterator()));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 42.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Iterators.java
@Override public void remove() { checkRemove(false); } } /** * Returns the empty {@code Iterator} that throws {@link IllegalStateException} instead of {@link * UnsupportedOperationException} on a call to {@link Iterator#remove()}. */ // Casting to any type is safe since there are no actual elements. @SuppressWarnings("unchecked")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 50.3K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/URLConnectionTest.kt
"http://host\u0001/".toHttpUrl() } } @Suppress("DEPRECATION_ERROR") @Test fun setSslSocketFactoryFailsOnJdk9() { platform.assumeJdk9() assertFailsWith<UnsupportedOperationException> { client.newBuilder() .sslSocketFactory(handshakeCertificates.sslSocketFactory()) } } /** Confirm that runtime exceptions thrown inside of OkHttp propagate to the caller. */
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Sat Jan 20 10:30:28 UTC 2024 - 131.7K bytes - Viewed (0)