- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 411 for ensures (0.03 sec)
-
src/test/java/jcifs/smb/SmbSessionImplSecurityTest.java
// When - Release session to trigger cleanup session.release(); // Then - Trees should be cleared (we can't directly verify as it's internal, // but the cleanup code with synchronized block ensures it happens atomically) // The important part is that no exception occurs and the operation is atomic } /** * Test concurrent acquire and release operations. */ @TestRegistered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sun Aug 31 08:00:57 UTC 2025 - 11K bytes - Viewed (0) -
android/guava/src/com/google/common/util/concurrent/AggregateFutureState.java
* shouldn't) * * Our solution is for threads to CAS seenExceptionsField from null to a Set populated with _the * initial exception_, no matter which thread does the work. This ensures that * seenExceptionsField always contains not just the current thread's exception but also the * initial thread's. */ Set<Throwable> seenExceptionsLocal = seenExceptionsField;
Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 8.5K bytes - Viewed (0) -
src/main/java/org/codelibs/curl/io/ContentOutputStream.java
/** * ContentOutputStream is a custom output stream that extends DeferredFileOutputStream. * It writes data to a temporary file once the data size exceeds a specified threshold. * * <p>This class ensures that the temporary file is deleted if it is not needed. * It uses a logger to log warnings if there are issues deleting the temporary file.</p> * * <p>Fields:</p> * <ul>
Registered: Sat Dec 20 09:13:53 UTC 2025 - Last Modified: Thu Nov 20 13:34:13 UTC 2025 - 3.9K bytes - Viewed (0) -
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TemporaryFileInputStream.java
import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; import org.codelibs.core.io.FileUtil; /** * A custom InputStream that wraps a temporary file. This class ensures that the temporary file * is deleted when the stream is closed. */ public class TemporaryFileInputStream extends InputStream { private final File tempFile; private final FileInputStream fileInputStream;Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Sat Nov 22 13:28:22 UTC 2025 - 4.1K bytes - Viewed (0) -
src/main/java/jcifs/smb/SmbTransportInternal.java
* @return whether the connection was in use * @throws IOException if an I/O error occurs during disconnection */ boolean disconnect(boolean hard, boolean inuse) throws IOException; /** * Ensures the transport is connected to the remote server. * * @return whether the transport was connected * @throws SmbException if an SMB error occurs * @throws IOException if an I/O error occurs */Registered: Sat Dec 20 13:44:44 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.5K bytes - Viewed (0) -
okhttp-testing-support/src/main/kotlin/okhttp3/internal/concurrent/TaskFaker.kt
import java.util.logging.Logger import okhttp3.TestUtil.threadFactory /** * Runs a [TaskRunner] in a controlled environment so that everything is sequential and * deterministic. * * This class ensures that at most one thread is running at a time. This is initially the JUnit test * thread, which yields its execution privilege while calling [runTasks], [runNextTask], or
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Wed May 28 23:28:25 UTC 2025 - 11.9K bytes - Viewed (0) -
okhttp/src/jvmTest/kotlin/okhttp3/internal/http2/FrameLogTest.kt
.isEqualTo("<< 0x00000003 10000 HEADERS PRIORITY") assertThat(frameLog(true, 3, 10000, TYPE_DATA, 0x20)) .isEqualTo("<< 0x00000003 10000 DATA COMPRESSED") } /** * Ensures that valid flag combinations appear visually correct, and invalid show in hex. This * also demonstrates how sparse the lookup table is. */ @Test fun allFormattedFlagsWithValidBits() {
Registered: Fri Dec 26 11:42:13 UTC 2025 - Last Modified: Fri Dec 27 13:39:56 UTC 2024 - 5.9K bytes - Viewed (0) -
guava/src/com/google/common/util/concurrent/Striped.java
} @Override public Lock writeLock() { return new WeakSafeLock(delegate.writeLock(), this); } } /** Lock object that ensures a strong reference is retained to a specified object. */ private static final class WeakSafeLock extends ForwardingLock { private final Lock delegate; @SuppressWarnings("unused")Registered: Fri Dec 26 12:43:10 UTC 2025 - Last Modified: Tue Sep 16 22:01:32 UTC 2025 - 20.6K bytes - Viewed (0) -
src/test/java/org/codelibs/fess/suggest/SuggesterResourceLoadingTest.java
} catch (RuntimeException e) { assertEquals("Simulated processing error", e.getMessage()); // If InputStream wasn't properly closed, this would leak resources // try-with-resources ensures cleanup happens } catch (IOException e) { fail("Should not throw IOException: " + e.getMessage()); } } /** * Test resource content integrity.
Registered: Sat Dec 20 13:04:59 UTC 2025 - Last Modified: Mon Nov 24 03:40:05 UTC 2025 - 9.6K bytes - Viewed (0) -
fess-crawler/src/test/java/org/codelibs/fess/crawler/extractor/impl/ExtractorResourceManagementTest.java
import org.codelibs.fess.crawler.exception.ExtractException; import org.dbflute.utflute.core.PlainTestCase; /** * Test class to verify proper resource management in Extractor implementations. * This test ensures that resources are properly closed even when exceptions occur. */ public class ExtractorResourceManagementTest extends PlainTestCase {Registered: Sat Dec 20 11:21:39 UTC 2025 - Last Modified: Mon Nov 24 03:59:47 UTC 2025 - 10.4K bytes - Viewed (0)