Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 371 - 380 of 1,900 for Try (0.04 seconds)

The search processing time has exceeded the limit. The displayed results may be partial.

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/docker/DockerBuildTask.java

            /**
             * Wraps `docker pull` in a retry loop, to try and provide some resilience against
             * transient errors
             * @param baseImage the image to pull.
             */
            private void pullBaseImage(String baseImage) {
                final int maxAttempts = 10;
    
                for (int attempt = 1; attempt <= maxAttempts; attempt++) {
                    try {
                        LoggedExec.exec(execOperations, spec -> {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 6.5K bytes
    - Click Count (0)
  2. compat/maven-compat/src/test/java/org/apache/maven/repository/TestRepositorySystem.java

                    new ArtifactRepositoryPolicy());
        }
    
        @Override
        public Artifact createPluginArtifact(Plugin plugin) {
            VersionRange versionRange;
            try {
                String version = plugin.getVersion();
                if (version == null || version.isEmpty()) {
                    version = "RELEASE";
                }
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jan 10 08:42:00 GMT 2025
    - 12K bytes
    - Click Count (0)
  3. compat/maven-toolchain-model/src/main/java/org/apache/maven/toolchain/model/io/xpp3/MavenToolchainsXpp3Writer.java

         * @throws IOException java.io.IOException if any.
         */
        public void write(Writer writer, PersistedToolchains persistedToolchains) throws IOException {
            try {
                delegate.write(writer, persistedToolchains.getDelegate());
            } catch (XMLStreamException e) {
                throw new IOException(e);
            }
        }
    
        /**
         * Method write.
         *
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Sat May 31 10:30:45 GMT 2025
    - 2.7K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/util/concurrent/TimeoutFuture.java

          if (delegate.isDone()) {
            timeoutFuture.setFuture(delegate);
          } else {
            try {
              @RetainedLocalRef ScheduledFuture<?> timer = timeoutFuture.timer;
              timeoutFuture.timer = null; // Don't include already elapsed delay in delegate.toString()
              String message = "Timed out";
              // This try-finally block ensures that we complete the timeout future, even if attempting
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Dec 22 03:38:46 GMT 2024
    - 8K bytes
    - Click Count (0)
  5. src/test/java/org/codelibs/fess/validation/CustomSizeTest.java

            try {
                final Method method = CustomSize.class.getMethod("minKey");
                final Object defaultValue = method.getDefaultValue();
                return defaultValue != null ? defaultValue.toString() : StringUtil.EMPTY;
            } catch (final Exception e) {
                return StringUtil.EMPTY;
            }
        }
    
        private String getDefaultMaxKey() {
            try {
    Created: Tue Mar 31 13:07:34 GMT 2026
    - Last Modified: Fri Mar 13 23:01:26 GMT 2026
    - 17.4K bytes
    - Click Count (0)
  6. guava/src/com/google/common/base/Internal.java

      @IgnoreJRERequirement
      static long toNanosSaturated(Duration duration) {
        // Using a try/catch seems lazy, but the catch block will rarely get invoked (except for
        // durations longer than approximately +/- 292 years).
        try {
          return duration.toNanos();
        } catch (ArithmeticException tooBig) {
          return duration.isNegative() ? Long.MIN_VALUE : Long.MAX_VALUE;
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Apr 14 15:16:19 GMT 2025
    - 1.9K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        return elements.reverse().iterator();
      }
    
      @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
    - 8.8K bytes
    - Click Count (0)
  8. src/main/java/org/codelibs/core/io/SerializeUtil.java

         */
        public static byte[] fromObjectToBinary(final Object obj) {
            assertArgumentNotNull("obj", obj);
    
            try {
                final ByteArrayOutputStream baos = new ByteArrayOutputStream(BYTE_ARRAY_SIZE);
                final ObjectOutputStream oos = new ObjectOutputStream(baos);
                try {
                    oos.writeObject(obj);
                } finally {
                    oos.close();
                }
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Feb 12 12:10:45 GMT 2026
    - 8.9K bytes
    - Click Count (0)
  9. compat/maven-compat/src/main/java/org/apache/maven/project/DefaultMavenProjectBuilder.java

                for (Object repository : repositories) {
                    if (repository instanceof Repository repositoryInstance) {
                        try {
                            ArtifactRepository repo = repositorySystem.buildArtifactRepository(repositoryInstance);
                            repositorySystem.injectMirror(request.getRepositorySession(), Arrays.asList(repo));
    Created: Sun Apr 05 03:35:12 GMT 2026
    - Last Modified: Fri Jun 06 14:28:57 GMT 2025
    - 12.2K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rerun/TestTaskConfigurer.java

                setTestExecuter(task, retryTestExecuter);
            }
        }
    
        private static Method declaredMethod(Class<?> type, String methodName, Class<?>... paramTypes) {
            try {
                return makeAccessible(type.getDeclaredMethod(methodName, paramTypes));
            } catch (NoSuchMethodException e) {
                throw new RuntimeException(e);
            }
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 3.1K bytes
    - Click Count (0)
Back to Top