Skip to content

Commit 596dcf8

Browse files
committed
switch to ==
1 parent 5101064 commit 596dcf8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nullaway/src/main/java/com/uber/nullaway/generics/TypeSubstitutionUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ public Type visitMethodType(Type.MethodType t, Type other) {
294294
@Override
295295
public Type visitClassType(Type.ClassType t, Type other) {
296296
if (other instanceof Type.WildcardType wt) {
297-
if (wt.kind.equals(BoundKind.EXTENDS)) {
297+
if (wt.kind == BoundKind.EXTENDS) {
298298
// As a temporary measure, we restore nullability annotations from the upper bound of the
299299
// wildcard.
300300
// TODO revisit this decision when we add fuller support for inference and wildcards.

0 commit comments

Comments
 (0)