Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1001 - 1010 of 3,054 for throws (0.13 sec)

  1. src/test/java/jcifs/AddressTest.java

            }, "All Address interface methods should be callable");
        }
    
        @Test
        @DisplayName("unwrap method should return correct type when supported")
        void testUnwrapMethodContract() throws Exception {
            // Given
            when(mockAddress.unwrap(Address.class)).thenReturn(mockAddress);
    
            // When & Then
            Address unwrapped = mockAddress.unwrap(Address.class);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 4.9K bytes
    - Viewed (0)
  2. src/main/java/jcifs/internal/witness/WitnessRegisterMessage.java

         * Encodes a wide string pointer in NDR format.
         *
         * @param buf the NDR buffer
         * @param str the string to encode (can be null)
         * @throws NdrException if encoding fails
         */
        private void encodeWideStringPointer(NdrBuffer buf, String str) throws NdrException {
            if (str == null || str.isEmpty()) {
                buf.enc_ndr_long(0); // NULL pointer
            } else {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 23 09:06:40 UTC 2025
    - 8.6K bytes
    - Viewed (0)
  3. src/main/java/jcifs/SmbResourceLocator.java

         * @throws CIFSException if the type cannot be determined
         */
        int getType() throws CIFSException;
    
        /**
         * Determines whether this resource represents a workgroup reference.
         *
         * @return whether this is a workgroup reference
         * @throws CIFSException if the determination cannot be made
         */
        boolean isWorkgroup() throws CIFSException;
    
        /**
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 01:32:48 UTC 2025
    - 6.4K bytes
    - Viewed (0)
  4. compat/maven-artifact/src/main/java/org/apache/maven/artifact/versioning/VersionRange.java

         * @param spec string representation of a version or version range
         * @return a new {@link VersionRange} object that represents the spec
         * @throws InvalidVersionSpecificationException if invalid version specification
         */
        public static VersionRange createFromVersionSpec(String spec) throws InvalidVersionSpecificationException {
            if (spec == null) {
                return null;
            }
    
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Wed Jul 23 17:27:08 UTC 2025
    - 19K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/AbstractFutureFallbackAtomicHelperTest.java

        return new URLClassLoader(ClassPathUtil.getClassPathUrls(), classLoader) {
          @Override
          public Class<?> loadClass(String name) throws ClassNotFoundException {
            if (disallowedClassNames.contains(name)) {
              throw new ClassNotFoundException("I'm sorry Dave, I'm afraid I can't do that.");
            }
            if (name.startsWith(concurrentPackage)) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 7.3K bytes
    - Viewed (0)
  6. 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)
  7. docs/smb3-features/04-directory-leasing-design.md

            }
        }
    }
    
    @Override
    protected void doConnect() throws IOException {
        // Request directory lease for directories
        if (isDirectory()) {
            requestDirectoryLease();
        }
        
        // Continue with normal connection logic
        super.doConnect();
    }
    
    @Override
    public void close() throws IOException {
        try {
            super.close();
        } finally {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  8. samples/guide/src/main/java/okhttp3/recipes/ConfigureTimeouts.java

      private final OkHttpClient client;
    
      public ConfigureTimeouts() throws Exception {
        client = new OkHttpClient.Builder()
            .connectTimeout(5, TimeUnit.SECONDS)
            .writeTimeout(5, TimeUnit.SECONDS)
            .readTimeout(5, TimeUnit.SECONDS)
            .callTimeout(10, TimeUnit.SECONDS)
            .build();
      }
    
      public void run() throws Exception {
        Request request = new Request.Builder()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat Sep 28 18:00:26 UTC 2019
    - 1.5K bytes
    - Viewed (0)
  9. samples/guide/src/main/java/okhttp3/recipes/SynchronousGet.java

      private final OkHttpClient client = new OkHttpClient();
    
      public void run() throws Exception {
        Request request = new Request.Builder()
            .url("https://publicobject.com/helloworld.txt")
            .build();
    
        try (Response response = client.newCall(request).execute()) {
          if (!response.isSuccessful()) throw new IOException("Unexpected code " + response);
    
          Headers responseHeaders = response.headers();
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sun May 22 01:29:42 UTC 2016
    - 1.5K bytes
    - Viewed (0)
  10. src/main/java/jcifs/smb1/smb1/TestLocking.java

        }
    
        /**
         * Main method to run the locking test.
         *
         * @param args command line arguments: [-t numThreads] [-i numIter] [-d delay] url
         * @throws Exception if an error occurs during test execution
         */
        public static void main(final String[] args) throws Exception {
            if (args.length < 1) {
                logger.error("usage: TestLocking [-t <numThreads>] [-i <numIter>] [-d <delay>] url");
                System.exit(1);
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 4.2K bytes
    - Viewed (0)
Back to top