- Sort Score
- Num 10 results
- Language All
Results 521 - 530 of 3,804 for throws (0.05 seconds)
-
src/test/java/jcifs/dcerpc/DcerpcMessageTest.java
return opnumValue; } @Override public void encode_in(NdrBuffer buf) throws NdrException { // Simulate encoding some data buf.enc_ndr_long(12345); } @Override public void decode_out(NdrBuffer buf) throws NdrException { // Simulate decoding some data buf.dec_ndr_long(); } }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 18.3K bytes - Click Count (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/DelegatingServerSocketFactory.kt
*/ open class DelegatingServerSocketFactory( private val delegate: ServerSocketFactory, ) : ServerSocketFactory() { @Throws(IOException::class) override fun createServerSocket(): ServerSocket { val serverSocket = delegate.createServerSocket() return configureServerSocket(serverSocket) } @Throws(IOException::class) override fun createServerSocket(port: Int): ServerSocket {
Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 2K bytes - Click Count (0) -
src/test/java/jcifs/internal/fscc/FileStandardInfoTest.java
void testGetLastAccessTime() { assertEquals(0L, fileStandardInfo.getLastAccessTime()); } @Test @DisplayName("Test getSize returns endOfFile value") void testGetSize() throws SMBProtocolDecodingException { // Prepare test data byte[] buffer = new byte[22]; long expectedAllocationSize = 1024L; long expectedEndOfFile = 512L; int expectedNumberOfLinks = 3;
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 13.1K bytes - Click Count (0) -
guava/src/com/google/common/collect/SneakyThrows.java
* write {@code throw sneakyThrow(t);} to convince the compiler that the statement will always * throw. */ @CanIgnoreReturnValue static Error sneakyThrow(Throwable t) { throw new SneakyThrows<Error>().throwIt(t); } @SuppressWarnings("unchecked") // not really safe, but that's the point private Error throwIt(Throwable t) throws T { throw (T) t; } private SneakyThrows() {}Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Dec 30 18:44:22 GMT 2024 - 2.4K bytes - Click Count (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/legacy/DefaultUpdateCheckManagerTest.java
} @BeforeEach @Override public void setUp() throws Exception { super.setUp(); updateCheckManager = new DefaultUpdateCheckManager( new ConsoleLogger(Logger.LEVEL_DEBUG, "test"), new DefaultTrackingFileManager()); } @Test void testArtifact() throws Exception { ArtifactRepository remoteRepository = remoteRepository();Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Dec 16 13:41:14 GMT 2025 - 9K bytes - Click Count (0) -
src/main/java/org/codelibs/curl/io/ContentCache.java
* * @return the content as a byte array * @throws IOException if an I/O error occurs while reading the file */ public byte[] getContentAsBytes() throws IOException { if (data != null) { return data.clone(); } return Files.readAllBytes(file.toPath()); } @Override public void close() throws IOException { if (file != null) {Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 4.8K bytes - Click Count (0) -
src/test/java/org/codelibs/core/io/SerializeUtilTest.java
/** * @throws Exception */ public void testSerialize() throws Exception { final String[] a = new String[] { "1", "2" }; final String[] b = (String[]) SerializeUtil.serialize(a); assertEquals("1", b.length, a.length); assertEquals("2", "1", b[0]); assertEquals("3", "2", b[1]); } /** * @throws Exception */Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Sat Nov 22 11:21:59 GMT 2025 - 7.6K bytes - Click Count (0) -
impl/maven-cli/src/test/java/org/apache/maven/cling/invoker/mvnup/goals/StrategyOrchestratorTest.java
@DisplayName("should handle strategy exceptions gracefully") void shouldHandleStrategyExceptionsGracefully() throws Exception { UpgradeContext context = createMockContext(); Map<Path, Document> pomMap = Map.of(Paths.get("pom.xml"), mock(Document.class)); // Mock first strategy to throw exception when(mockStrategies.get(0).isApplicable(context)).thenReturn(true);Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Tue Nov 18 18:03:26 GMT 2025 - 12.3K bytes - Click Count (0) -
build-logic-commons/basics/src/main/kotlin/gradlebuild/basics/tasks/PackageListGenerator.kt
} }) } @Throws(IOException::class) private fun processJarFile(file: Path, builder: Trie.Builder) { IoActions.withResource(openJarFile(file), object : ErroringAction<ZipInputStream>() { @Throws(Exception::class) override fun doExecute(inputStream: ZipInputStream) {Created: Wed Apr 01 11:36:16 GMT 2026 - Last Modified: Fri Apr 11 15:53:18 GMT 2025 - 7.1K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/util/concurrent/FuturesTransformAsyncTest.java
break; case EXCEPTION_DATA: throw EXCEPTION; } return outputFuture; } } public void testFutureGetThrowsFunctionException() throws Exception { inputFuture.set(EXCEPTION_DATA); listener.assertException(EXCEPTION); } public void testFutureGetThrowsCancellationIfInputCancelled() throws Exception { inputFuture.cancel(true); // argument is ignoredCreated: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Mon Mar 16 22:45:21 GMT 2026 - 6.5K bytes - Click Count (0)