Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 721 for lose (0.03 sec)

  1. android/guava/src/com/google/common/io/CountingOutputStream.java

        out.write(b);
        count++;
      }
    
      // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
      // it silently ignores any exception thrown by flush(). Instead, just close the delegate stream.
      // It should flush itself if necessary.
      @Override
      public void close() throws IOException {
        out.close();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 1.9K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/io/CloseablesTest.java

    import org.jspecify.annotations.NullUnmarked;
    
    /**
     * Unit tests for {@link Closeables}.
     *
     * <p>Checks proper closing behavior, and ensures that IOExceptions on Closeable.close() are not
     * propagated out from the {@link Closeables#close} method if {@code swallowException} is true.
     *
     * @author Michael Lancaster
     */
    @NullUnmarked
    public class CloseablesTest extends TestCase {
      private Closeable mockCloseable;
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  3. src/test/java/jcifs/smb/DirFileEntryEnumIterator2Test.java

            // After last element, hasNext should be false and calling close() should send Smb2CloseRequest once
            assertFalse(it.hasNext(), "Iterator should be exhausted");
    
            // Close explicitly to exercise doCloseInternal
            it.close();
    
            // Verify interactions: one create, two additional directory queries (for fetchMore), one close
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.7K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbFileHandleImplTest.java

            h.close(777L);
    
            // Verify SMB2 close path
            verify(tree, times(1)).send(isA(Smb2CloseRequest.class), eq(RequestParam.NO_RETRY));
            // Tree is always released in finally
            verify(tree, times(1)).release();
        }
    
        @Test
        @DisplayName("close(long) sends SMB1 close request and releases tree when SMB1")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  5. src/test/java/jcifs/smb/SmbPipeHandleImplTest.java

        @Test
        @DisplayName("ensureOpen throws after close() is called")
        void testEnsureOpenAfterClose() throws CIFSException {
            target.close();
            CIFSException ex = assertThrows(SmbException.class, () -> target.ensureOpen());
            assertTrue(ex.getMessage().contains("Pipe handle already closed"));
        }
    
        @Test
        @DisplayName("close() calls handle.close when open and handle.release otherwise; releases tree")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.7K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/io/LittleEndianDataOutputStream.java

        ((DataOutputStream) out).writeUTF(str);
      }
    
      // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
      // it silently ignores any exception thrown by flush(). Instead, just close the delegate stream.
      // It should flush itself if necessary.
      @Override
      public void close() throws IOException {
        out.close();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 5.1K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/ValueGraphBuilder.java

     *     ValueGraphBuilder.undirected().allowsSelfLoops(true).build();
     * graph.putEdgeValue("San Francisco", "San Francisco", 0.0);
     * graph.putEdgeValue("San Jose", "San Jose", 0.0);
     * graph.putEdgeValue("San Francisco", "San Jose", 48.4);
     *
     * // Building an immutable value graph
     * ImmutableValueGraph<String, Double> immutableGraph =
     *     ValueGraphBuilder.undirected()
     *         .allowsSelfLoops(true)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Mar 17 20:26:29 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/WebSocketEcho.java

        System.out.println("MESSAGE: " + bytes.hex());
      }
    
      @Override public void onClosing(WebSocket webSocket, int code, String reason) {
        webSocket.close(1000, null);
        System.out.println("CLOSE: " + code + " " + reason);
      }
    
      @Override public void onFailure(WebSocket webSocket, Throwable t, Response response) {
        t.printStackTrace();
      }
    
      public static void main(String... args) {
        new WebSocketEcho().run();
      }
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Apr 04 11:40:21 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  9. guava/src/com/google/common/hash/HashingOutputStream.java

      public HashCode hash() {
        return hasher.hash();
      }
    
      // Overriding close() because FilterOutputStream's close() method pre-JDK8 has bad behavior:
      // it silently ignores any exception thrown by flush(). Instead, just close the delegate stream.
      // It should flush itself if necessary.
      @Override
      public void close() throws IOException {
        out.close();
      }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Dec 21 03:10:51 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  10. src/test/java/jcifs/SmbTransportPoolTest.java

            }
    
            @Test
            @DisplayName("Should close pool with active transports")
            void testClosePoolWithActiveTransports() throws CIFSException {
                // Given
                when(transportPool.close()).thenReturn(true);
    
                // When
                boolean result = transportPool.close();
    
                // Then
                assertTrue(result);
                verify(transportPool).close();
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 22.6K bytes
    - Viewed (0)
Back to top