- Sort Score
- Num 10 results
- Language All
Results 211 - 220 of 863 for IllegalArgumentException (0.19 seconds)
-
okhttp/src/commonJvmAndroid/kotlin/okhttp3/CertificatePinner.kt
} this.pattern = pattern.toCanonicalHost() ?: throw IllegalArgumentException("Invalid pattern: $pattern") when { pin.startsWith("sha1/") -> { this.hashAlgorithm = "sha1" this.hash = pin.substring("sha1/".length).decodeBase64() ?: throw IllegalArgumentException("Invalid pin hash: $pin") } pin.startsWith("sha256/") -> {Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Jan 27 09:00:39 GMT 2026 - 14.2K bytes - Click Count (1) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ProjectManager.java
* then the behavior depends on the {@code ProjectManager} implementation. * It may do nothing or thrown {@linkplain IllegalArgumentException}. * * @param project the project to update * @param source the source to add * @throws IllegalArgumentException if this project manager rejects the given source because of conflict * * @see #getSourceRoots(Project) */Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Thu Jan 30 23:29:13 GMT 2025 - 12K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/primitives/IntsTest.java
assertThat(Ints.ensureCapacity(ARRAY1, 2, 1)).isEqualTo(new int[] {(int) 1, (int) 0, (int) 0}); } public void testEnsureCapacity_fail() { assertThrows(IllegalArgumentException.class, () -> Ints.ensureCapacity(ARRAY1, -1, 1)); assertThrows(IllegalArgumentException.class, () -> Ints.ensureCapacity(ARRAY1, 1, -1)); } public void testJoin() { assertThat(Ints.join(",", EMPTY)).isEmpty();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Mar 08 01:43:32 GMT 2026 - 29.4K bytes - Click Count (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/ArtifactFactory.java
/** * Creates an artifact. * * @param request the request holding artifact creation parameters * @return an {@code Artifact}, never {@code null} * @throws IllegalArgumentException if {@code request} is null or {@code request.session} is null or invalid */ @Nonnull Artifact create(@Nonnull ArtifactFactoryRequest request); @Nonnull default Artifact create(Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Aug 27 21:13:34 GMT 2024 - 3.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
* * <p>The returned multiset is serializable if the input map is. * * @param countMap backing map for storing the elements in the multiset and their counts. It must * be empty. * @throws IllegalArgumentException if {@code countMap} is not empty * @since 20.0 */ public static <E> ConcurrentHashMultiset<E> create(ConcurrentMap<E, AtomicInteger> countMap) {Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 22.3K bytes - Click Count (0) -
android/guava/src/com/google/common/graph/Traverser.java
* } * * <p>See <a href="https://en.wikipedia.org/wiki/Breadth-first_search">Wikipedia</a> for more * info. * * @throws IllegalArgumentException if {@code startNode} is not an element of the graph */ public final Iterable<N> breadthFirst(N startNode) { return breadthFirst(ImmutableSet.of(startNode)); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 11 01:10:31 GMT 2026 - 19.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java
* is, the first call to {@link #next()} will return the first element (or throw {@link * NoSuchElementException} if {@code size} is zero). * * @throws IllegalArgumentException if {@code size} is negative */ protected AbstractIndexedListIterator(int size) { this(size, 0); } /**Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.2K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/ArtifactTransferEvent.java
* @throws IllegalArgumentException when */ public void setRequestType(final int requestType) { switch (requestType) { case REQUEST_PUT: break; case REQUEST_GET: break; default: throw new IllegalArgumentException("Illegal request type: " + requestType); }Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 7.7K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/suggest/settings/AnalyzerSettings.java
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sun Feb 01 12:48:24 GMT 2026 - 24.4K bytes - Click Count (0) -
src/test/java/jcifs/util/SecureCredentialStorageTest.java
@Test public void testNullMasterPassword() { assertThrows(IllegalArgumentException.class, () -> { new SecureCredentialStorage(null); }, "Should throw IllegalArgumentException for null master password"); } @Test public void testEmptyMasterPassword() { assertThrows(IllegalArgumentException.class, () -> { new SecureCredentialStorage(new char[0]);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 12.7K bytes - Click Count (0)