- Sort Score
- Num 10 results
- Language All
Results 1 - 3 of 3 for rejectTypeVariables (0.09 seconds)
-
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(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
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(); }
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Fri Mar 13 13:01:07 GMT 2026 - 89.3K bytes - Click Count (0) -
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(
Created: Fri Apr 03 12:43:13 GMT 2026 - Last Modified: Thu Jan 29 22:14:05 GMT 2026 - 53.8K bytes - Click Count (0)