Search Options

Results per page
Sort
Preferred Languages
Advance

Results 91 - 100 of 1,808 for try (0.01 sec)

  1. docs/smb3-features/06-witness-protocol-design.md

        }
    }
    
    private InetAddress discoverWitnessService() throws IOException {
        // Try the same server first
        InetAddress serverAddress = transport.getRemoteAddress();
        
        if (isWitnessServiceAvailable(serverAddress)) {
            return serverAddress;
        }
        
        // Query for cluster witness service via DNS
        try {
            String clusterName = getClusterName(serverAddress);
            if (clusterName != null) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 42K bytes
    - Viewed (0)
  2. guava-testlib/test/com/google/common/testing/ClassSanityTesterTest.java

      }
    
      public void testNullsOnReturnValues_bad() throws Exception {
        try {
          tester.forAllPublicStaticMethods(BadNullsFactory.class).thatReturn(Object.class).testNulls();
        } catch (AssertionError expected) {
          return;
        }
        fail();
      }
    
      public void testNullsOnReturnValues_returnTypeFiltered() throws Exception {
        try {
          tester
              .forAllPublicStaticMethods(BadNullsFactory.class)
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Aug 10 19:54:19 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/io/FileUtil.java

         */
        public static String getCanonicalPath(final File file) {
            assertArgumentNotNull("file", file);
    
            try {
                return file.getCanonicalPath();
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 8.8K bytes
    - Viewed (0)
  4. docs/smb3-features/04-directory-leasing-design.md

            lock.writeLock().lock();
            try {
                if (children.remove(childName) != null) {
                    hasChanges = true;
                    lastUpdateTime = System.currentTimeMillis();
                }
            } finally {
                lock.writeLock().unlock();
            }
        }
        
        public List<FileInfo> getChildren() {
            lock.readLock().lock();
            try {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 16 02:53:50 UTC 2025
    - 36.2K bytes
    - Viewed (0)
  5. src/test/java/org/codelibs/fess/suggest/concurrent/DeferredTest.java

            Thread th = new Thread(() -> {
                try {
                    Thread.sleep(1000);
                } catch (InterruptedException ignore) {}
                deferred.reject(new SuggesterException("test"));
            });
            th.start();
    
            try {
                deferred.promise().getResponse(10, TimeUnit.SECONDS);
                fail();
    Registered: Fri Sep 19 09:08:11 UTC 2025
    - Last Modified: Sat Mar 15 06:51:20 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  6. src/test/java/org/codelibs/fess/helper/LabelTypeHelperTest.java

            try {
                labelTypeHelper.refresh(labelTypeList);
                // Method is protected, so we test it indirectly through refresh
            } catch (Exception e) {
                fail("buildLabelTypePatternList() should not throw an exception: " + e.getMessage());
            }
        }
    
        public void test_labelTypePattern_constructor() {
            try {
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Sat Jul 19 23:49:30 UTC 2025
    - 12.4K bytes
    - Viewed (0)
  7. src/test/java/jcifs/SmbWatchHandleTest.java

        /**
         * Test AutoCloseable behavior with try-with-resources
         */
        @Test
        void testAutoCloseable() throws CIFSException {
            // Create a mock that tracks close calls
            SmbWatchHandle autoCloseableHandle = mock(SmbWatchHandle.class);
            when(autoCloseableHandle.watch()).thenReturn(mockNotifications);
    
            // Use try-with-resources
            try (SmbWatchHandle handle = autoCloseableHandle) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 05:31:44 UTC 2025
    - 13.2K bytes
    - Viewed (0)
  8. src/main/java/jcifs/smb/SmbEnumerationUtil.java

                }
            }
    
            final SmbTreeConnection treeConn = SmbTreeConnection.create(tc);
            try (SmbTreeHandleImpl th = treeConn.connectHost(locator, locator.getServerWithDfs());
                    SmbSessionImpl session = th.getSession();
                    SmbTransportImpl transport = session.getTransport()) {
                try {
                    entries = doMsrpcShareEnum(tc, locator, transport.getRemoteAddress());
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 12.3K bytes
    - Viewed (0)
  9. src/test/java/jcifs/util/AuthenticationRateLimiterTest.java

            for (int i = 0; i < 3; i++) {
                rateLimiter.checkAttempt(username, ip);
                rateLimiter.recordFailure(username, ip);
            }
    
            // Try after lockout (will be blocked)
            try {
                rateLimiter.checkAttempt(username, ip);
            } catch (SmbException e) {
                // Expected
            }
    
            // Block an IP
            String ip2 = "192.168.1.11";
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 15.8K bytes
    - Viewed (0)
  10. compat/maven-compat/src/main/java/org/apache/maven/project/interpolation/StringSearchModelInterpolator.java

                        if (isQualifiedForInterpolation(field, type)) {
                            boolean isAccessible = field.isAccessible();
                            field.setAccessible(true);
                            try {
                                try {
                                    if (String.class == type) {
                                        String value = (String) field.get(target);
                                        if (value != null) {
    Registered: Sun Sep 07 03:35:12 UTC 2025
    - Last Modified: Fri Jun 06 14:28:57 UTC 2025
    - 14K bytes
    - Viewed (0)
Back to top