- Sort Score
- Result 10 results
- Languages All
Results 141 - 150 of 770 for _clone (0.05 sec)
-
mockwebserver/src/main/kotlin/mockwebserver3/internal/MockWebServerSocket.kt
private var closed = false override fun close() { if (closed) return try { super.close() } finally { closedLatch.countDown() } } }.buffer() override val sink: BufferedSink = object : ForwardingSink(delegate.sink) { private var closed = false override fun close() { if (closed) return try {Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 3.3K bytes - Viewed (0) -
src/main/java/jcifs/internal/smb2/create/Smb2CloseRequest.java
import jcifs.internal.smb2.ServerMessageBlock2Request; import jcifs.internal.smb2.Smb2Constants; import jcifs.internal.util.SMBUtil; import jcifs.util.Hexdump; /** * SMB2 Close request message. This command is used to close a file or directory * that was previously opened. * * @author mbechler * */ public class Smb2CloseRequest extends ServerMessageBlock2Request<Smb2CloseResponse> implements RequestWithFileId {
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 16 01:32:48 UTC 2025 - 4.6K bytes - Viewed (0) -
src/archive/zip/writer_test.go
} w := NewWriter(&buf) if _, err := w.CreateHeader(h); err != nil { t.Fatalf("unexpected CreateHeader error: %v", err) } if err := w.Close(); err != nil { t.Fatalf("unexpected Close error: %v", err) } want, err := os.ReadFile("testdata/time-go.zip") if err != nil { t.Fatalf("unexpected ReadFile error: %v", err) }
Registered: Tue Sep 09 11:13:09 UTC 2025 - Last Modified: Tue Jan 28 04:20:09 UTC 2025 - 14.4K bytes - Viewed (0) -
src/test/java/jcifs/smb/NetServerEnumIteratorTest.java
return invocation.getArgument(1); }); // When: Create iterator and close multiple times NetServerEnumIterator iterator = new NetServerEnumIterator(parent, treeHandle, "*", 0, null); iterator.close(); iterator.close(); // Second close should be safe // Then: Tree handle should be released only once verify(treeHandle, times(1)).release();
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 9.8K bytes - Viewed (0) -
src/test/java/jcifs/dcerpc/msrpc/LsaPolicyHandleTest.java
return null; }).when(mockDcerpcHandle).sendrecv(any(MsrpcLsarClose.class)); // Close once handle.close(); // Act // Try to close again handle.close(); // Assert // Verify sendrecv was called once for open and only once for close verify(mockDcerpcHandle, times(1)).sendrecv(any(MsrpcLsarOpenPolicy2.class));Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 8.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/ws/RealWebSocket.kt
private var receivedCloseCode = -1 /** The close reason from the peer, or null if this web socket has not yet read a close frame. */ private var receivedCloseReason: String? = null /** True if this web socket failed and the listener has been notified. */ private var failed = false /** Total number of pings sent by this web socket. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 21.6K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CloserTest.java
} public void testNullCloseable() throws IOException { Closer closer = Closer.create(); closer.register(null); closer.close(); } /** * Asserts that an exception was thrown when trying to close each of the given throwables and that * each such exception was suppressed because of the given thrown exception. */ private void assertSuppressed(Suppression... expected) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 11.8K bytes - Viewed (0) -
src/test/java/jcifs/context/CIFSContextWrapperTest.java
void testClose_True() throws CIFSException { // Test close() method when true when(mockDelegate.close()).thenReturn(true); assertTrue(cifsContextWrapper.close()); verify(mockDelegate).close(); } @Test void testClose_False() throws CIFSException { // Test close() method when false when(mockDelegate.close()).thenReturn(false);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 10.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ForwardingSet.java
* * <p><b>Warning:</b> The methods of {@code ForwardingSet} forward <b>indiscriminately</b> to the * methods of the delegate. For example, overriding {@link #add} alone <b>will not</b> change the * behavior of {@link #addAll}, which can lead to unexpected behavior. In this case, you should * override {@code addAll} as well, either providing your own implementation, or delegating to theRegistered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.7K bytes - Viewed (0) -
android/guava/src/com/google/common/io/Closer.java
* any exceptions thrown when attempting to close a closeable will be suppressed. Otherwise, the * <i>first</i> exception to be thrown from an attempt to close a closeable will be thrown and any * additional exceptions that are thrown after that will be suppressed. */ @Override public void close() throws IOException { Throwable throwable = thrown; // close closeables in LIFO order while (!stack.isEmpty()) {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 10.3K bytes - Viewed (0)