- Sort Score
- Num 10 results
- Language All
Results 341 - 350 of 676 for IllegalArgumentException (0.11 seconds)
The search processing time has exceeded the limit. The displayed results may be partial.
-
guava/src/com/google/common/collect/Maps.java
V value = values.next(); builder.put(keyFunction.apply(value), value); } try { return builder.buildOrThrow(); } catch (IllegalArgumentException duplicateKeys) { throw new IllegalArgumentException( duplicateKeys.getMessage() + ". To index multiple values under a key, use Multimaps.index."); } } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Apr 01 17:27:13 GMT 2026 - 163.4K bytes - Click Count (0) -
guava/src/com/google/common/cache/CacheBuilder.java
* avoids the need for expensive resizing operations later, but setting this value unnecessarily * high wastes memory. * * @return this {@code CacheBuilder} instance (for chaining) * @throws IllegalArgumentException if {@code initialCapacity} is negative * @throws IllegalStateException if an initial capacity was already set */ @CanIgnoreReturnValue public CacheBuilder<K, V> initialCapacity(int initialCapacity) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Feb 23 13:13:59 GMT 2026 - 51.7K bytes - Click Count (0) -
src/main/java/jcifs/smb/NtlmNtHashAuthenticator.java
super(domain, username, (String) null, AuthenticationType.USER); if (passwordHash == null || passwordHash.length != 16) { throw new IllegalArgumentException("Password hash must be provided, expected length 16 byte"); } this.ntHash = passwordHash; } /** * Create username/password credentials with specified domain *
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 2.6K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/benchmark/search/fetch/subphase/FetchSourcePhaseBenchmark.java
break; case "one_4m_field": sourceBytes = buildBigExample("huge".repeat(1024 * 1024)); break; default: throw new IllegalArgumentException("Unknown source [" + source + "]"); } fetchContext = new FetchSourceContext( true, Strings.splitStringByCommaToArray(includes),Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Sep 13 17:34:14 GMT 2021 - 5.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/MapMakerTest.java
* anywhere else */ public void testInitialCapacity_negative() { MapMaker maker = new MapMaker(); assertThrows(IllegalArgumentException.class, () -> maker.initialCapacity(-1)); } // TODO(cpovirk): enable when ready (apparently after a change to our GWT emulation) public void xtestInitialCapacity_setTwice() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 2.8K bytes - Click Count (0) -
guava-tests/test/com/google/common/reflect/ReflectionTest.java
assertThat(runnable.toString()).isEqualTo("x"); } public void testNewProxyCantWorkOnAClass() throws Exception { assertThrows( IllegalArgumentException.class, () -> Reflection.newProxy(Object.class, X_RETURNER)); } private static final InvocationHandler X_RETURNER = new InvocationHandler() { @Override
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 2.8K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/BaseGraph.java
* <li>{@code hashCode()} does not throw * <li>if {@code node} is re-added to the graph after having been removed, {@code view}'s * behavior is undefined * </ul> * * @throws IllegalArgumentException if {@code node} is not an element of this graph * @since 24.0 */ Set<EndpointPair<N>> incidentEdges(N node);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Nov 11 17:11:16 GMT 2025 - 2.9K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java
@CollectionSize.Require(SEVERAL) public void testSetValue_valuePresent() { for (Entry<K, V> entry : getMap().entrySet()) { if (entry.getKey().equals(k0())) { assertThrows(IllegalArgumentException.class, () -> entry.setValue(v1())); } } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/BiMapEntrySetTester.java
@CollectionSize.Require(SEVERAL) public void testSetValue_valuePresent() { for (Entry<K, V> entry : getMap().entrySet()) { if (entry.getKey().equals(k0())) { assertThrows(IllegalArgumentException.class, () -> entry.setValue(v1())); } } expectUnchanged(); } @MapFeature.Require(value = SUPPORTS_PUT, absent = ALLOWS_NULL_VALUES) @CollectionSize.Require(absent = ZERO)
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/idn/IdnaMappingTableTest.kt
assertThat("⑴".map()).isEqualTo("(1)") } @Test fun outOfBounds() { assertFailsWith<IllegalArgumentException> { table.map(-1, Buffer()) } table.map(0, Buffer()) // Lowest legal code point. table.map(0x10ffff, Buffer()) // Highest legal code point. assertFailsWith<IllegalArgumentException> { table.map(0x110000, Buffer()) } } @Test fun binarySearchEvenSizedRange() {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Fri Dec 27 13:39:56 GMT 2024 - 8.9K bytes - Click Count (0)