- Sort Score
- Result 10 results
- Languages All
Results 11 - 20 of 3,588 for finally (0.27 sec)
-
guava/src/com/google/common/util/concurrent/Monitor.java
* Finally, the programmer no longer has to hand-code the wait loop, and therefore doesn't have to * remember to use {@code while} instead of {@code if}. * * {@snippet : * public class SafeBox<V> { * private V value; * private final Monitor monitor = new Monitor(); * private final Monitor.Guard valuePresent = monitor.newGuard(() -> value != null);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 42.8K bytes - Viewed (0) -
src/main/java/org/codelibs/core/io/CloseableUtil.java
* <pre> * InputStream is = ...; * try { * is.read(...); * } finally { * close(is); * } * </pre> * <p> * If an exception occurs in the try block, there is a possibility that an exception will also occur in the finally block's {@link #close(Closeable)}. If the exception is thrown from the finally block, the original exception from the try block will be lost. * </p> *
Registered: Fri Sep 05 20:58:11 UTC 2025 - Last Modified: Thu Jul 31 08:16:49 UTC 2025 - 2.5K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/extractor/impl/TikaExtractor.java
*/ protected ExtractData getText(final InputStream inputStream, final Map<String, String> params, final BiConsumer<ExtractData, InputStream> postFilter) { if (inputStream == null) { throw new CrawlerSystemException("The inputstream is null."); } final File tempFile; final boolean isByteStream = inputStream instanceof ByteArrayInputStream;
Registered: Sun Sep 21 03:50:09 UTC 2025 - Last Modified: Thu Aug 07 02:55:08 UTC 2025 - 30.7K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/AbstractService.java
notifyFailed(shutdownFailure); } finally { monitor.leave(); dispatchListenerEvents(); } } return this; } @Override public final void awaitRunning() { monitor.enterWhenUninterruptibly(hasReachedRunning); try { checkCurrentState(RUNNING); } finally { monitor.leave(); } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 20.7K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/thumbnail/impl/CommandGeneratorTest.java
final List<String> commands = Arrays.asList("convert ${url} ${outputFile}", "echo Processing ${url} to ${outputFile}", "cp ${url} ${outputFile}"); final String tempPath = "/tmp/test.tmp"; final String outputPath = "/tmp/output.jpg"; // Simulate the variable replacement logic from the source code final List<String> processedCommands = new ArrayList<>();
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sun Aug 31 08:19:00 UTC 2025 - 16.4K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AbstractService.java
notifyFailed(shutdownFailure); } finally { monitor.leave(); dispatchListenerEvents(); } } return this; } @Override public final void awaitRunning() { monitor.enterWhenUninterruptibly(hasReachedRunning); try { checkCurrentState(RUNNING); } finally { monitor.leave(); } } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Feb 19 21:24:11 UTC 2025 - 20.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/util/ThreadDumpUtilTest.java
public void test_thread_safety() throws InterruptedException { // Test concurrent access to thread dump methods final AtomicInteger successCount = new AtomicInteger(0); final AtomicInteger errorCount = new AtomicInteger(0); final int threadCount = 10; final CountDownLatch latch = new CountDownLatch(threadCount); for (int i = 0; i < threadCount; i++) { new Thread(() -> {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Sat Jul 12 07:34:10 UTC 2025 - 15.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/io/CloserTest.java
private final List<Suppression> suppressions = new ArrayList<>(); @Override public void suppress(Closeable closeable, Throwable thrown, Throwable suppressed) { suppressions.add(new Suppression(closeable, thrown, suppressed)); } } /** Record of a call to suppress. */ private static class Suppression { private final Closeable closeable;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 11.8K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/Uninterruptibles.java
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.8K bytes - Viewed (0)