- Sort Score
- Num 10 results
- Language All
Results 11 - 20 of 2,371 for Try (0.06 seconds)
-
src/test/java/org/codelibs/fess/rank/fusion/RankFusionProcessorConcurrencyTest.java
try (RankFusionProcessor processor = new RankFusionProcessor()) { processor.setSearcher(new TestSearcher(100)); processor.init(); final ExecutorService executor = Executors.newFixedThreadPool(2); try { // Thread 1: Perform searches executor.submit(() -> { try {Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Sun Jan 11 08:43:05 GMT 2026 - 13.5K bytes - Click Count (0) -
src/main/java/jcifs/internal/smb2/persistent/PersistentHandleManager.java
private void loadPersistedHandles() { if (!Files.exists(stateDirectory)) { return; } try (DirectoryStream<Path> stream = Files.newDirectoryStream(stateDirectory, "*.handle")) { for (Path handleFile : stream) { try (ObjectInputStream ois = new ObjectInputStream(Files.newInputStream(handleFile))) { HandleInfo info = (HandleInfo) ois.readObject();Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Sun Aug 24 00:49:49 GMT 2025 - 13K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/KeyMatchHelperTest.java
assertEquals(0, result.size()); } @Test public void test_buildQuery_emptyKeywords() { try { List<String> keywordList = Collections.emptyList(); List<FilterFunctionBuilder> functionBuilders = new ArrayList<>(); try { keyMatchHelper.buildQuery(keywordList, functionBuilders); } catch (Exception e) {
Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Fri Mar 13 23:01:26 GMT 2026 - 10.4K bytes - Click Count (0) -
android/guava-testlib/src/com/google/common/collect/testing/google/UnmodifiableCollectionTests.java
Collection<E> copy = new ArrayList<>(); copy.addAll(collection); try { collection.add(sampleElement); fail("add succeeded on unmodifiable collection"); } catch (UnsupportedOperationException expected) { } assertCollectionsAreEquivalent(copy, collection); try { collection.addAll(siblingCollection); fail("addAll succeeded on unmodifiable collection");Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Sun Aug 10 19:54:19 GMT 2025 - 14.8K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java
} } /** * Test that try-with-resources handles null InputStream correctly. * Verifies that null InputStream doesn't cause NullPointerException during close. */ @Test public void testTryWithResources_nullInputStreamSafety() { // This test demonstrates that try-with-resources handles null safely try (InputStream is = null) { if (is == null) {Created: Fri Apr 17 09:08:13 GMT 2026 - Last Modified: Mon Nov 24 03:40:05 GMT 2025 - 9.6K bytes - Click Count (0) -
guava-tests/test/com/google/common/io/MoreFilesTest.java
try { for (int i = 0; i < iterations; i++) { try { Files.createDirectories(changingFile); Files.createFile(dirToDelete.resolve("j/k")); } catch (FileAlreadyExistsException expected) { // if a file already exists, that's fine... just continue } try { method.delete(dirToDelete);Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Tue Mar 17 19:26:39 GMT 2026 - 27.5K bytes - Click Count (0) -
src/test/java/jcifs/util/HMACT64Test.java
try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) { mockedCrypto.when(Crypto::getMD5).thenReturn(mockMd5); } } @Test void testConstructorWithNormalKey() throws NoSuchAlgorithmException { // Test constructor with a normal length key try (MockedStatic<Crypto> mockedCrypto = mockStatic(Crypto.class)) {
Created: Sun Apr 05 00:10:12 GMT 2026 - Last Modified: Thu Aug 14 05:31:44 GMT 2025 - 14.6K bytes - Click Count (0) -
src/main/java/org/codelibs/fess/dict/kuromoji/KuromojiFile.java
} @Override public synchronized void insert(final KuromojiItem item) { try (KuromojiUpdater updater = new KuromojiUpdater(item)) { reload(updater); } } @Override public synchronized void update(final KuromojiItem item) { try (KuromojiUpdater updater = new KuromojiUpdater(item)) { reload(updater); } }Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Thu Nov 20 07:09:00 GMT 2025 - 11.7K bytes - Click Count (0) -
android/guava/src/com/google/common/io/Closer.java
* throw closer.rethrow(e); * } finally { * closer.close(); * } * } * * <p>Note that this try-catch-finally block is not equivalent to a try-catch-finally block using * try-with-resources. To get the equivalent of that, you must wrap the above code in <i>another</i> * try block in order to catch any exception that may be thrown (including from the call to {@code * close()}). *
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 10.3K bytes - Click Count (0) -
src/test/java/org/codelibs/fess/helper/WebFsIndexHelperTest.java
} @Test public void test_crawl_withNullParameters() { try { webFsIndexHelper.crawl("sessionId", null, null); assertTrue(true); } catch (Exception e) { assertTrue(true); } } @Test public void test_crawl_withEmptyLists() { try { webFsIndexHelper.crawl("sessionId", Collections.emptyList(), Collections.emptyList());Created: Tue Mar 31 13:07:34 GMT 2026 - Last Modified: Wed Jan 14 14:29:07 GMT 2026 - 15.6K bytes - Click Count (0)