MCPcopy Create free account
hub / github.com/antlr/codebuff / NativeTypeVariableEquals

Class NativeTypeVariableEquals

output/java_guava/1.4.16/Types.java:662–664  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

660
661
662 static final class NativeTypeVariableEquals<X> {
663 static final boolean NATIVE_TYPE_VARIABLE_ONLY = ! NativeTypeVariableEquals.class.getTypeParameters() [0].equals(newArtificialTypeVariable(NativeTypeVariableEquals.class, "X"));
664 }
665
666 private Types() {}
667}

Callers

nothing calls this directly

Calls 3

equalsMethod · 0.65
getTypeParametersMethod · 0.45

Tested by

no test coverage detected