Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 1,808 for try (0.04 sec)

  1. 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)
  2. src/main/java/org/codelibs/core/io/PropertiesUtil.java

         */
        public static void load(final Properties props, final InputStream in) {
            assertArgumentNotNull("props", props);
            assertArgumentNotNull("in", in);
    
            try {
                props.load(in);
            } catch (final IOException e) {
                throw new IORuntimeException(e);
            }
        }
    
        /**
         * Wraps exception handling for {@link Properties#load(Reader)}.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 7.9K bytes
    - Viewed (0)
  3. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/connection/RouteSelector.kt

          postponedRoutes.clear()
        }
    
        return Selection(routes)
      }
    
      /** Prepares the proxy servers to try. */
      private fun resetNextProxy(
        url: HttpUrl,
        proxy: Proxy?,
      ) {
        fun selectProxies(): List<Proxy> {
          // If the user specifies a proxy, try that and only that.
          if (proxy != null) return listOf(proxy)
    
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Wed Mar 19 19:25:20 UTC 2025
    - 7.3K bytes
    - Viewed (2)
  4. 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)
  5. 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 (1)
  6. 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)
  7. src/main/java/jcifs/smb/Kerb5Context.java

            SUPPORTED_MECHS = new ASN1ObjectIdentifier[] { KRB5_MECH_OID, KRB5_MS_MECH_OID };
    
            Oid krbNameOid = null;
            Oid krbMechOid = null;
            try {
                krbNameOid = new Oid("1.2.840.113554.1.2.2.1");
                krbMechOid = new Oid("1.2.840.113554.1.2.2");
            } catch (Exception e) {
                log.error("Failed to initialize kerberos OIDs", e);
            }
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 13.5K bytes
    - Viewed (1)
  8. okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt

     * unhealthy.
     *
     * @param source the source used to read bytes from the socket.
     */
    internal fun Socket.isHealthy(source: BufferedSource): Boolean =
      try {
        val readTimeout = soTimeout
        try {
          soTimeout = 1
          !source.exhausted()
        } finally {
          soTimeout = readTimeout
        }
      } catch (_: SocketTimeoutException) {
        true // Read timed out; socket is good.
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jul 31 04:18:40 UTC 2025
    - 10.2K bytes
    - Viewed (1)
  9. src/main/java/jcifs/internal/witness/WitnessClient.java

                WitnessNotificationListener listener) {
    
            return CompletableFuture.supplyAsync(() -> {
                try {
                    // Create registration
                    WitnessRegistration registration =
                            new WitnessRegistration(shareName, serverAddress, WitnessServiceType.FILE_SERVER_WITNESS);
    
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Sat Aug 30 05:58:03 UTC 2025
    - 20.8K bytes
    - Viewed (0)
  10. fess-crawler/src/test/java/org/codelibs/fess/crawler/client/http/HcHttpClientTest.java

                    try {
                        Thread.sleep(2000);
                    } catch (InterruptedException e) {
                        throw new CrawlingAccessException(e);
                    }
                    return null;
                }
            };
            client.setAccessTimeout(1);
            try {
                client.doGet("http://localhost/");
                fail();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Sat Sep 06 04:15:37 UTC 2025
    - 11.7K bytes
    - Viewed (0)
Back to top