- Sort Score
- Num 10 results
- Language All
Results 1491 - 1500 of 2,310 for rethrow (0.09 seconds)
-
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/StringWagon.java
resource.setLastModified(System.currentTimeMillis()); inputData.setInputStream(new ByteArrayInputStream(content.getBytes(StandardCharsets.UTF_8))); } else { throw new ResourceDoesNotExistException("No content provided for " + resource.getName()); } } @Override public void fillOutputData(OutputData outputData) throws TransferFailedException {
Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Oct 25 12:31:46 GMT 2024 - 3K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/ReserializingTestCollectionGenerator.java
out.writeObject(object); ObjectInputStream in = new ObjectInputStream(new ByteArrayInputStream(bytes.toByteArray())); return (T) in.readObject(); } catch (IOException | ClassNotFoundException e) { throw new AssertionError(e); } } @Override public SampleElements<E> samples() { return delegate.samples(); } @Override public E[] createArray(int length) {
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Jun 11 16:13:05 GMT 2024 - 2.4K bytes - Click Count (0) -
android/guava/src/com/google/common/collect/ImmutableAsList.java
@GwtIncompatible @J2ktIncompatible private static final long serialVersionUID = 0; } @GwtIncompatible @J2ktIncompatible private void readObject(ObjectInputStream stream) throws InvalidObjectException { throw new InvalidObjectException("Use SerializedForm"); } @GwtIncompatible @J2ktIncompatible @Override Object writeReplace() { return new SerializedForm(delegateCollection()); }Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Aug 09 01:14:59 GMT 2025 - 2.5K bytes - Click Count (0) -
android/guava/src/com/google/common/io/RecursiveDeleteOption.java
* @author Colin Decker */ @J2ktIncompatible @GwtIncompatible @J2ObjCIncompatible // java.nio.file public enum RecursiveDeleteOption { /** * Specifies that the recursive delete should not throw an exception when it can't be guaranteed * that it can be done securely, without vulnerability to race conditions (i.e. when the file * system does not support {@link SecureDirectoryStream}). *Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sat Dec 21 03:10:51 GMT 2024 - 2K bytes - Click Count (0) -
benchmarks/src/main/java/org/elasticsearch/common/bytes/BytesArrayReadLongBenchmark.java
for (int i = 0; i < bytes / 8; i++) { tmp.writeLong(i); } bytesArray = tmp.copyBytes(); if (bytesArray instanceof BytesArray == false) { throw new AssertionError("expected BytesArray but saw [" + bytesArray.getClass() + "]"); } streamInput = bytesArray.streamInput(); } @Benchmark public long readLong() throws IOException {
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
for (int i = 0; i < bytes / 8; i++) { tmp.writeLong(i); } pagedBytes = tmp.bytes(); if (pagedBytes instanceof PagedBytesReference == false) { throw new AssertionError("expected PagedBytesReference but saw [" + pagedBytes.getClass() + "]"); } this.streamInput = pagedBytes.streamInput(); } @Benchmark
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) -
src/test/java/jcifs/internal/smb2/tree/Smb2TreeDisconnectRequestTest.java
// Then assertEquals(4, bytesWritten); assertEquals(4, SMBUtil.readInt2(buffer, 0)); assertEquals(0, SMBUtil.readInt2(buffer, 2)); } @Test @DisplayName("Should throw exception when buffer too small") void testWriteBytesWireFormatBufferTooSmall() { // Given Configuration mockConfig = mock(Configuration.class);Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.1K bytes - Click Count (0) -
src/test/java/jcifs/smb/SmbWatchHandleImplTest.java
verify(handle, never()).markClosed(); verify(tree, never()).hasCapability(anyInt()); // not checked on SMB2 } // SMB1 path: without CAP_NT_SMBS it should throw SmbUnsupportedOperationException @Test @DisplayName("watch() SMB1 without capability throws unsupported") void watch_smb1_noCapability_throwsUnsupported() throws Exception {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 11.5K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/AbstractUpgradeGoalTest.java
// Mock successful strategy execution when(mockOrchestrator.executeStrategies(Mockito.any(), Mockito.any())) .thenReturn(UpgradeResult.empty()); // Should not throw exception even if .mvn creation fails int result = upgradeGoal.testExecuteWithTargetModel(context, "4.0.0"); // The exact behavior depends on implementation, but it should handle gracefullyCreated: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 13.7K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterIndexLifecycleTest.java
Suggester suggester = createSuggester(); suggester.createIndexIfNothing(); // Should not throw assertNotNull(suggester.refresh()); } @Test public void test_shutdown() throws Exception { Suggester suggester = createSuggester(); // Should not throw suggester.shutdown(); }
Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Sat Mar 14 02:35:38 GMT 2026 - 13.4K bytes - Click Count (0)