Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 93 for CHECKED (0.22 sec)

  1. android/guava/src/com/google/common/cache/LoadingCache.java

       * new value.
       *
       * <p>If the cache loader associated with this cache is known not to throw checked exceptions,
       * then prefer {@link #getUnchecked} over this method.
       *
       * @throws ExecutionException if a checked exception was thrown while loading the value. ({@code
       *     ExecutionException} is thrown <a
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java

     */
    @GwtCompatible
    final class FuturesGetCheckedInputs {
      static final Exception CHECKED_EXCEPTION = new Exception("mymessage");
      static final Future<String> FAILED_FUTURE_CHECKED_EXCEPTION =
          immediateFailedFuture(CHECKED_EXCEPTION);
      static final RuntimeException UNCHECKED_EXCEPTION = new RuntimeException("mymessage");
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 13:46:56 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.CHECKED_EXCEPTION;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.ERROR;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.ERROR_FUTURE;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.FAILED_FUTURE_CHECKED_EXCEPTION;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/base/Suppliers.java

        public T get() {
          // A 2-field variant of Double Checked Locking.
          if (!initialized) {
            synchronized (this) {
              if (!initialized) {
                T t = delegate.get();
                value = t;
                initialized = true;
                return t;
              }
            }
          }
          // This is safe because we checked `initialized`.
          return uncheckedCastNullableTToT(value);
        }
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.CHECKED_EXCEPTION;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.ERROR;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.ERROR_FUTURE;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.FAILED_FUTURE_CHECKED_EXCEPTION;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/util/concurrent/FakeTimeLimiter.java

      }
    
      @Override
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      public void runWithTimeout(Runnable runnable, long timeoutDuration, TimeUnit timeoutUnit) {
        checkNotNull(runnable);
        checkNotNull(timeoutUnit);
        try {
          runnable.run();
        } catch (Exception e) { // sneaky checked exception
          throw new UncheckedExecutionException(e);
        } catch (Error e) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Dec 14 20:35:03 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/util/concurrent/ImmediateFuture.java

      }
    
      @Override
      @SuppressWarnings("CatchingUnchecked") // sneaky checked exception
      public void addListener(Runnable listener, Executor executor) {
        checkNotNull(listener, "Runnable was null.");
        checkNotNull(executor, "Executor was null.");
        try {
          executor.execute(listener);
        } catch (Exception e) { // sneaky checked exception
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Dec 13 19:45:20 GMT 2023
    - 3.5K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedTest.java

    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.CHECKED_EXCEPTION;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.ERROR;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.ERROR_FUTURE;
    import static com.google.common.util.concurrent.FuturesGetCheckedInputs.FAILED_FUTURE_CHECKED_EXCEPTION;
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.4K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/AbstractSortedMultiset.java

          @ParametricNullness E fromElement,
          BoundType fromBoundType,
          @ParametricNullness E toElement,
          BoundType toBoundType) {
        // These are checked elsewhere, but NullPointerTester wants them checked eagerly.
        checkNotNull(fromBoundType);
        checkNotNull(toBoundType);
        return tailMultiset(fromElement, fromBoundType).headMultiset(toElement, toBoundType);
      }
    
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 4.6K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/util/concurrent/SequentialExecutor.java

          queue.add(submittedTask);
          workerRunningState = QUEUING;
        }
    
        try {
          executor.execute(worker);
        } catch (Throwable t) {
          // Any Exception is either a RuntimeException or sneaky checked exception.
          synchronized (queue) {
            boolean removed =
                (workerRunningState == IDLE || workerRunningState == QUEUING)
                    && queue.removeLastOccurrence(submittedTask);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 01 21:46:34 GMT 2024
    - 10.6K bytes
    - Viewed (0)
Back to top