- Sort Score
- Result 10 results
- Languages All
Results 61 - 70 of 752 for IllegalArgumentException (0.28 sec)
-
maven-core/src/main/java/org/apache/maven/internal/impl/Utils.java
import java.util.stream.Collectors; class Utils { static <T> T nonNull(T t) { if (t == null) { throw new IllegalArgumentException(); } return t; } static <T> T nonNull(T t, String name) { if (t == null) { throw new IllegalArgumentException(name + " cannot be null"); } return t; } static <T> T cast(Class<T> clazz, Object o, String name) {
Java - Registered: Sun Mar 24 03:35:10 GMT 2024 - Last Modified: Thu Dec 07 20:05:02 GMT 2023 - 1.7K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeResolverTest.java
public <T> void testWhere_incompatibleGenericArrayMapping() { assertThrows( IllegalArgumentException.class, () -> new TypeResolver().where(new TypeCapture<T[]>() {}.capture(), String.class)); } public <T> void testWhere_incompatibleParameterizedTypeMapping() { assertThrows( IllegalArgumentException.class, () -> new TypeResolver().where(new TypeCapture<Iterable<T>>() {}.capture(), List.class));
Java - Registered: Fri Apr 12 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 9.7K bytes - Viewed (0) -
okhttp/src/test/java/okhttp3/HeadersJvmTest.kt
} @Test fun addThrowsOnEmptyName() { assertFailsWith<IllegalArgumentException> { Headers.Builder().add(": bar") } assertFailsWith<IllegalArgumentException> { Headers.Builder().add(" : bar") } } @Test fun addThrowsOnNoColon() { assertFailsWith<IllegalArgumentException> { Headers.Builder().add("foo bar") } }
Plain Text - Registered: Fri May 03 11:42:14 GMT 2024 - Last Modified: Mon Jan 08 01:13:22 GMT 2024 - 5.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableBiMap.java
* Entries appear in the result {@code ImmutableBiMap} in encounter order. * * <p>If the mapped keys or values contain duplicates (according to {@link * Object#equals(Object)}), an {@code IllegalArgumentException} is thrown when the collection * operation is performed. (This differs from the {@code Collector} returned by {@link * Collectors#toMap(Function, Function)}, which throws an {@code IllegalStateException}.) *
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 22.4K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableMap.java
if (!safe) { throw conflictException(conflictDescription, entry1, entry2); } } static IllegalArgumentException conflictException( String conflictDescription, Object entry1, Object entry2) { return new IllegalArgumentException( "Multiple entries with same " + conflictDescription + ": " + entry1 + " and " + entry2); } /**
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 41.7K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableSortedMap.java
* elements. The generated map is sorted by the specified comparator. * * <p>If the mapped keys contain duplicates (according to the specified comparator), an {@code * IllegalArgumentException} is thrown when the collection operation is performed. (This differs * from the {@code Collector} returned by {@link Collectors#toMap(Function, Function)}, which * throws an {@code IllegalStateException}.) *
Java - Registered: Fri Apr 05 12:43:09 GMT 2024 - Last Modified: Thu Feb 22 21:19:52 GMT 2024 - 50.3K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/GraphsTest.java
// By default, parallel edges are not allowed. IllegalArgumentException e = assertThrows(IllegalArgumentException.class, () -> directedGraph.addEdge(N1, N2, E12_A)); assertThat(e.getMessage()).contains(ERROR_PARALLEL_EDGE); // By default, self-loop edges are not allowed. e = assertThrows(IllegalArgumentException.class, () -> directedGraph.addEdge(N1, N1, E11));
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 24.8K bytes - Viewed (0) -
android/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 be
Java - Registered: Fri May 03 12:43:13 GMT 2024 - Last Modified: Wed May 01 18:44:57 GMT 2024 - 5.7K bytes - Viewed (0) -
maven-api-impl/src/main/java/org/apache/maven/internal/impl/DefaultTransport.java
if (relativeSource.isAbsolute()) { throw new IllegalArgumentException("Supplied URI is not relative"); } URI source = baseURI.resolve(relativeSource); if (!source.toASCIIString().startsWith(baseURI.toASCIIString())) { throw new IllegalArgumentException("Supplied relative URI escapes baseUrl"); } GetTask getTask = new GetTask(source);
Java - Registered: Sun May 05 03:35:11 GMT 2024 - Last Modified: Thu May 02 16:33:18 GMT 2024 - 5.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/DefaultNetworkImplementationsTest.java
network.addNode(N1); network.addNode(N2); IllegalArgumentException e = assertThrows( IllegalArgumentException.class, () -> networkForTest.edgesConnecting(N1, NODE_NOT_IN_GRAPH)); assertNodeNotInGraphErrorMessage(e); e = assertThrows( IllegalArgumentException.class, () -> networkForTest.edgesConnecting(NODE_NOT_IN_GRAPH, N2));
Java - Registered: Fri Apr 19 12:43:09 GMT 2024 - Last Modified: Wed Sep 06 17:04:31 GMT 2023 - 7.4K bytes - Viewed (0)