Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 541 - 550 of 2,371 for Try (0.01 seconds)

  1. android/guava-tests/test/com/google/common/util/concurrent/AbstractFutureTest.java

              () -> {
                future.cancel(true);
                if (!future.isDone()) {
                  errorMessage.set("Cancel call exited before future was complete.");
                }
              });
          try {
            future.get();
          } catch (Throwable t) {
            // Ignore, we just wanted to block.
          }
          String error = errorMessage.get();
          assertWithMessage(error).that(error).isNull();
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 45.2K bytes
    - Click Count (0)
  2. guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        elements.forEach(action);
      }
    
      @Override
      public int size() {
        return elements.size();
      }
    
      @Override
      public boolean contains(@Nullable Object o) {
        try {
          return o != null && unsafeBinarySearch(o) >= 0;
        } catch (ClassCastException e) {
          return false;
        }
      }
    
      @Override
      public boolean containsAll(Collection<?> targets) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 9K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/fess/sso/saml/SamlAuthenticator.java

                    final String sesState = (String) session.getAttribute(SAML_STATE);
                    if (StringUtil.isNotBlank(sesState)) {
                        session.removeAttribute(SAML_STATE);
                        try {
                            final Auth auth = new Auth(getSettings(), request, response);
                            auth.processResponse();
    
                            if (!auth.isAuthenticated()) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Jan 02 03:13:33 GMT 2026
    - 20.2K bytes
    - Click Count (3)
  4. src/main/java/org/codelibs/fess/opensearch/client/SearchEngineClient.java

         */
        public long getDocumentCount(final String indexName) {
            final FessConfig fessConfig = ComponentUtil.getFessConfig();
            try {
                client.admin().indices().prepareRefresh(indexName).execute().actionGet(fessConfig.getIndexIndicesTimeout());
                try (CurlResponse response = ComponentUtil.getCurlHelper().get("/" + indexName + "/_count").execute()) {
                    if (response.getHttpStatusCode() == 200) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Thu Mar 26 14:36:23 GMT 2026
    - 138.6K bytes
    - Click Count (1)
  5. src/test/java/org/codelibs/fess/webapp/WebXmlTest.java

            factory.setNamespaceAware(true);
            final DocumentBuilder builder = factory.newDocumentBuilder();
            try (InputStream is = getClass().getClassLoader().getResourceAsStream("../webapp/WEB-INF/web.xml")) {
                if (is == null) {
                    try (InputStream is2 = Thread.currentThread().getContextClassLoader().getResourceAsStream("web.xml")) {
                        if (is2 != null) {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Sat Mar 21 09:08:35 GMT 2026
    - 3.1K bytes
    - Click Count (0)
  6. guava-tests/test/com/google/common/reflect/TypeVisitorTest.java

          }
        }.visit(type);
      }
    
      private static void assertVisited(Type type) {
        TypeVisitor visitor = new BaseTypeVisitor();
        try {
          visitor.visit(type);
          fail("Type not visited");
        } catch (UnsupportedOperationException expected) {
        }
        try {
          visitor.visit(new Type[] {type});
          fail("Type not visited");
        } catch (UnsupportedOperationException expected) {
        }
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.8K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java

     *
     * @author Ben Yu
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    final class ForwardingObjectTester {
    
      private static final Method DELEGATE_METHOD;
    
      static {
        try {
          DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate");
          DELEGATE_METHOD.setAccessible(true);
        } catch (SecurityException e) {
          throw new RuntimeException(e);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/ForwardingObjectTester.java

     *
     * @author Ben Yu
     */
    @NullUnmarked
    @GwtIncompatible
    @J2ktIncompatible
    final class ForwardingObjectTester {
    
      private static final Method DELEGATE_METHOD;
    
      static {
        try {
          DELEGATE_METHOD = ForwardingObject.class.getDeclaredMethod("delegate");
          DELEGATE_METHOD.setAccessible(true);
        } catch (SecurityException e) {
          throw new RuntimeException(e);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 2.8K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/util/concurrent/MoreExecutorsTest.java

        ExecutorService service = newDirectExecutorService();
        Thread waiter =
            new Thread() {
              @Override
              public void run() {
                try {
                  service.awaitTermination(1, DAYS);
                } catch (InterruptedException e) {
                  return;
                }
              }
            };
        waiter.start();
        awaitTimedWaiting(waiter);
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.1K bytes
    - Click Count (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/GeneratedMonitorTest.java

          arguments.add(MILLISECONDS);
        }
        if (isDurationBased(method)) {
          arguments.add(Duration.ofMillis(timeout.millis));
        }
        try {
          Object result;
          doingCallLatch.countDown();
          try {
            result = method.invoke(monitor, arguments.toArray());
          } finally {
            callCompletedLatch.countDown();
          }
          if (result == null) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 26.7K bytes
    - Click Count (0)
Back to Top