- Sort Score
- Num 10 results
- Language All
Results 1391 - 1400 of 2,684 for catch (0.02 seconds)
-
okhttp/src/jvmTest/kotlin/okhttp3/internal/http/ThreadInterruptTest.kt
.matchesPredicate { it == null || it is RejectedExecutionException } } private fun sleep(delayMillis: Int) { try { Thread.sleep(delayMillis.toLong()) } catch (e: InterruptedException) { Thread.currentThread().interrupt() } } private fun interruptLater(delayMillis: Int) { val toInterrupt = Thread.currentThread() val interruptingCow =Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Tue Nov 04 18:33:48 GMT 2025 - 6.4K bytes - Click Count (0) -
src/test/java/jcifs/util/transport/TransportExceptionTest.java
assertTrue(exception instanceof Throwable); // Test that it can be caught as CIFSException boolean caughtAsCIFSException = false; try { throw exception; } catch (CIFSException e) { caughtAsCIFSException = true; assertEquals(exception, e); } assertTrue(caughtAsCIFSException); } @Test
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 7.4K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/profiles/DefaultProfileManager.java
try { this.profileSelector = container.lookup(ProfileSelector.class); this.logger = ((MutablePlexusContainer) container).getLogger(); } catch (ComponentLookupException e) { throw new IllegalStateException(e); } this.requestProperties = props; } @Override public Properties getRequestProperties() {Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Fri Jun 06 14:28:57 GMT 2025 - 6.9K bytes - Click Count (0) -
compat/maven-compat/src/main/java/org/apache/maven/repository/metadata/DefaultGraphConflictResolver.java
res.addEdge(sourceV, newV, edge); } } return findLinkedSubgraph(res); } catch (MetadataResolutionException e) { throw new GraphConflictResolutionException(e); } } // -------------------------------------------------------------------------------------Created: Sun Apr 05 03:35:12 GMT 2026 - Last Modified: Wed Jul 23 17:27:08 GMT 2025 - 7.4K bytes - Click Count (0) -
guava-tests/test/com/google/common/hash/HashTestUtils.java
Assert.fail(); } catch (IndexOutOfBoundsException expected) { } try { hashFunction.hashBytes(new byte[128], 64, 256 /* too long len */); Assert.fail(); } catch (IndexOutOfBoundsException expected) { } try { hashFunction.hashBytes(new byte[64], 0, -1); Assert.fail(); } catch (IndexOutOfBoundsException expected) { } }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Oct 28 18:19:59 GMT 2025 - 25.6K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/mylasta/direction/sponsor/FessSecurityResourceProviderTest.java
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 13.2K bytes - Click Count (0) -
src/test/java/jcifs/smb1/smb1/BufferCacheSecurityTest.java
// Release buffer BufferCache.releaseBuffer(buffer); successCount.incrementAndGet(); } } catch (Exception e) { synchronized (exceptions) { exceptions.add(e); } } finally { endLatch.countDown(); }Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 31 08:00:57 GMT 2025 - 9.6K bytes - Click Count (0) -
src/test/java/jcifs/internal/smb1/net/NetServerEnum2Test.java
try { Field field = getField(obj.getClass(), fieldName); field.setAccessible(true); return field.get(obj); } catch (Exception e) { throw new RuntimeException("Failed to get field value: " + fieldName, e); } } private void setFieldValue(Object obj, String fieldName, Object value) throws Exception {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 19.7K bytes - Click Count (0) -
src/main/java/jcifs/ntlmssp/Type1Message.java
} pos += writeSecurityBufferContent(type1, pos, domOffOff, domain); pos += writeSecurityBufferContent(type1, pos, wsOffOff, workstation); return type1; } catch (final IOException ex) { throw new IllegalStateException(ex.getMessage()); } } @Override public String toString() {Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 07:14:38 GMT 2025 - 7.8K bytes - Click Count (0) -
src/test/java/jcifs/NetbiosNameTest.java
try { assertNotNull(NetbiosName.class.getMethod("getName")); assertNotNull(NetbiosName.class.getMethod("getScope")); assertNotNull(NetbiosName.class.getMethod("getNameType")); } catch (NoSuchMethodException e) { fail("Method not found: " + e.getMessage()); } } @Test @DisplayName("Should handle getName() method") void testGetName() { // GivenCreated: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 8K bytes - Click Count (0)