- Sort Score
- Num 10 results
- Language All
Results 921 - 930 of 3,637 for throwIf (0.63 seconds)
-
src/test/java/jcifs/internal/smb1/trans/TransCallNamedPipeResponseTest.java
} } @Test void testReadDataWireFormatWithEmptyData() throws SMBProtocolDecodingException { byte[] buffer = new byte[100]; int result = response.readDataWireFormat(buffer, 0, 0); assertEquals(0, result); } @Test void testReadDataWireFormatAtBufferBoundary() throws SMBProtocolDecodingException { // Test with data exactly matching output buffer sizeCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8.8K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/common/bytes/BytesArrayReadLongBenchmark.java
@Setup public void initResults() throws IOException { final BytesStreamOutput tmp = new BytesStreamOutput(); final long bytes = new ByteSizeValue(dataMb, ByteSizeUnit.MB).getBytes(); for (int i = 0; i < bytes / 8; i++) { tmp.writeLong(i); } bytesArray = tmp.copyBytes(); if (bytesArray instanceof BytesArray == false) {Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Apr 12 20:25:06 GMT 2021 - 2.3K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/common/bytes/PagedBytesReferenceReadLongBenchmark.java
pagedBytes = tmp.bytes(); if (pagedBytes instanceof PagedBytesReference == false) { throw new AssertionError("expected PagedBytesReference but saw [" + pagedBytes.getClass() + "]"); } this.streamInput = pagedBytes.streamInput(); } @Benchmark public long readLong() throws IOException { long res = 0L; streamInput.reset(); final int reads = pagedBytes.length() / 8;
Created: Wed Apr 08 16:19:15 GMT 2026 - Last Modified: Mon Apr 12 20:25:06 GMT 2021 - 2.3K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/MinMaxPriorityQueue.java
} /** * Removes and returns the greatest element of this queue. * * @throws NoSuchElementException if the queue is empty */ @CanIgnoreReturnValue public E removeLast() { if (isEmpty()) { throw new NoSuchElementException(); } return removeAndGet(getMaxElementIndex()); } /**
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 13:11:08 GMT 2026 - 34K bytes - Click Count (0) -
guava/src/com/google/common/cache/AbstractLoadingCache.java
@Override public V getUnchecked(K key) { try { return get(key); } catch (ExecutionException e) { throw new UncheckedExecutionException(e.getCause()); } } @Override public ImmutableMap<K, V> getAll(Iterable<? extends K> keys) throws ExecutionException { Map<K, V> result = new LinkedHashMap<>(); for (K key : keys) { if (!result.containsKey(key)) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 03 12:40:22 GMT 2026 - 2.8K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb2/session/Smb2LogoffResponseTest.java
@ParameterizedTest @ValueSource(ints = { 0, 1, 5, 10 }) @DisplayName("Reads structure size 4 and returns 4 for various start indexes") void returnsFour_whenStructureSizeIsFour(int start) throws Exception { // Arrange: build a buffer that has the little-endian value 4 at 'start' int len = start + 2; // need at least two bytes from start byte[] buffer = new byte[len + 3];Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 4.7K bytes - Click Count (0) -
impl/maven-cli/src/main/java/org/apache/maven/cling/invoker/mvnenc/goals/Init.java
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jun 11 13:14:09 GMT 2025 - 12K bytes - Click Count (0) -
src/main/java/jcifs/util/SecureKeyManager.java
* * @param sessionId the session ID * @return the new key version number * @throws GeneralSecurityException if rotation fails */ public int rotateSessionKey(String sessionId) throws GeneralSecurityException { checkNotClosed(); if (!sessionKeys.containsKey(sessionId)) { throw new IllegalArgumentException("Session key not found: " + sessionId); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 30 05:58:03 GMT 2025 - 21.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/MinimalIterable.java
this.iterator = iterator; } @Override public Iterator<E> iterator() { if (iterator == null) { // TODO: throw something else? Do we worry that people's code and tests // might be relying on this particular type of exception? throw new IllegalStateException(); } try { return iterator; } finally { iterator = null; } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Dec 22 03:38:46 GMT 2024 - 3.1K bytes - Click Count (0) -
guava-tests/test/com/google/common/util/concurrent/UninterruptiblesTest.java
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 38.1K bytes - Click Count (0)