- Sort Score
- Num 10 results
- Language All
Results 181 - 190 of 863 for IllegalArgumentException (0.15 seconds)
-
android/guava-tests/test/com/google/common/collect/ImmutableBiMapTest.java
new Builder<String, Integer>() .put("one", 1) .put("one", 1); // throwing on this line would be even better IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> builder.build()); assertThat(expected).hasMessageThat().contains("one"); } public void testOf() { assertMapEquals(ImmutableBiMap.of("one", 1), "one", 1);
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 21.4K bytes - Click Count (0) -
guava/src/com/google/common/collect/MoreCollectors.java
ToOptionalState::getOptional, Collector.Characteristics.UNORDERED); /** * A collector that converts a stream of zero or one elements to an {@code Optional}. * * @throws IllegalArgumentException if the stream consists of two or more elements. * @throws NullPointerException if any element in the stream is {@code null}. * @return {@code Optional.of(onlyElement)} if the stream has exactly one element (must not beCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Feb 18 16:22:33 GMT 2026 - 6.1K bytes - Click Count (0) -
impl/maven-core/src/main/java/org/apache/maven/internal/impl/DefaultProjectBuilder.java
throws ProjectBuilderException, IllegalArgumentException { InternalSession session = InternalSession.from(request.getSession()); return session.request(request, this::doBuild); } protected ProjectBuilderResult doBuild(ProjectBuilderRequest request) throws ProjectBuilderException, IllegalArgumentException {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Sat Sep 13 09:44:11 GMT 2025 - 8.8K bytes - Click Count (0) -
okhttp/src/jvmTest/kotlin/okhttp3/WebPlatformUrlTestData.kt
"pass" -> password = value "h" -> host = value "port" -> port = value "p" -> path = value "q" -> query = value "f" -> fragment = value else -> throw IllegalArgumentException("unexpected attribute: $value") } } override fun toString(): String = format("Parsing: <%s> against <%s>", input!!, base!!) companion object {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 3.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/escape/UnicodeEscaperTest.java
} public void testTrailingHighSurrogate() { String test = "abc" + Character.MIN_HIGH_SURROGATE; assertThrows(IllegalArgumentException.class, () -> escapeAsString(NOP_ESCAPER, test)); assertThrows(IllegalArgumentException.class, () -> escapeAsString(SIMPLE_ESCAPER, test)); } @SuppressWarnings("nullness") // test of bogus call public void testNullInput() {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 05:21:26 GMT 2026 - 6K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/ImmutableGraph.java
* silently {@link #addNode(Object) add} each missing endpoint to the graph. * * @return this {@code Builder} object * @throws IllegalArgumentException if the introduction of the edge would violate {@link * #allowsSelfLoops()} * @throws IllegalArgumentException if the endpoints are unordered and the graph is directed */ @CanIgnoreReturnValue public Builder<N> putEdge(EndpointPair<N> endpoints) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 7.2K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java
@CollectionSize.Require(absent = {ZERO, ONE}) public void testCreateWithDuplicates_nullDuplicatesRejected() { E[] array = createArrayWithNullElement(); array[0] = null; assertThrows( IllegalArgumentException.class, () -> collection = getSubjectGenerator().create(array)); } @CollectionFeature.Require(REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE})
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/SetCreationTester.java
@CollectionSize.Require(absent = {ZERO, ONE}) public void testCreateWithDuplicates_nullDuplicatesRejected() { E[] array = createArrayWithNullElement(); array[0] = null; assertThrows( IllegalArgumentException.class, () -> collection = getSubjectGenerator().create(array)); } @CollectionFeature.Require(REJECTS_DUPLICATES_AT_CREATION) @CollectionSize.Require(absent = {ZERO, ONE})
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Nov 14 23:40:07 GMT 2024 - 3.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/Smb2TransformHeader.java
} else if (nonce.length == 16) { // For GCM cipher, use full 16-byte nonce System.arraycopy(nonce, 0, this.nonce, 0, 16); } else { throw new IllegalArgumentException("Nonce must be 12 bytes (CCM) or 16 bytes (GCM)"); } this.originalMessageSize = originalMessageSize; this.flags = flags; this.sessionId = sessionId; } /**
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 9.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/base/SplitterTest.java
} public void testFixedLengthSplitZeroChunkLen() { assertThrows(IllegalArgumentException.class, () -> Splitter.fixedLength(0)); } public void testFixedLengthSplitNegativeChunkLen() { assertThrows(IllegalArgumentException.class, () -> Splitter.fixedLength(-1)); } public void testLimitLarge() { String simple = "abcd";
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 15:59:55 GMT 2026 - 29.7K bytes - Click Count (0)