- Sort Score
- Result 10 results
- Languages All
Results 551 - 560 of 613 for IllegalArgumentException (0.17 sec)
-
guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
public void testGetSubtypeOf_impossibleWildcard() { TypeToken<List<? extends Number>> numberList = new TypeToken<List<? extends Number>>() {}; abstract class StringList implements List<String> {} assertThrows(IllegalArgumentException.class, () -> numberList.getSubtype(StringList.class)); } private static class OwnerTypeSubtypingTests extends SubtypeTester { @TestSubtype public Mall<Outdoor>.Shop<Electronics> innerTypeIsSubtype(
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 20.3K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverRequest.java
this.repositories = repositories; if (verbose && requestType != RequestType.COLLECT) { throw new IllegalArgumentException("verbose cannot only be true when collecting dependencies"); } } @Nonnull @Override public RequestType getRequestType() {
Registered: Sun Nov 03 03:35:11 UTC 2024 - Last Modified: Wed Oct 16 14:15:37 UTC 2024 - 17.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSortedSet.java
* {@inheritDoc} * * <p>This method returns a serializable {@code ImmutableSortedSet}. * * <p>The {@link SortedSet#headSet} documentation states that a subset of a subset throws an * {@link IllegalArgumentException} if passed a {@code toElement} greater than an earlier {@code * toElement}. However, this method doesn't throw an exception in that situation, but instead * keeps the original {@code toElement}. */
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 36.9K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/MacHashFunctionTest.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 23 14:22:54 UTC 2024 - 13.8K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/UrlComponentEncodingTester.kt
} private fun testForbidden( codePoint: Int, codePointString: String, component: Component, ) { val builder = "http://host/".toHttpUrl().newBuilder() assertFailsWith<IllegalArgumentException> { component[builder] = codePointString } } private fun testPunycode( codePointString: String, component: Component, ) {
Registered: Fri Nov 01 11:42:11 UTC 2024 - Last Modified: Mon Jan 08 01:13:22 UTC 2024 - 12.3K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/Helpers.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 17.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableTableTest.java
ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<Character, Integer, String>() .put('a', 1, "foo") .put('a', 1, "bar"); assertThrows(IllegalArgumentException.class, () -> builder.build()); } public void testBuilder_noNulls() { ImmutableTable.Builder<Character, Integer, String> builder = new ImmutableTable.Builder<>();
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.5K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMultimap.java
* generated builder is equivalent to that returned by {@link #builder}, but may perform better if * {@code expectedKeys} is a good estimate. * * @throws IllegalArgumentException if {@code expectedKeys} is negative * @since 33.3.0 */ public static <K, V> Builder<K, V> builderWithExpectedKeys(int expectedKeys) { checkNonnegative(expectedKeys, "expectedKeys");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 27.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableSetMultimap.java
* generated builder is equivalent to that returned by {@link #builder}, but may perform better if * {@code expectedKeys} is a good estimate. * * @throws IllegalArgumentException if {@code expectedKeys} is negative * @since 33.3.0 */ public static <K, V> Builder<K, V> builderWithExpectedKeys(int expectedKeys) { checkNonnegative(expectedKeys, "expectedKeys");
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 26.2K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/AbstractPackageSanityTests.java
if (classToTest.getSimpleName().equals("ReflectionFreeAssertThrows")) { /* * These classes handle null properly but throw IllegalArgumentException for the default * Class argument that this test uses. Normally we'd fix that by declaring a * ReflectionFreeAssertThrowsTest with a testNulls method, but that's annoying to have to do
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Thu Oct 17 19:43:49 UTC 2024 - 17.9K bytes - Viewed (0)