- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 628 for IllegalArgumentException (0.19 sec)
-
android/guava-tests/test/com/google/common/primitives/CharsTest.java
.isEqualTo(new char[] {(char) 1, (char) 0, (char) 0}); } public void testEnsureCapacity_fail() { assertThrows(IllegalArgumentException.class, () -> Chars.ensureCapacity(ARRAY1, -1, 1)); assertThrows(IllegalArgumentException.class, () -> Chars.ensureCapacity(ARRAY1, 1, -1)); } public void testJoin() { assertThat(Chars.join(",", EMPTY)).isEmpty();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 25.9K bytes - Viewed (0) -
guava-tests/benchmark/com/google/common/util/concurrent/MonitorBasedArrayBlockingQueue.java
* are processed in FIFO order; if {@code false} the access order is unspecified. * @throws IllegalArgumentException if {@code capacity} is less than 1 */ public MonitorBasedArrayBlockingQueue(int capacity, boolean fair) { if (capacity <= 0) throw new IllegalArgumentException(); this.items = newEArray(capacity); monitor = new Monitor(fair); notEmpty =Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 22.4K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/helper/EncodingHelper.java
* * @param defaultEncoding the default encoding to set * @throws IllegalArgumentException if the default encoding is blank */ public void setDefaultEncoding(final String defaultEncoding) { if (StringUtil.isBlank(defaultEncoding)) { throw new IllegalArgumentException("Default encoding must not be blank."); } this.defaultEncoding = defaultEncoding; }Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Sun Jul 06 02:13:03 UTC 2025 - 3.2K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/Smb2SigningDigestTest.java
} @Test @DisplayName("Should throw exception for SMB 3.1.1 without preauth hash") void testConstructorSmb311WithoutPreauthHash() { IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> new Smb2SigningDigest(sessionKey, Smb2Constants.SMB2_DIALECT_0311, null));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 43.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/crawler/serializer/DataSerializer.java
* Supported types are Kryo and JavaBin serialization. * </p> * * @param obj the object to serialize * @return the serialized object as a byte array * @throws IllegalArgumentException if an unsupported serializer type is configured * @throws IORuntimeException if an I/O error occurs during serialization */ public byte[] fromObjectToBinary(final Object obj) {Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 6.1K bytes - Viewed (3) -
android/guava-tests/test/com/google/common/net/PercentEscaperTest.java
/** * Tests that specifying any alphanumeric characters as 'safe' causes an {@link * IllegalArgumentException}. */ public void testBadArguments_badchars() { String msg = "Alphanumeric characters are always 'safe' and should not be explicitly specified"; IllegalArgumentException expected = assertThrows(IllegalArgumentException.class, () -> new PercentEscaper("-+#abc.!", false));
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 20:34:52 UTC 2025 - 5.3K bytes - Viewed (0) -
guava/src/com/google/common/net/InetAddresses.java
if (b != (byte) 0xff) { return false; } } return true; } private static IllegalArgumentException formatIllegalArgumentException( String format, Object... args) { return new IllegalArgumentException(String.format(Locale.ROOT, format, args)); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 47.4K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/lease/Smb2LeaseKey.java
* * @param key 16-byte array * @throws IllegalArgumentException if key is not 16 bytes */ public Smb2LeaseKey(byte[] key) { if (key == null) { throw new IllegalArgumentException("Lease key cannot be null"); } if (key.length != LEASE_KEY_SIZE) { throw new IllegalArgumentException("Lease key must be 16 bytes, got " + key.length); }Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 00:16:17 UTC 2025 - 3.3K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashCodeTest.java
assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("")); assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7")); HashCode unused = HashCode.fromString("7f"); } public void testFromStringFailsWithOddLengthInput() { assertThrows(IllegalArgumentException.class, () -> HashCode.fromString("7f8")); } public void testIntWriteBytesTo() { byte[] dest = new byte[4];
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 13.1K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/RequestCommonTest.kt
val builder = Request.Builder() assertFailsWith<IllegalArgumentException> { builder.header(s, "Value") } assertFailsWith<IllegalArgumentException> { builder.addHeader(s, "Value") } assertFailsWith<IllegalArgumentException> { builder.header("Name", s) } assertFailsWith<IllegalArgumentException> { builder.addHeader("Name", s) } } @Test
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 10.8K bytes - Viewed (0)