- Sort Score
- Result 10 results
- Languages All
Results 391 - 400 of 1,808 for try (0.04 sec)
-
src/main/java/org/codelibs/core/io/WriterUtil.java
*/ public static Writer create(final OutputStream os, final String encoding) { assertArgumentNotNull("os", os); assertArgumentNotEmpty("encoding", encoding); try { return new OutputStreamWriter(os, encoding); } catch (final IOException e) { throw new IORuntimeException(e); } } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/multichannel/ChannelManager.java
/** * Remove a channel * * @param channel channel to remove */ public void removeChannel(ChannelInfo channel) { channels.remove(channel.getChannelId()); try { if (channel.getTransport() != null) { channel.getTransport().close(); } } catch (Exception e) { log.debug("Error disconnecting removed channel", e);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 21 11:13:46 UTC 2025 - 20K bytes - Viewed (0) -
okhttp-hpacktests/src/test/java/okhttp3/internal/http2/hpackjson/HpackJsonUtil.kt
val result = mutableListOf<String>() for (path in fileSystem.list(testCaseDirectory)) { val story00 = path / "story_00.json" if (!fileSystem.exists(story00)) continue try { readStory(story00) result.add(path.name) } catch (ignored: IOException) { // Skip this path. } } return result.toTypedArray<String>() } /**
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Wed Mar 19 19:25:20 UTC 2025 - 3.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/MapGetTester.java
assertNull("get(null) should return null", get(null)); } @MapFeature.Require(absent = ALLOWS_NULL_KEY_QUERIES) public void testGet_nullNotContainedAndUnsupported() { try { assertNull("get(null) should return null or throw", get(null)); } catch (NullPointerException tolerated) { } } @MapFeature.Require(ALLOWS_NULL_KEYS) @CollectionSize.Require(absent = ZERO)
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Nov 14 23:40:07 UTC 2024 - 3.1K bytes - Viewed (0) -
guava-testlib/src/com/google/common/util/concurrent/testing/MockFutureListener.java
*/ public void assertSuccess(Object expectedData) throws Throwable { // Verify that the listener executed in a reasonable amount of time. Assert.assertTrue(countDownLatch.await(1L, SECONDS)); try { Assert.assertEquals(expectedData, future.get()); } catch (ExecutionException e) { throw e.getCause(); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Fri May 12 18:12:42 UTC 2023 - 3K bytes - Viewed (0) -
compat/maven-compat/src/test/java/org/apache/maven/repository/metadata/TestMetadataSource.java
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Fri Jun 06 14:28:57 UTC 2025 - 3.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/job/SuggestJobTest.java
createRequiredDirectories(); System.setProperty("os.name", "Windows 10"); mockProcessHelper.setExitValue(0); mockProcessHelper.setOutput("Windows execution"); try { suggestJob.executeSuggestCreator(); } catch (Exception e) { // May fail in test environment } finally { System.clearProperty("os.name"); }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Tue Aug 19 14:09:36 UTC 2025 - 31.4K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Aug 11 19:31:30 UTC 2025 - 27K bytes - Viewed (0) -
src/main/java/org/codelibs/core/jar/JarFileUtil.java
* @return a <code>JarFile</code> to read the specified JAR file */ public static JarFile create(final String file) { assertArgumentNotNull("file", file); try { return new JarFile(file); } catch (final IOException e) { throw new IORuntimeException(e); } } /**
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 4.9K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/helper/NotificationHelperTest.java
return ""; } }); MockSMailPostingDiscloser discloser = new MockSMailPostingDiscloser(); // Should return early without doing anything try { notificationHelper.sendToSlack(null, discloser); } catch (Exception e) { fail("sendToSlack() should not throw an exception with blank URLs: " + e.getMessage()); } }
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 10 13:41:04 UTC 2025 - 19.6K bytes - Viewed (0)