Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for rejectTypeVariables (0.3 sec)

  1. guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      private static void assertHasTypeVariable(Type type) {
        try {
          TypeToken.of(type).rejectTypeVariables();
          fail("Should contain TypeVariable");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      private static void assertNoTypeVariable(Type type) {
        TypeToken.of(type).rejectTypeVariables();
      }
    
    Java
    - Registered: Fri Apr 12 12:43:09 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/reflect/TypeTokenTest.java

      private static void assertHasTypeVariable(Type type) {
        try {
          TypeToken.of(type).rejectTypeVariables();
          fail("Should contain TypeVariable");
        } catch (IllegalArgumentException expected) {
        }
      }
    
      private static void assertNoTypeVariable(Type type) {
        TypeToken.of(type).rejectTypeVariables();
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 17:15:24 GMT 2024
    - 88.7K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/reflect/TypeToken.java

      /**
       * Ensures that this type token doesn't contain type variables, which can cause unchecked type
       * errors for callers like {@link TypeToInstanceMap}.
       */
      @CanIgnoreReturnValue
      final TypeToken<T> rejectTypeVariables() {
        new TypeVisitor() {
          @Override
          void visitTypeVariable(TypeVariable<?> type) {
            throw new IllegalArgumentException(
    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