Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 430 for unchecked (0.26 sec)

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

        try {
          getUnchecked(FAILED_FUTURE_CHECKED_EXCEPTION);
          fail();
        } catch (UncheckedExecutionException expected) {
          assertEquals(CHECKED_EXCEPTION, expected.getCause());
        }
      }
    
      public void testGetUnchecked_ExecutionExceptionUnchecked() {
        try {
          getUnchecked(FAILED_FUTURE_UNCHECKED_EXCEPTION);
          fail();
        } catch (UncheckedExecutionException expected) {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 13 14:28:25 GMT 2024
    - 4.3K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/util/concurrent/FuturesGetUncheckedTest.java

        try {
          getUnchecked(FAILED_FUTURE_CHECKED_EXCEPTION);
          fail();
        } catch (UncheckedExecutionException expected) {
          assertEquals(CHECKED_EXCEPTION, expected.getCause());
        }
      }
    
      public void testGetUnchecked_ExecutionExceptionUnchecked() {
        try {
          getUnchecked(FAILED_FUTURE_UNCHECKED_EXCEPTION);
          fail();
        } catch (UncheckedExecutionException expected) {
    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)
  3. guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ImmutableSortedSet.java

      }
    
      @SuppressWarnings("unchecked")
      public static <E> ImmutableSortedSet<E> of() {
        return (ImmutableSortedSet<E>) NATURAL_EMPTY_SET;
      }
    
      public static <E extends Comparable<? super E>> ImmutableSortedSet<E> of(E element) {
        return ofInternal(Ordering.natural(), element);
      }
    
      @SuppressWarnings("unchecked")
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Tue Feb 27 19:19:19 GMT 2024
    - 15.3K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/ThrowablesTest.java

    /**
     * Unit test for {@link Throwables}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    public class ThrowablesTest extends TestCase {
      public void testThrowIfUnchecked_Unchecked() {
        try {
          throwIfUnchecked(new SomeUncheckedException());
          fail();
        } catch (SomeUncheckedException expected) {
        }
      }
    
      public void testThrowIfUnchecked_Error() {
        try {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/base/ThrowablesTest.java

    /**
     * Unit test for {@link Throwables}.
     *
     * @author Kevin Bourrillion
     */
    @GwtCompatible(emulated = true)
    public class ThrowablesTest extends TestCase {
      public void testThrowIfUnchecked_Unchecked() {
        try {
          throwIfUnchecked(new SomeUncheckedException());
          fail();
        } catch (SomeUncheckedException expected) {
        }
      }
    
      public void testThrowIfUnchecked_Error() {
        try {
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java

      }
    
      @Override
      public Map<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
        Entry<String, String>[] array = (Entry<String, String>[]) new Entry<?, ?>[entries.length];
        int i = 0;
        for (Object o : entries) {
          @SuppressWarnings("unchecked")
          Entry<String, String> e = (Entry<String, String>) o;
          array[i++] = e;
        }
        return create(array);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  7. guava-testlib/src/com/google/common/collect/testing/TestStringMapGenerator.java

      }
    
      @Override
      public Map<String, String> create(Object... entries) {
        @SuppressWarnings("unchecked")
        Entry<String, String>[] array = (Entry<String, String>[]) new Entry<?, ?>[entries.length];
        int i = 0;
        for (Object o : entries) {
          @SuppressWarnings("unchecked")
          Entry<String, String> e = (Entry<String, String>) o;
          array[i++] = e;
        }
        return create(array);
      }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  8. android/guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

          return generator.order(insertionOrder);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public K[] createKeyArray(int length) {
          return (K[]) new Object[length];
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public V[] createValueArray(int length) {
          return (V[]) new Object[length];
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  9. guava-testlib/src/com/google/common/collect/testing/google/DerivedGoogleCollectionGenerators.java

          return generator.order(insertionOrder);
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public K[] createKeyArray(int length) {
          return (K[]) new Object[length];
        }
    
        @SuppressWarnings("unchecked")
        @Override
        public V[] createValueArray(int length) {
          return (V[]) new Object[length];
        }
    
        @Override
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 6.7K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularContiguousSet.java

        return false;
      }
    
      @Override
      public C first() {
        // requireNonNull is safe because we checked the range is not empty in ContiguousSet.create.
        return requireNonNull(range.lowerBound.leastValueAbove(domain));
      }
    
      @Override
      public C last() {
        // requireNonNull is safe because we checked the range is not empty in ContiguousSet.create.
        return requireNonNull(range.upperBound.greatestValueBelow(domain));
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 8.4K bytes
    - Viewed (0)
Back to top