- Sort Score
- Num 10 results
- Language All
Results 661 - 670 of 863 for IllegalArgumentException (0.56 seconds)
-
android/guava/src/com/google/common/collect/RangeMap.java
* * <p>The returned range map supports all optional operations that this range map supports, except * for {@code asMapOfRanges().iterator().remove()}. * * <p>The returned range map will throw an {@link IllegalArgumentException} on an attempt to * insert a range not {@linkplain Range#encloses(Range) enclosed} by {@code range}. */ // TODO(cpovirk): Consider documenting that IAE on the various methods that can throw it.Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/io/Smb2WriteRequestTest.java
byte[] largeData = new byte[1000]; request.setData(largeData, 0, largeData.length); byte[] smallBuffer = new byte[100]; IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, () -> request.writeBytesWireFormat(smallBuffer, 0)); assertTrue(exception.getMessage().contains("Data exceeds buffer size")); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 22.4K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/ImmutableListTest.java
ImmutableList.Builder<String> builder = ImmutableList.builder(); for (int i = 0; i < 100; i++) { builder.add("a"); } IllegalArgumentException expected = assertThrows( IllegalArgumentException.class, () -> builder.addAll(nCopies(Integer.MAX_VALUE - 50, "a"))); assertThat(expected) .hasMessageThat()
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.4K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/rdma/SmbDirectNegotiateResponse.java
* @return decoded response */ public static SmbDirectNegotiateResponse decode(byte[] data, int offset) { if (data.length - offset < 32) { throw new IllegalArgumentException("Invalid SMB Direct Negotiate Response length"); } SmbDirectNegotiateResponse response = new SmbDirectNegotiateResponse(); int idx = offset;Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:12:28 GMT 2025 - 9.3K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/collect/AbstractTableReadTest.java
/** * Creates a table with the specified data. * * @param data the table data, repeating the sequence row key, column key, value once per mapping * @throws IllegalArgumentException if the size of {@code data} isn't a multiple of 3 * @throws ClassCastException if a data element has the wrong type */ protected abstract Table<String, Integer, C> create(@Nullable Object... data);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Mar 12 17:47:10 GMT 2026 - 6.6K bytes - Click Count (0) -
.teamcity/scripts/CheckBadMerge.java
Objects.requireNonNull(command, "command"); if (command.length == 0) { throw new IllegalArgumentException("command must not be empty"); } ProcessBuilder pb = new ProcessBuilder(command); Process process = pb.start();
Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Mon Mar 30 16:25:09 GMT 2026 - 9K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/CompactHashing.java
static Object createTable(int buckets) { if (buckets < 2 || buckets > Ints.MAX_POWER_OF_TWO || Integer.highestOneBit(buckets) != buckets) { throw new IllegalArgumentException("must be power of 2 between 2^1 and 2^30: " + buckets); } if (buckets <= BYTE_MAX_SIZE) { return new byte[buckets]; } else if (buckets <= SHORT_MAX_SIZE) { return new short[buckets];
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Dec 26 20:08:09 GMT 2025 - 7.1K bytes - Click Count (0) -
build-conventions/src/main/java/org/elasticsearch/gradle/internal/conventions/precommit/LicenseHeadersTask.java
*/ public void additionalLicense(final String categoryName, String familyName, String pattern) { if (categoryName.length() != 5) { throw new IllegalArgumentException("License category name must be exactly 5 characters, got " + categoryName); } additionalLicenses.put(categoryName + familyName, pattern); } @TaskActionCreated: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Thu Sep 09 18:53:35 GMT 2021 - 10.6K bytes - Click Count (0) -
src/main/java/jcifs/smb1/util/DES.java
*/ public byte[] encrypt(final byte[] clearText) { final int length = clearText.length; if (length % 8 != 0) { // DES requires 8-byte blocks throw new IllegalArgumentException("Array must be a multiple of 8 bytes for DES encryption"); } final byte[] cipherText = new byte[length]; final int count = length / 8; for (int i = 0; i < count; i++) {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 22.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/collect/ImmutableMultisetTest.java
} public void testBuilderAddCopiesIllegal() { ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder(); assertThrows(IllegalArgumentException.class, () -> builder.addCopies("a", -2)); } public void testBuilderSetCountHandlesNullsCorrectly() { ImmutableMultiset.Builder<String> builder = ImmutableMultiset.builder();
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 24.9K bytes - Click Count (0)