From bf21b9f01241db4accd6388b04bb5856092c1c94 Mon Sep 17 00:00:00 2001 From: Rick Ossendrijver Date: Thu, 26 Oct 2023 10:47:18 +0200 Subject: [PATCH] Revert `s/memberIdentifier/member/` --- .../picnic/errorprone/bugpatterns/NonStaticImport.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 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 2a3d5932272..4c84992619a 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 @@ -158,14 +158,13 @@ private static ImmutableTable getUndesire if (importTree.isStatic() && qualifiedIdentifier instanceof MemberSelectTree) { MemberSelectTree memberSelectTree = (MemberSelectTree) qualifiedIdentifier; String type = SourceCode.treeToString(memberSelectTree.getExpression(), state); - String memberIdentifier = memberSelectTree.getIdentifier().toString(); - if (shouldNotBeStaticallyImported(type, memberIdentifier)) { + String member = memberSelectTree.getIdentifier().toString(); + if (shouldNotBeStaticallyImported(type, member)) { imports.put( type, - memberIdentifier, + member, new AutoValue_NonStaticImport_UndesiredStaticImport( - importTree, - SuggestedFix.builder().removeStaticImport(type + '.' + memberIdentifier))); + importTree, SuggestedFix.builder().removeStaticImport(type + '.' + member))); } } }