Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 1,868 for instanceOf (0.07 sec)

  1. src/main/java/jcifs/internal/smb2/rdma/RdmaErrorHandler.java

         */
        private boolean isRecoverableError(Exception error) {
            // Timeout errors are often recoverable
            if (error instanceof SocketTimeoutException) {
                return true;
            }
    
            // Some socket errors might be recoverable
            if (error instanceof SocketException) {
                String message = error.getMessage();
                if (message != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 10.5K bytes
    - Viewed (0)
  2. src/main/java/jcifs/context/CIFSContextCredentialWrapper.java

         */
        @Override
        public boolean renewCredentials(final String locationHint, final Throwable error) {
            final Credentials cred = getCredentials();
            if (cred instanceof final SmbRenewableCredentials renewable) {
                final CredentialsInternal renewed = renewable.renew();
                if (renewed != null) {
                    this.creds = renewed;
                    return true;
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 2.8K bytes
    - Viewed (0)
  3. src/test/java/jcifs/internal/SMBProtocolDecodingExceptionTest.java

            assertTrue(ex instanceof CIFSException, "Should be a CIFSException subtype");
    
            // Assert throwing/catching behavior with assertThrows
            SMBProtocolDecodingException thrown = assertThrows(SMBProtocolDecodingException.class, () -> {
                throw new SMBProtocolDecodingException();
            }, "Should be throwable via assertThrows");
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 5.1K bytes
    - Viewed (0)
  4. src/test/java/jcifs/dcerpc/msrpc/MsrpcLookupSidsTest.java

            sidsField.setAccessible(true);
            Object sidsObj = sidsField.get(lookupSids);
    
            assertNotNull(sidsObj);
            assertTrue(sidsObj instanceof LsarSidArrayX);
        }
    
        @Test
        void constructor_shouldCreateLsarRefDomainList() throws Exception {
            // Arrange
            jcifs.SID mockSid = mock(jcifs.SID.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 12.6K bytes
    - Viewed (0)
  5. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSet.java

        Iterable<? extends E> iterable = elements;
        return copyOf(iterable);
      }
    
      public static <E> ImmutableSet<E> copyOf(Iterable<? extends E> elements) {
        if (elements instanceof ImmutableSet && !(elements instanceof ImmutableSortedSet)) {
          @SuppressWarnings("unchecked") // all supported methods are covariant
          ImmutableSet<E> set = (ImmutableSet<E>) elements;
          return set;
        }
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Aug 06 18:32:41 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/context/CIFSContextWrapperTest.java

            // First call should create a new Handler
            URLStreamHandler handler1 = cifsContextWrapper.getUrlHandler();
            assertNotNull(handler1);
            assertTrue(handler1 instanceof Handler);
    
            // Second call should return the same instance
            URLStreamHandler handler2 = cifsContextWrapper.getUrlHandler();
            assertEquals(handler1, handler2);
        }
    
        @Test
        void testGetSIDResolver() {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 10.7K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/app/web/api/admin/documents/ApiAdminDocumentsAction.java

                if (!doc.containsKey(indexFieldContentLength)) {
                    long contentLength = 0;
                    if (doc.get(indexFieldTitle) instanceof final String title) {
                        contentLength += title.length();
                    }
                    if (doc.get(indexFieldContent) instanceof final String content) {
                        contentLength += content.length();
                    }
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 8.3K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbTreeConnection.java

                    }
    
                    return loc;
                } else {
                    if (!t.isInDomainDfs() || (request instanceof NtTransQuerySecurityDesc) || (request instanceof SmbComClose)
                            || (request instanceof SmbComFindClose2)) {
                        log.trace("Not in DFS");
                        return loc;
                    }
                    if (log.isDebugEnabled()) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 30.4K bytes
    - Viewed (0)
  9. src/test/java/jcifs/internal/smb2/info/Smb2QueryDirectoryResponseTest.java

            assertNotNull(response.getResults());
            assertEquals(2, response.getResults().length);
            assertTrue(response.getResults()[0] instanceof FileBothDirectoryInfo);
            assertTrue(response.getResults()[1] instanceof FileBothDirectoryInfo);
        }
    
        @Test
        @DisplayName("Test readBytesWireFormat with zero buffer length returns one empty result")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 23.5K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Queues.java

       * they are returned by the iterable's iterator.
       *
       * @since 12.0
       */
      public static <E> ArrayDeque<E> newArrayDeque(Iterable<? extends E> elements) {
        if (elements instanceof Collection) {
          return new ArrayDeque<>((Collection<? extends E>) elements);
        }
        ArrayDeque<E> deque = new ArrayDeque<>();
        Iterables.addAll(deque, elements);
        return deque;
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 18.1K bytes
    - Viewed (0)
Back to top