Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for getUnchecked (0.04 sec)

  1. guava-tests/test/com/google/common/cache/CacheLoadingTest.java

            assertThrows(UncheckedExecutionException.class, () -> cache.getUnchecked(1));
        assertThat(ue).hasCauseThat().isSameInstanceAs(e);
    
        assertEquals("1", cache.getUnchecked(1));
        assertEquals(0, removalListener.getCount());
    
        count.set(0);
        cache.refresh(2);
        checkLoggedCause(e);
    
        assertEquals("2", cache.getUnchecked(2));
        assertEquals(0, removalListener.getCount());
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Mon Aug 11 19:31:30 UTC 2025
    - 85.7K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/util/concurrent/Futures.java

          throw new UncheckedExecutionException(wrapper.getCause());
        }
      }
    
      /*
       * Arguably we don't need a timed getUnchecked because any operation slow enough to require a
       * timeout is heavyweight enough to throw a checked exception and therefore be inappropriate to
       * use with getUnchecked. Further, it's not clear that converting the checked TimeoutException to
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 64.3K bytes
    - Viewed (0)
Back to top