- Sort Score
- Num 10 results
- Language All
Results 421 - 430 of 863 for IllegalArgumentException (0.46 seconds)
-
android/guava/src/com/google/common/io/BaseEncoding.java
* inverse operation to {@link #encode(byte[])}. * * @throws IllegalArgumentException if the input is not a valid encoded string according to this * encoding. */ public final byte[] decode(CharSequence chars) { try { return decodeChecked(chars); } catch (DecodingException badInput) { throw new IllegalArgumentException(badInput); } } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 16:45:58 GMT 2026 - 41.6K bytes - Click Count (0) -
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/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) -
android/guava-testlib/src/com/google/common/collect/testing/DerivedCollectionGenerators.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 30 16:59:10 GMT 2025 - 18.2K 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) -
android/guava-tests/test/com/google/common/collect/EnumBiMapTest.java
/* Map must have at least one entry if not an EnumBiMap. */ assertThrows( IllegalArgumentException.class, () -> EnumBiMap.create(Collections.<Currency, Country>emptyMap())); assertThrows( IllegalArgumentException.class, () -> EnumBiMap.create(EnumHashBiMap.<Currency, Country>create(Currency.class))); /* Map can be empty if it's an EnumBiMap. */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 11.9K 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)