Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 171 - 180 of 2,240 for throwIf (0.37 seconds)

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

              MILLISECONDS.sleep(DELAY_MS);
            } catch (InterruptedException e) {
              throw new RuntimeException(e);
            }
            throw new SampleRuntimeException();
          };
    
      private TimeLimiter service;
    
      private static final ExecutorService executor = newFixedThreadPool(1);
    
      @Override
      protected void setUp() throws Exception {
        super.setUp();
        service = SimpleTimeLimiter.create(executor);
      }
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 9.4K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/util/concurrent/SimpleTimeLimiter.java

          throw e;
        } catch (ExecutionException e) {
          wrapAndThrowRuntimeExecutionExceptionOrError(e.getCause());
          throw new AssertionError();
        }
      }
    
      private static Exception throwCause(Exception e, boolean combineStackTraces) throws Exception {
        Throwable cause = e.getCause();
        if (cause == null) {
          throw e;
        }
        if (combineStackTraces) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 08 18:35:13 GMT 2025
    - 9.6K bytes
    - Click Count (0)
  3. src/main/java/org/codelibs/core/lang/ClassUtil.java

         * @return {@link Class}
         * @throws EmptyArgumentException
         *             If the class name is {@literal null} or empty.
         * @throws ClassNotFoundRuntimeException
         *             If a {@link ClassNotFoundException} occurs.
         * @see #forName(String)
         */
        public static Class<?> convertClass(final String className) throws ClassNotFoundRuntimeException {
    Created: Fri Apr 03 20:58:12 GMT 2026
    - Last Modified: Thu Jul 31 08:16:49 GMT 2025
    - 25.6K bytes
    - Click Count (0)
  4. android/guava-tests/test/com/google/common/util/concurrent/UncheckedThrowingFuture.java

      private static void rethrow(ExecutionException e) throws ExecutionException {
        Throwable wrapper = e.getCause();
        if (wrapper instanceof WrapperException) {
          Throwable cause = wrapper.getCause();
          if (cause instanceof RuntimeException) {
            throw (RuntimeException) cause;
          } else if (cause instanceof Error) {
            throw (Error) cause;
          }
        }
        throw e;
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Dec 19 18:03:30 GMT 2024
    - 3.3K bytes
    - Click Count (0)
  5. android/guava-tests/test/com/google/common/cache/AbstractLoadingCacheTest.java

        LoadingCache<Object, Object> cache =
            new AbstractLoadingCache<Object, Object>() {
              @Override
              public Object get(Object key) throws ExecutionException {
                Object v = valueRef.get();
                if (v == null) {
                  throw new ExecutionException(cause);
                }
                return v;
              }
    
              @Override
              public @Nullable Object getIfPresent(Object key) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Tue Sep 30 22:03:28 GMT 2025
    - 5K bytes
    - Click Count (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/WrappingScheduledExecutorServiceTest.java

            throws InterruptedException {
          throw new UnsupportedOperationException();
        }
    
        @Override
        public <T> T invokeAny(Collection<? extends Callable<T>> tasks)
            throws ExecutionException, InterruptedException {
          throw new UnsupportedOperationException();
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 7.5K bytes
    - Click Count (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      }
    
      public void testDefaultExecutorIsShutdownWhenServiceFails() throws Exception {
        AtomicReference<ScheduledExecutorService> executor = Atomics.newReference();
        AbstractScheduledService service =
            new AbstractScheduledService() {
              @Override
              protected void startUp() throws Exception {
                throw new Exception("Failed");
              }
    
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  8. guava-tests/test/com/google/common/util/concurrent/AbstractScheduledServiceTest.java

      }
    
      public void testDefaultExecutorIsShutdownWhenServiceFails() throws Exception {
        AtomicReference<ScheduledExecutorService> executor = Atomics.newReference();
        AbstractScheduledService service =
            new AbstractScheduledService() {
              @Override
              protected void startUp() throws Exception {
                throw new Exception("Failed");
              }
    
              @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 16 22:45:21 GMT 2026
    - 22.8K bytes
    - Click Count (0)
  9. android/guava-tests/test/com/google/common/io/ByteSourceTest.java

      }
    
      private static final byte[] bytes = newPreFilledByteArray(10000);
    
      private TestByteSource source;
    
      @Override
      protected void setUp() throws Exception {
        source = new TestByteSource(bytes);
      }
    
      public void testOpenBufferedStream() throws IOException {
        InputStream in = source.openBufferedStream();
        assertTrue(source.wasStreamOpened());
        assertFalse(source.wasStreamClosed());
    
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Mar 19 18:53:45 GMT 2026
    - 15.6K bytes
    - Click Count (0)
  10. guava/src/com/google/common/collect/ImmutableList.java

       *
       * @throws UnsupportedOperationException always
       * @deprecated Unsupported operation.
       */
      @Deprecated
      @Override
      @DoNotCall("Always throws UnsupportedOperationException")
      public final void add(int index, E element) {
        throw new UnsupportedOperationException();
      }
    
      /**
       * Guaranteed to throw an exception and leave the list unmodified.
       *
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Sun Mar 08 16:16:42 GMT 2026
    - 30.6K bytes
    - Click Count (0)
Back to Top