Skip to content

Commit

Permalink
Suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
rickie committed Jan 2, 2022
1 parent d4b67c2 commit 8714b37
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,8 @@ public Description matchMemberSelect(MemberSelectTree tree, VisitorState state)
private static String getReplacementWithConcurrencyArgument(
Tree parentExpression, VisitorState state) {
String parentString = Util.treeToString(parentExpression, state);
return parentString.substring(0, parentString.lastIndexOf(')'))
+ ", "
+ NAME_CONCURRENCY_ARGUMENT
+ ")";
return String.format(
"%s, %s)",
parentString.substring(0, parentString.lastIndexOf(')')), NAME_CONCURRENCY_ARGUMENT);
}
}

0 comments on commit 8714b37

Please sign in to comment.