Skip to content

Commit

Permalink
rename method
Browse files Browse the repository at this point in the history
  • Loading branch information
msridhar committed Oct 9, 2024
1 parent da3f7f0 commit 82f3813
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java
Original file line number Diff line number Diff line change
Expand Up @@ -382,7 +382,7 @@ private static boolean isDirectTypeUseAnnotation(
return !(locationHasInnerTypes && locationHasArray);
}
// For non-nested classes annotations apply to the innermost type.
if (!hasNestedClass(symbol.type)) {
if (!isTypeOfNestedClass(symbol.type)) {
return true;
}
// For nested classes the annotation is only valid if it is on the innermost type.
Expand All @@ -399,7 +399,7 @@ private static int getNestingDepth(Type type) {
return depth;
}

private static boolean hasNestedClass(Type type) {
private static boolean isTypeOfNestedClass(Type type) {
return type.tsym != null && type.tsym.owner instanceof Symbol.ClassSymbol;
}

Expand Down

0 comments on commit 82f3813

Please sign in to comment.