- Sort Score
- Result 10 results
- Languages All
Results 571 - 580 of 628 for IllegalArgumentException (0.12 sec)
-
guava/src/com/google/common/io/ByteStreams.java
* resizing. * * @throws IllegalArgumentException if {@code size} is negative */ @J2ktIncompatible public static ByteArrayDataOutput newDataOutput(int size) { // When called at high frequency, boxing size generates too much garbage, // so avoid doing that if we can. if (size < 0) { throw new IllegalArgumentException(String.format("Invalid size: %s", size)); }Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Jul 17 15:26:41 UTC 2025 - 31.1K bytes - Viewed (0) -
guava-tests/test/com/google/common/reflect/TypeTokenSubtypeTest.java
public void testGetSubtypeOf_impossibleWildcard() { TypeToken<List<? extends Number>> numberList = new TypeToken<List<? extends Number>>() {}; abstract class StringList implements List<String> {} assertThrows(IllegalArgumentException.class, () -> numberList.getSubtype(StringList.class)); } private static class OwnerTypeSubtypingTests extends SubtypeTester { @TestSubtype public Mall<Outdoor>.Shop<Electronics> innerTypeIsSubtype(
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 20.4K bytes - Viewed (0) -
android/guava/src/com/google/common/eventbus/EventBus.java
} /** * Unregisters all subscriber methods on a registered {@code object}. * * @param object object whose subscriber methods should be unregistered. * @throws IllegalArgumentException if the object was not previously registered. */ public void unregister(Object object) { subscribers.unregister(object); } /**Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 12.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/util/SuggestUtilTest.java
assertNotNull(resultList); assertEquals(3, resultList.size()); assertEquals(originalList, resultList); } @Test(expected = IllegalArgumentException.class) public void testGetAsListWithInvalidType() { // Test with invalid type (should throw exception) SuggestUtil.getAsList(123); } @Test
Registered: Fri Sep 19 09:08:11 UTC 2025 - Last Modified: Mon Sep 01 13:33:03 UTC 2025 - 18.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactHashSet.java
* @return a new, empty {@code CompactHashSet} with enough capacity to hold {@code expectedSize} * elements without resizing * @throws IllegalArgumentException if {@code expectedSize} is negative */ public static <E extends @Nullable Object> CompactHashSet<E> createWithExpectedSize( int expectedSize) { return new CompactHashSet<>(expectedSize); }Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 23.9K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb1/ServerMessageBlockTest.java
void testSetResponseWithInvalidType() { CommonServerMessageBlockResponse invalidResponse = mock(CommonServerMessageBlockResponse.class); assertThrows(IllegalArgumentException.class, () -> { testBlock.setResponse(invalidResponse); }); } @Test @DisplayName("Test ignore disconnect") void testIgnoreDisconnect() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 36.2K bytes - Viewed (0) -
api/maven-api-settings/src/main/mdo/settings.mdo
} else if (!(USER_LEVEL.equals(sourceLevel) || PROJECT_LEVEL.equals(sourceLevel) || GLOBAL_LEVEL.equals(sourceLevel))) { throw new IllegalArgumentException("sourceLevel must be one of: {" + USER_LEVEL + "," + PROJECT_LEVEL + "," + GLOBAL_LEVEL + "}"); } else { this.sourceLevel = sourceLevel; this.sourceLevelSet = true; } }
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Sun May 18 09:15:56 UTC 2025 - 33.8K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2EncryptionContextTest.java
testEncryptionKey, testDecryptionKey); // When/Then assertThrows(IllegalArgumentException.class, () -> context.encryptMessage(null, 123456L), "Should throw IllegalArgumentException for null message"); } @Test @DisplayName("Should successfully encrypt and decrypt with refactored methods")Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 44.1K bytes - Viewed (0) -
src/main/java/jcifs/smb1/UniAddress.java
* <code>NbtAddress</code>. * * @param addr the address to wrap */ public UniAddress(final Object addr) { if (addr == null) { throw new IllegalArgumentException(); } this.addr = addr; } /** * Return the IP address of this address as a 32 bit integer. */ @Override public int hashCode() {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 17K bytes - Viewed (0) -
api/maven-api-core/src/main/java/org/apache/maven/api/services/DependencyResolverRequest.java
this.repositories = repositories; if (verbose && requestType != RequestType.COLLECT) { throw new IllegalArgumentException("verbose cannot only be true when collecting dependencies"); } } @Nonnull @Override public RequestType getRequestType() {Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Feb 07 00:45:02 UTC 2025 - 20.8K bytes - Viewed (0)