Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for isInstanceOfThrowableClass (0.2 sec)

  1. android/guava/src/com/google/common/util/concurrent/AbstractCatchingFuture.java

          set(uncheckedCastNullableTToT(sourceResult));
          return;
        }
    
        if (!isInstanceOfThrowableClass(throwable, localExceptionType)) {
          setFuture(localInputFuture);
          // TODO(cpovirk): Test that fallback is not run in this case.
          return;
        }
    
        @SuppressWarnings("unchecked") // verified safe by isInstanceOfThrowableClass
        X castThrowable = (X) throwable;
        T fallbackResult;
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 8.7K bytes
    - Viewed (0)
  2. guava-gwt/src-super/com/google/common/util/concurrent/super/com/google/common/util/concurrent/Platform.java

     */
    
    package com.google.common.util.concurrent;
    
    
    /** Methods factored out so that they can be emulated differently in GWT. */
    @ElementTypesAreNonnullByDefault
    final class Platform {
      static boolean isInstanceOfThrowableClass(Throwable t, Class<? extends Throwable> expectedClass) {
        /*
         * This method is used only by CatchingFuture, and CatchingFuture accepts only Throwable.class
         * under GWT.
         */
        return true;
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 08 20:30:27 GMT 2022
    - 1.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/util/concurrent/Platform.java

    /** Methods factored out so that they can be emulated differently in GWT. */
    @GwtCompatible(emulated = true)
    @ElementTypesAreNonnullByDefault
    final class Platform {
      static boolean isInstanceOfThrowableClass(
          @CheckForNull Throwable t, Class<? extends Throwable> expectedClass) {
        return expectedClass.isInstance(t);
      }
    
      static void restoreInterruptIfIsInterruptedException(Throwable t) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue May 10 12:27:25 GMT 2022
    - 1.4K bytes
    - Viewed (0)
Back to top