Skip to content

Commit

Permalink
comment on NoType
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Oct 18, 2023
1 parent 5df3778 commit f9e39ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion nullaway/src/main/java/com/uber/nullaway/GenericsChecks.java
Original file line number Diff line number Diff line change
Expand Up @@ -547,7 +547,8 @@ public Boolean visitClassType(Type.ClassType lhsType, Type rhsType) {
}
}
// If there is an enclosing type (for non-static inner classes), its type argument nullability
// should also match
// should also match. When there is no enclosing type, getEnclosingType() returns a NoType
// object, which gets handled by the fallback visitType() method
return lhsType.getEnclosingType().accept(this, rhsType.getEnclosingType());
}

Expand Down

0 comments on commit f9e39ca

Please sign in to comment.