Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 140 for CHECKED (0.03 sec)

  1. src/test/java/jcifs/smb/SmbTransportInternalTest.java

    import org.mockito.Mockito;
    import org.mockito.junit.jupiter.MockitoExtension;
    
    import jcifs.SmbSession;
    
    /**
     * Tests for SmbTransportInternal interface using Mockito mocks to
     * exercise method contracts, checked exceptions, and interactions.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbTransportInternalTest {
    
        @Mock
        private SmbTransportInternal transport;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/util/concurrent/FuturesGetChecked.java

          Class<? extends Exception> exceptionClass) {
        try {
          Exception unused = newWithCause(exceptionClass, new Exception());
          return true;
        } catch (Throwable t) { // sneaky checked exception
          return false;
        }
      }
    
      private static <X extends Exception> X newWithCause(Class<X> exceptionClass, Throwable cause) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 11.8K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/Platform.java

       * - https://github.com/jspecify/jdk/commit/71d826792b8c7ef95d492c50a274deab938f2552
       */
      /*
       * TODO(cpovirk): Is the unchecked cast avoidable? Would System.arraycopy be similarly fast (if
       * likewise not type-checked)? Could our single caller do something different?
       */
      @SuppressWarnings({"nullness", "unchecked"})
      static <T extends @Nullable Object> T[] copy(Object[] source, int from, int to, T[] arrayOfType) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.5K bytes
    - Viewed (0)
  4. src/test/java/jcifs/smb/SmbSessionInternalTest.java

    import jcifs.CIFSException;
    import jcifs.SmbTransport;
    import jcifs.SmbTree;
    
    /**
     * Tests for SmbSessionInternal interface using Mockito to exercise
     * method contracts, checked exceptions, and interactions with collaborators.
     */
    @ExtendWith(MockitoExtension.class)
    public class SmbSessionInternalTest {
    
        @Mock
        private SmbSessionInternal session;
    
        @Mock
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 6.8K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/cache/Cache.java

       * {@code null}; it may either return a non-null value or throw an exception.
       *
       * <p>No observable state associated with this cache is modified until loading completes.
       *
       * @throws ExecutionException if a checked exception was thrown while loading the value
       * @throws UncheckedExecutionException if an unchecked exception was thrown while loading the
       *     value
       * @throws ExecutionError if an error was thrown while loading the value
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 8.3K bytes
    - Viewed (0)
  6. src/test/java/jcifs/smb/SSPContextTest.java

                }
    
                // Verify that calculateMIC was never called
                verify(mockCtx, never()).calculateMIC(any());
                // Verify that supportsIntegrity was checked once
                verify(mockCtx, times(1)).supportsIntegrity();
                // Due to short-circuit evaluation, isEstablished should never be called
                // when supportsIntegrity returns false
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.2K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/AbstractFutureState.java

          } catch (Exception | Error unsafeFailure) { // sneaky checked exception
            thrownUnsafeFailure = unsafeFailure;
            // Catch absolutely everything and fall through to AtomicReferenceFieldUpdaterAtomicHelper.
            try {
              helper = new AtomicReferenceFieldUpdaterAtomicHelper();
            } catch (Exception // sneaky checked exception
                | Error atomicReferenceFieldUpdaterFailure) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 33.2K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/LinkedListMultimap.java

          if (node.previousSibling == null) {
            // requireNonNull is safe because we checked that not *both* siblings were null.
            keyList.head = requireNonNull(node.nextSibling);
          } else {
            node.previousSibling.nextSibling = node.nextSibling;
          }
    
          if (node.nextSibling == null) {
            // requireNonNull is safe because we checked that not *both* siblings were null.
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Aug 09 01:14:59 UTC 2025
    - 26.6K bytes
    - Viewed (0)
  9. src/test/java/jcifs/smb/SmbWatchHandleImplTest.java

            verify(tree, times(1)).close(); // try-with-resources must close
            verify(handle, never()).markClosed();
            verify(tree, never()).hasCapability(anyInt()); // not checked on SMB2
        }
    
        // SMB1 path: without CAP_NT_SMBS it should throw SmbUnsupportedOperationException
        @Test
        @DisplayName("watch() SMB1 without capability throws unsupported")
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 11.5K bytes
    - Viewed (0)
  10. src/test/java/jcifs/internal/smb2/ServerMessageBlock2RequestTest.java

                int start = dstIndex;
                dstIndex += writeHeaderWireFormat(dst, dstIndex);
                dstIndex += writeBytesWireFormat(dst, dstIndex);
    
                // Set the length field that will be checked by ServerMessageBlock2Request.encode()
                int calculatedLength = testEncodedLength;
                setLength(calculatedLength);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 15.7K bytes
    - Viewed (0)
Back to top