- Sort Score
- Num 10 results
- Language All
Results 1731 - 1740 of 2,310 for rethrow (2.16 seconds)
-
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
try { getList().subList(1, 0); fail("subList(1, 0) should throw"); } catch (IndexOutOfBoundsException expected) { } catch (IllegalArgumentException expected) { /* * The subList() docs claim that this should be an * IndexOutOfBoundsException, but many JDK implementations throw * IllegalArgumentException: * https://bugs.openjdk.org/browse/JDK-4506427 */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 13.5K bytes - Click Count (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
try { getList().subList(1, 0); fail("subList(1, 0) should throw"); } catch (IndexOutOfBoundsException expected) { } catch (IllegalArgumentException expected) { /* * The subList() docs claim that this should be an * IndexOutOfBoundsException, but many JDK implementations throw * IllegalArgumentException: * https://bugs.openjdk.org/browse/JDK-4506427 */Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Aug 07 16:05:33 GMT 2025 - 13.5K bytes - Click Count (0) -
android/guava-tests/test/com/google/common/cache/CacheBuilderTest.java
@Override public String load(String key) throws InterruptedException { int behavior = random.nextInt(4); if (behavior == 0) { // throw an exception exceptionCount.incrementAndGet(); throw new RuntimeException("fake exception for test"); } else if (behavior == 1) { // return null computeNullCount.incrementAndGet(); return null;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 25.7K bytes - Click Count (0) -
guava-tests/test/com/google/common/cache/CacheBuilderTest.java
@Override public String load(String key) throws InterruptedException { int behavior = random.nextInt(4); if (behavior == 0) { // throw an exception exceptionCount.incrementAndGet(); throw new RuntimeException("fake exception for test"); } else if (behavior == 1) { // return null computeNullCount.incrementAndGet(); return null;Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Wed Mar 18 18:06:14 GMT 2026 - 25.6K bytes - Click Count (0) -
src/main/java/jcifs/http/NetworkExplorer.java
sb.append(new String(buf, 0, n, "ISO8859_1")); } this.style = sb.toString(); } } catch (final IOException ioe) { throw new ServletException(ioe.getMessage()); } this.enableBasic = Config.getBoolean(p, "jcifs.http.enableBasic", false);
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 23.4K bytes - Click Count (0) -
src/test/java/org/codelibs/curl/io/ContentCacheTest.java
public void testMemoryBasedCacheClose() throws IOException { byte[] data = "Hello, World!".getBytes(); ContentCache cache = new ContentCache(data); // Memory-based cache close should not throw exception cache.close(); // Should still be able to get input stream after close for memory cache try (InputStream stream = cache.getInputStream()) { assertNotNull(stream);
Created: Thu Apr 02 15:34:12 GMT 2026 - Last Modified: Sat Mar 21 09:11:12 GMT 2026 - 15.9K bytes - Click Count (0) -
src/main/java/org/codelibs/core/io/ResourceUtil.java
assertArgumentNotEmpty("path", path); final URL url = getResourceNoException(path, extension); if (url != null) { return url; } throw new ResourceNotFoundRuntimeException(getResourcePath(path, extension)); } /** * Returns the resource from the context class loader. Returns <code>null</code> if not found. * * @param path
Created: Fri Apr 03 20:58:12 GMT 2026 - Last Modified: Thu Jul 31 08:16:49 GMT 2025 - 14.7K bytes - Click Count (0) -
src/main/java/jcifs/smb/SmbFileOutputStream.java
treq.setFileInformation(new FileEndOfFileInformation(0)); th.send(treq, RequestParam.NO_RETRY); } } } catch (final CIFSException e) { throw SmbException.wrap(e); } } SmbFileOutputStream(final SmbFile file, final SmbTreeHandleImpl th, final SmbFileHandleImpl handle, final int openFlags,
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 12.8K bytes - Click Count (0) -
okhttp-osgi-tests/src/test/kotlin/okhttp3/osgi/OsgiTest.kt
} } catch (e: IllegalArgumentException) { if ("Jar does not have a symbolic name" in e.message!!) { println("Skipped non-OSGi dependency: ${file.name}") return } throw e } } companion object { val fileSystem = FileSystem.SYSTEM /** Each is the Bundle-SymbolicName of an OkHttp module's OSGi configuration. */Created: Fri Apr 03 11:42:14 GMT 2026 - Last Modified: Wed Mar 19 19:25:20 GMT 2025 - 5K bytes - Click Count (0) -
src/main/java/jcifs/context/SingletonContext.java
*/ public static synchronized final void init(final Properties props) throws CIFSException { if (INSTANCE != null) { throw new CIFSException("Singleton context is already initialized"); } final Properties p = new Properties(); try { final String filename = System.getProperty("jcifs.properties");Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sat Aug 16 01:32:48 GMT 2025 - 4.3K bytes - Click Count (0)