src/share/classes/sun/reflect/generics/reflectiveObjects/TypeVariableImpl.java
Print this page
@@ -168,17 +168,12 @@
TypeVariable<?> that = (TypeVariable<?>) o;
GenericDeclaration thatDecl = that.getGenericDeclaration();
String thatName = that.getName();
- return
- (genericDeclaration == null ?
- thatDecl == null :
- genericDeclaration.equals(thatDecl)) &&
- (name == null ?
- thatName == null :
- name.equals(thatName));
+ return Objects.equals(genericDeclaration, thatDecl) &&
+ Objects.equals(name, thatName);
} else
return false;
}