From 82f381389c5cc07b7fdf9664012f403f433a2bf4 Mon Sep 17 00:00:00 2001 From: Manu Sridharan Date: Wed, 9 Oct 2024 15:32:05 -0700 Subject: [PATCH] rename method --- nullaway/src/main/java/com/uber/nullaway/NullabilityUtil.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; }