- Sort Score
- Num 10 results
- Language All
Results 201 - 210 of 691 for IllegalArgumentException (0.11 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/release/QualifiedVersion.java
*/ public static QualifiedVersion of(final String s) { Objects.requireNonNull(s); Matcher matcher = pattern.matcher(s); if (matcher.matches() == false) { throw new IllegalArgumentException("Invalid version format: '" + s + "'. Should be " + pattern); } return new QualifiedVersion( Integer.parseInt(matcher.group(1)), Integer.parseInt(matcher.group(2)),Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Wed Sep 01 06:25:29 GMT 2021 - 5.9K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/CookieTest.kt
.name("a") .value("b") .domain("example.com") assertThrows<IllegalArgumentException> { cookieBuilder.sameSite(" a").build() } assertThrows<IllegalArgumentException> { cookieBuilder.sameSite("a ").build() } assertThrows<IllegalArgumentException> { cookieBuilder.sameSite(" a ").build() } cookieBuilder.sameSite("a").build() }
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Sat Nov 01 12:18:11 GMT 2025 - 24.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
assertThrows(IllegalArgumentException.class, () -> resetMap(entries)); } @MapFeature.Require(REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE}) public void testCreateWithDuplicates_nonNullDuplicatesRejected() { Entry<K, V>[] entries = getEntriesMultipleNonNullKeys(); assertThrows(IllegalArgumentException.class, () -> resetMap(entries)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.6K bytes - Click Count (0) -
android/guava/src/com/google/common/escape/Escaper.java
* <li>{@link UnicodeEscaper} handles <a href="http://en.wikipedia.org/wiki/UTF-16">UTF-16</a> * correctly, including surrogate character pairs. If the input is badly formed the escaper * should throw {@link IllegalArgumentException}. * <li>{@link CharEscaper} handles Java characters independently and does not verify the input * for well formed characters. A {@code CharEscaper} should not be used in situations where
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Feb 13 15:45:16 GMT 2025 - 4.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/ImmutableTypeToInstanceMapTest.java
assertThrows( IllegalArgumentException.class, () -> map.getInstance(this.<Number>anyIterableType())); } public void testPut_containsTypeVariable() { ImmutableTypeToInstanceMap.Builder<Iterable<Integer>> builder = ImmutableTypeToInstanceMap.builder(); assertThrows( IllegalArgumentException.class,
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Dec 19 18:03:30 GMT 2024 - 6.9K bytes - Click Count (0) -
src/test/java/jcifs/smb/StaticJAASConfigurationTest.java
} @Test @DisplayName("Null options cause IllegalArgumentException when retrieving entries (JAAS requires non-null options)") void nullOptions_throwOnAccess() { // Arrange StaticJAASConfiguration cfg = new StaticJAASConfiguration(null); // Act + Assert assertThrows(IllegalArgumentException.class, () -> cfg.getAppConfigurationEntry("any"),Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableRangeSet.java
// the range have a lower bound throw new IllegalArgumentException( "Neither the DiscreteDomain nor this range set are bounded below"); } else if (!span.hasUpperBound()) { try { domain.maxValue(); } catch (NoSuchElementException e) { throw new IllegalArgumentException( "Neither the DiscreteDomain nor this range set are bounded above"); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 27.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java
assertThrows(IllegalArgumentException.class, () -> resetMap(entries)); } @MapFeature.Require(REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE}) public void testCreateWithDuplicates_nonNullDuplicatesRejected() { Entry<K, V>[] entries = getEntriesMultipleNonNullKeys(); assertThrows(IllegalArgumentException.class, () -> resetMap(entries)); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 5.6K bytes - Click Count (0) -
guava/src/com/google/common/collect/TopKSelector.java
* relative to the natural ordering of the elements, and returns them via {@link #topK} in * ascending order. * * @throws IllegalArgumentException if {@code k < 0} or {@code k > Integer.MAX_VALUE / 2} */ public static <T extends Comparable<? super T>> TopKSelector<T> least(int k) { return least(k, Ordering.natural()); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 31 13:15:26 GMT 2025 - 11.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/InvokableTest.java
} public void testConstructor_invalidReturning() throws Exception { Invokable<?, Prepender> delegate = Prepender.constructor(String.class, int.class); assertThrows(IllegalArgumentException.class, () -> delegate.returning(SubPrepender.class)); } public void testStaticMethod_returnType() throws Exception { Invokable<?, ?> delegate = Prepender.method("prepend", String.class, Iterable.class);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 31.1K bytes - Click Count (0)