Skip to content

Commit

Permalink
Revert s/memberIdentifier/member/
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Oct 26, 2023
1 parent 1dc148e commit bf21b9f
Showing 1 changed file with 4 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,14 +158,13 @@ private static ImmutableTable<String, String, UndesiredStaticImport> 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)));
}
}
}
Expand Down

0 comments on commit bf21b9f

Please sign in to comment.