Search Options

Results per page
Sort
Preferred Languages
Advance

Results 151 - 160 of 270 for RuntimeException (0.13 sec)

  1. src/main/java/org/codelibs/core/security/MessageDigestUtil.java

         *
         * @param algorithm
         *            アルゴリズム (利用可能なアルゴリズムは{@link MessageDigest}のJavadoc等を参照してください)。
         *            {@literal null}や空文字列であってはいけません
         * @return {@link MessageDigest}
         * @throws RuntimeException
         *             {@link NoSuchAlgorithmException}が発生した場合
         */
        public static MessageDigest getInstance(final String algorithm) {
            assertArgumentNotEmpty("algorithm", algorithm);
    
            try {
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.1K bytes
    - Viewed (0)
  2. compat/maven-embedder/src/main/java/org/apache/maven/cli/CleanArgument.java

    import java.util.List;
    
    /**
     * CleanArgument
     */
    public class CleanArgument {
        public static String[] cleanArgs(String[] args) {
            try {
                return doCleanArgs(args);
            } catch (RuntimeException e) {
                for (String a : args) {
                    System.out.println("Arg: '" + a + "'");
                }
                throw e;
            }
        }
    
        private static String[] doCleanArgs(String[] args) {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  3. okhttp/src/main/kotlin/okhttp3/internal/platform/ConscryptPlatform.kt

        }.socketFactory
      }
    
      companion object {
        val isSupported: Boolean =
          try {
            // Trigger an early exception over a fatal error, prefer a RuntimeException over Error.
            Class.forName("org.conscrypt.Conscrypt\$Version", false, javaClass.classLoader)
    
            when {
              // Bump this version if we ever have a binary incompatibility
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. okhttp/src/test/java/okhttp3/AutobahnTester.kt

            }
          },
        )
    
        check(latch.await(10, TimeUnit.SECONDS)) { "Timed out waiting for count." }
    
        val failure = failureRef.get()
        if (failure != null) {
          throw RuntimeException(failure)
        }
    
        return countRef.get()
      }
    
      private fun updateReports() {
        val latch = CountDownLatch(1)
        newWebSocket(
          "/updateReports?agent=$USER_AGENT",
    Registered: Fri Nov 01 11:42:11 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  5. build-logic/cleanup/src/main/java/gradlebuild/cleanup/services/KillLeakingJavaProcesses.java

            File psOutFile = new File(rootProjectDir, timestamp + ".psoutput");
    
            try {
                Files.write(psOutFile.toPath(), psOutput);
            } catch (IOException e) {
                throw new RuntimeException(e);
            }
        }
    
        private static void cleanPsOutputAndThreaddumpFilesFromPreviousRun(File rootProjectDir) {
            if (executionMode == ExecutionMode.KILL_LEAKED_PROCESSES_FROM_PREVIOUS_BUILDS) {
    Registered: Wed Nov 06 11:36:14 UTC 2024
    - Last Modified: Mon Aug 19 15:07:24 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/AbstractExecutionThreadServiceTest.java

          runCalled = true;
          assertEquals(State.RUNNING, state());
    
          enterRun.countDown();
          try {
            exitRun.await();
          } catch (InterruptedException e) {
            throw new RuntimeException(e);
          }
        }
    
        @Override
        protected void shutDown() {
          assertTrue(startUpCalled);
          assertTrue(runCalled);
          assertFalse(shutDownCalled);
          shutDownCalled = true;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 12.7K bytes
    - Viewed (0)
  7. src/test/java/org/codelibs/core/misc/DisposableUtilTest.java

            }
        }
    
        /**
         *
         */
        public class TestDisposable2 implements Disposable {
            @Override
            public void dispose() {
                ++count;
                throw new RuntimeException();
            }
        }
    
    Registered: Fri Nov 01 20:58:10 UTC 2024
    - Last Modified: Thu Mar 07 01:59:08 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  8. compat/maven-model/src/main/java/org/apache/maven/model/InputSource.java

         */
        public InputSource clone() {
            try {
                InputSource copy = (InputSource) super.clone();
    
                return copy;
            } catch (Exception ex) {
                throw (RuntimeException)
                        new UnsupportedOperationException(getClass().getName() + " does not support clone()").initCause(ex);
            }
        } // -- InputSource clone()
    
        /**
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4K bytes
    - Viewed (0)
  9. compat/maven-model/src/test/java/org/apache/maven/model/v4/Xpp3DomPerfTest.java

                    reader.read(is, true, new InputSource("id", pom.toString()));
                    i++;
                } catch (XMLStreamException e) {
                    throw new RuntimeException("Error parsing: " + pom, e);
                }
            }
            return i;
        }
    
        /**
         * <p>main.</p>
         *
         * @param args a {@link String} object.
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 3.3K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/util/concurrent/SequentialExecutorTest.java

        Runnable runMe =
            new Runnable() {
              @Override
              public void run() {
                numCalls.incrementAndGet();
                throw new RuntimeException("FAKE EXCEPTION!");
              }
            };
    
        e.execute(runMe);
        e.execute(runMe);
        fakePool.runAll();
    
        assertEquals(2, numCalls.get());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 18 22:10:29 UTC 2024
    - 11.4K bytes
    - Viewed (0)
Back to top