Search Options

Results per page
Sort
Preferred Languages
Advance

Results 511 - 520 of 1,808 for try (0.03 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapComputeIfAbsentTester.java

                        }));
        expectUnchanged();
      }
    
      @MapFeature.Require(absent = SUPPORTS_PUT)
      @CollectionSize.Require(absent = ZERO)
      public void testComputeIfAbsent_unsupportedPresentExistingValue() {
        try {
          assertEquals(
              "computeIfAbsent(present, returnsCurrentValue) should return present or throw",
              v0(),
              getMap()
                  .computeIfAbsent(
                      k0(),
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Nov 14 23:40:07 UTC 2024
    - 6.7K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/stream/StreamUtil.java

             *
             * @param stream the {@link Consumer} to process the {@link Stream}
             */
            public void of(final Consumer<Stream<T>> stream) {
                try (Stream<T> s = supplier.get()) {
                    stream.accept(s);
                }
            }
    
            /**
             * Applies the given function to a stream created by the supplier and returns the result.
    Registered: Fri Sep 05 20:58:11 UTC 2025
    - Last Modified: Thu Jul 31 08:16:49 UTC 2025
    - 4.4K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/fess/app/web/admin/dict/mapping/AdminDictMappingAction.java

            validate(form, messages -> {}, () -> uploadpage(form.dictId));
            verifyToken(() -> uploadpage(form.dictId));
            return charMappingService.getCharMappingFile(form.dictId).map(file -> {
                try (InputStream inputStream = form.charMappingFile.getInputStream()) {
                    file.update(inputStream);
                } catch (final IOException e) {
                    logger.warn("Failed to process a request.", e);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Aug 07 03:06:29 UTC 2025
    - 22.3K bytes
    - Viewed (0)
  4. fess-crawler/src/main/java/org/codelibs/fess/crawler/client/http/HcHttpClient.java

                    for (final Header header : requestHeaderList) {
                        request.addHeader(header);
                    }
    
                    HttpEntity httpEntity = null;
                    try {
                        final HttpResponse response = closeableHttpClient.execute(request, new BasicHttpContext(httpClientContext));
                        httpEntity = response.getEntity();
    Registered: Sun Sep 21 03:50:09 UTC 2025
    - Last Modified: Thu Aug 07 02:55:08 UTC 2025
    - 52.2K bytes
    - Viewed (0)
  5. android/guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

      public <T extends @Nullable Object> T callWithTimeout(
          Callable<T> callable, long timeoutDuration, TimeUnit timeoutUnit) throws ExecutionException {
        checkNotNull(callable);
        checkNotNull(timeoutUnit);
        try {
          return callable.call();
        } catch (RuntimeException e) {
          throw new UncheckedExecutionException(e);
        } catch (Exception e) {
          restoreInterruptIfIsInterruptedException(e);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sun Dec 22 03:38:46 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  6. src/main/java/jcifs/smb/ShareEnumIterator.java

                if (this.filter == null) {
                    try {
                        return adapt(n);
                    } catch (final MalformedURLException e) {
                        log.error("Failed to create child URL", e);
                        continue;
                    }
                }
                try (SmbResource nr = adapt(n)) {
                    if (!this.filter.accept(nr)) {
    Registered: Sun Sep 07 00:10:21 UTC 2025
    - Last Modified: Thu Aug 14 07:14:38 UTC 2025
    - 3.5K bytes
    - Viewed (0)
  7. src/main/java/org/codelibs/fess/job/UpdateLabelJob.java

            final LanguageHelper languageHelper = ComponentUtil.getLanguageHelper();
    
            final StringBuilder resultBuf = new StringBuilder();
    
            try {
                final long count = searchEngineClient.updateByQuery(fessConfig.getIndexDocumentUpdateIndex(), option -> {
                    if (queryBuilder != null) {
                        option.setQuery(queryBuilder);
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Thu Jul 17 08:28:31 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  8. src/test/java/org/codelibs/fess/exception/UserRoleLoginExceptionTest.java

            assertNull(exception.getCause());
        }
    
        public void test_throwAndCatch() {
            // Test throwing and catching the exception
            try {
                throw new UserRoleLoginException(RootAction.class);
            } catch (UserRoleLoginException e) {
                assertEquals(RootAction.class, e.getActionClass());
                assertNull(e.fillInStackTrace());
    Registered: Thu Sep 04 12:52:25 UTC 2025
    - Last Modified: Tue Aug 19 14:09:36 UTC 2025
    - 4.8K bytes
    - Viewed (0)
  9. okhttp-java-net-cookiejar/src/main/kotlin/okhttp3/java/net/cookiejar/JavaNetCookieJar.kt

        }
        val multimap = mapOf("Set-Cookie" to cookieStrings)
        try {
          cookieHandler.put(url.toUri(), multimap)
        } catch (e: IOException) {
          Platform.get().log("Saving cookies failed for " + url.resolve("/...")!!, WARN, e)
        }
      }
    
      override fun loadForRequest(url: HttpUrl): List<Cookie> {
        val cookieHeaders =
          try {
            // The RI passes all headers. We don't have 'em, so we don't pass 'em!
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Sat May 10 11:15:14 UTC 2025
    - 3.8K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/net/HostSpecifierTest.java

        assertTrue(HostSpecifier.isValid(spec));
      }
    
      private void assertBad(String spec) {
        try {
          HostSpecifier.fromValid(spec);
          fail("Should have thrown IllegalArgumentException: " + spec);
        } catch (IllegalArgumentException expected) {
        }
    
        try {
          HostSpecifier.from(spec);
          fail("Should have thrown ParseException: " + spec);
        } catch (ParseException expected) {
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 18:46:00 UTC 2025
    - 3.7K bytes
    - Viewed (0)
Back to top