- Sort Score
- Num 10 results
- Language All
Results 601 - 610 of 863 for IllegalArgumentException (0.28 seconds)
-
build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ForbiddenPatternsTask.java
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Tue Jun 01 09:19:30 GMT 2021 - 6.8K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
} public void testBuilderAddCopiesIllegal() { ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder(); assertThrows(IllegalArgumentException.class, () -> builder.addCopies("a", -2)); } public void testBuilderSetCountHandlesNullsCorrectly() { ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 20.8K bytes - Click Count (0) -
guava/src/com/google/common/base/Suppliers.java
* @param duration the length of time after a value is created that it should stop being returned * by subsequent {@code get()} calls * @param unit the unit that {@code duration} is expressed in * @throws IllegalArgumentException if {@code duration} is not positive * @since 2.0 */ @SuppressWarnings("GoodTime") // Prefer the Duration overload public static <T extends @Nullable Object> Supplier<T> memoizeWithExpiration(Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 31 21:24:28 GMT 2026 - 16.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/RegularImmutableTable.java
? new DenseImmutableTable<R, C, V>(cellList, rowSpace, columnSpace) : new SparseImmutableTable<R, C, V>(cellList, rowSpace, columnSpace); } /** * @throws IllegalArgumentException if {@code existingValue} is not null. */ /* * We could have declared this method 'static' but the additional compile-time checks achieved by * referencing the type variables seem worthwhile. */
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Sep 22 21:07:18 GMT 2025 - 7K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/HttpUrlTest.kt
fun setPathSegmentRejectsDot() { val base = parse("http://host/a/b/c") assertFailsWith<IllegalArgumentException> { base.newBuilder().setPathSegment(0, ".") } } @Test fun setPathSegmentRejectsDotDot() { val base = parse("http://host/a/b/c") assertFailsWith<IllegalArgumentException> { base.newBuilder().setPathSegment(0, "..") } } @Test
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Mon Aug 04 07:38:48 GMT 2025 - 69.9K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/persistent/HandleInfo.java
* @param newFileId the new 16-byte file ID */ public void updateFileId(byte[] newFileId) { if (newFileId.length != 16) { throw new IllegalArgumentException("File ID must be 16 bytes"); } System.arraycopy(newFileId, 0, this.fileId, 0, 16); } @Override public String toString() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 23 02:21:31 GMT 2025 - 5.9K bytes - Click Count (0) -
guava/src/com/google/common/collect/Iterables.java
* <p><b>Java 8+ users:</b> the {@code Stream} equivalent to this method is {@code * stream.collect(MoreCollectors.onlyElement())}. * * @throws NoSuchElementException if the iterable is empty * @throws IllegalArgumentException if the iterable contains multiple elements */ @ParametricNullness public static <T extends @Nullable Object> T getOnlyElement(Iterable<T> iterable) { return Iterators.getOnlyElement(iterable.iterator());Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 16:16:42 GMT 2026 - 43.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/exception/GsaConfigExceptionTest.java
} @Test public void test_constructorWithNullMessageAndValidCause() { // Test constructor with null message and valid cause Throwable cause = new IllegalArgumentException("Invalid argument"); GsaConfigException exception = new GsaConfigException(null, cause); assertNotNull(exception); assertNull(exception.getMessage());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 7.5K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java
* @return a new, empty {@code ObjectCountLinkedHashMap} with enough capacity to hold {@code * expectedSize} elements without resizing * @throws IllegalArgumentException if {@code expectedSize} is negative */ static <K extends @Nullable Object> ObjectCountLinkedHashMap<K> createWithExpectedSize( int expectedSize) { return new ObjectCountLinkedHashMap<K>(expectedSize);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 5.9K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java
assertFalse(overlaps); mutable.add(range); } catch (IllegalArgumentException e) { assertTrue(overlaps); continue subsets; } } if (anyOverlaps) { assertThrows(IllegalArgumentException.class, () -> ImmutableRangeSet.copyOf(subset)); } else { RangeSet<Integer> copy = ImmutableRangeSet.copyOf(subset);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Jan 25 16:19:30 GMT 2025 - 21.7K bytes - Click Count (0)