Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 624 for unchecked (0.15 sec)

  1. android/guava-testlib/src/com/google/common/collect/testing/google/TestStringBiMapGenerator.java

      }
    
      @Override
      public final BiMap<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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  2. 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)
  3. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Fri Feb 09 15:49:48 GMT 2024
    - 23.6K bytes
    - Viewed (0)
  4. guava/src/com/google/common/cache/LoadingCache.java

       *
       * <p><b>Warning:</b> this method silently converts checked exceptions to unchecked exceptions,
       * and should not be used with cache loaders which throw checked exceptions. In such cases use
       * {@link #get} instead.
       *
       * @throws UncheckedExecutionException if an exception was thrown while loading the value. (As
       *     explained in the last paragraph above, this should be an unchecked exception only.)
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Sat Aug 06 17:12:03 GMT 2022
    - 8.3K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/reflect/AbstractInvocationHandlerTest.java

            .testEquals();
      }
    
      @SuppressWarnings("unchecked") // proxy of List<String>
      private static List<String> newDelegatingList(List<String> delegate) {
        return Reflection.newProxy(List.class, new DelegatingInvocationHandler(delegate));
      }
    
      @SuppressWarnings("unchecked") // proxy of List<String>
      private static List<String> newDelegatingListWithEquals(List<String> delegate) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Apr 17 15:49:06 GMT 2023
    - 5.8K bytes
    - Viewed (0)
  6. android/guava-testlib/src/com/google/common/collect/testing/google/TestStringSetMultimapGenerator.java

      }
    
      @Override
      public final SetMultimap<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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 3K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/util/concurrent/FuturesGetCheckedInputs.java

    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");
      static final Future<String> FAILED_FUTURE_UNCHECKED_EXCEPTION =
          immediateFailedFuture(UNCHECKED_EXCEPTION);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 13:46:56 GMT 2023
    - 6.2K bytes
    - Viewed (0)
  8. 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)
  9. 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 May 03 12:43:13 GMT 2024
    - Last Modified: Mon Feb 26 19:46:10 GMT 2024
    - 2.4K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/reflect/TypeToken.java

          Class<? super T> supertype, Type[] upperBounds) {
        for (Type upperBound : upperBounds) {
          @SuppressWarnings("unchecked") // T's upperbound is <? super T>.
          TypeToken<? super T> bound = (TypeToken<? super T>) of(upperBound);
          if (bound.isSubtypeOf(supertype)) {
            @SuppressWarnings({"rawtypes", "unchecked"}) // guarded by the isSubtypeOf check.
            TypeToken<? super T> result = bound.getSupertype((Class) supertype);
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Jun 26 21:02:13 GMT 2023
    - 53.6K bytes
    - Viewed (0)
Back to top