diff --git a/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java b/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java index 0d362787ef..514e569d13 100644 --- a/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java +++ b/nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java @@ -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. @@ -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; }