From 4158c4fc0064ba8d11fa6f862abc132b4770a931 Mon Sep 17 00:00:00 2001 From: ccernat Date: Tue, 14 Feb 2023 20:26:46 +0100 Subject: [PATCH] Rename variable --- .../tech/picnic/errorprone/bugpatterns/NonStaticImport.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonStaticImport.java b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonStaticImport.java index 8676c305bd8..9653992ce0b 100644 --- a/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonStaticImport.java +++ b/error-prone-contrib/src/main/java/tech/picnic/errorprone/bugpatterns/NonStaticImport.java @@ -137,8 +137,8 @@ private static String getImportToRemove(Symbol symbol) { } private static boolean isMatch(Symbol symbol, VisitorState state) { - Symbol enclosingSymbol = symbol.owner; - if (enclosingSymbol == null || enclosingSymbol.kind != TYP) { + Symbol owner = symbol.owner; + if (owner == null || owner.kind != TYP) { return false; } @@ -150,7 +150,7 @@ private static boolean isMatch(Symbol symbol, VisitorState state) { return false; } - String qualifiedTypeName = enclosingSymbol.getQualifiedName().toString(); + String qualifiedTypeName = owner.getQualifiedName().toString(); return !isExempted(qualifiedTypeName, identifierName) && isCandidate(qualifiedTypeName, identifierName); }