Package com.google.common.reflect
Class Types.NativeTypeVariableEquals<X>
- java.lang.Object
-
- com.google.common.reflect.Types.NativeTypeVariableEquals<X>
-
- Enclosing class:
- Types
static final class Types.NativeTypeVariableEquals<X> extends java.lang.Object
Per https://code.google.com/p/guava-libraries/issues/detail?id=1635, In JDK 1.7.0_51-b13, TypeVariableImpl.equals() is changed to no longer be equal to custom TypeVariable implementations. As a result, we need to make sure our TypeVariable implementation respects symmetry. Moreover, we don't want to reconstruct a native type variable using our implementation unless some of its bounds have changed in resolution. This avoids creating unequal TypeVariable implementation unnecessarily. When the bounds do change, however, it's fine for the synthetic TypeVariable to be unequal to any native TypeVariable anyway.
-
-
Field Summary
Fields Modifier and Type Field Description (package private) static boolean
NATIVE_TYPE_VARIABLE_ONLY
-
Constructor Summary
Constructors Constructor Description NativeTypeVariableEquals()
-