Search Options

Results per page
Sort
Preferred Languages
Advance

Results 411 - 420 of 2,976 for throwIt (0.05 sec)

  1. guava/src/com/google/common/collect/MoreCollectors.java

              throw multiples(true);
            }
            return this;
          }
        }
    
        Optional<Object> getOptional() {
          if (extras.isEmpty()) {
            return Optional.ofNullable(element);
          } else {
            throw multiples(false);
          }
        }
    
        Object getElement() {
          if (element == null) {
            throw new NoSuchElementException();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Apr 12 15:07:59 UTC 2025
    - 5.4K bytes
    - Viewed (0)
  2. src/main/java/jcifs/spnego/NegTokenInit.java

        }
    
        /**
         * Constructs a NegTokenInit by parsing the provided token bytes
         * @param token the SPNEGO token bytes to parse
         * @throws IOException if parsing fails
         */
        public NegTokenInit(final byte[] token) throws IOException {
            parse(token);
        }
    
        /**
         * Gets the context flags indicating security capabilities
         * @return the context flags
         */
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 10.3K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/smb2/lock/Smb2LockResponseTest.java

        @DisplayName("readBytesWireFormat tests")
        class ReadBytesWireFormatTests {
    
            @Test
            @DisplayName("Should read valid structure with size 4")
            void testReadBytesWireFormatValidStructure() throws SMBProtocolDecodingException {
                // Given
                byte[] buffer = new byte[10];
                int bufferIndex = 0;
                SMBUtil.writeInt2(4, buffer, bufferIndex); // Write structure size = 4
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 17.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SimpleMemoryManagementTest.java

            // Test multiple releases (should not throw)
            assertThrows(RuntimeException.class, () -> session.release(), "Additional release should throw RuntimeCIFSException");
        }
    
        /**
         * Test tree creation and cleanup
         */
        @Test
        @Timeout(5)
        public void testTreeManagement() throws Exception {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sun Aug 31 08:00:57 UTC 2025
    - 5.7K bytes
    - Viewed (0)
  5. samples/guide/src/main/java/okhttp3/recipes/CertificatePinning.java

                  .build())
          .build();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/robots.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun Dec 08 21:30:01 UTC 2019
    - 1.7K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SmbTransportInternalTest.java

            assertEquals(expected, result);
            verify(transport, times(1)).disconnect(hard, inuse);
        }
    
        // Error case: disconnect throws IOException
        @Test
        @DisplayName("disconnect throws IOException when underlying close fails")
        void disconnect_throwsIOException() throws Exception {
            doThrow(new java.io.IOException("close error")).when(transport).disconnect(true, true);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  7. src/test/java/jcifs/dcerpc/DcerpcMessageTest.java

                return opnumValue;
            }
    
            @Override
            public void encode_in(NdrBuffer buf) throws NdrException {
                // Simulate encoding some data
                buf.enc_ndr_long(12345);
            }
    
            @Override
            public void decode_out(NdrBuffer buf) throws NdrException {
                // Simulate decoding some data
                buf.dec_ndr_long();
            }
        }
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 18.3K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/CheckHandshake.java

            "sha256/afwiKY3RxoMmLkuRW1l7QsPZTJPwDS2pdDROQjXw8ig=");
    
        @Override public Response intercept(Chain chain) throws IOException {
          for (Certificate certificate : chain.connection().handshake().peerCertificates()) {
            String pin = CertificatePinner.pin(certificate);
            if (denylist.contains(pin)) {
              throw new IOException("Denylisted peer certificate: " + pin);
            }
          }
          return chain.proceed(chain.request());
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Mon Apr 15 14:55:09 UTC 2024
    - 2.1K bytes
    - Viewed (0)
  9. src/main/java/jcifs/http/NtlmHttpURLConnection.java

        @Override
        public Object getContent() throws IOException {
            handshake();
            return this.connection.getContent();
        }
    
        @Override
        public Object getContent(final Class[] classes) throws IOException {
            handshake();
            return this.connection.getContent(classes);
        }
    
        @Override
        public Permission getPermission() throws IOException {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 25.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/AbstractIndexedListIterator.java

       * #previous()} can retrieve the preceding {@code position} elements.
       *
       * @throws IndexOutOfBoundsException if {@code position} is negative or is greater than {@code
       *     size}
       * @throws IllegalArgumentException if {@code size} is negative
       */
      protected AbstractIndexedListIterator(int size, int position) {
        checkPositionIndex(position, size);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.2K bytes
    - Viewed (0)
Back to top