Skip to content

Commit

Permalink
Tweak and improve InlineMe CL automated descriptions.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 423817727
  • Loading branch information
kluever authored and Error Prone Team committed Jan 24, 2022
1 parent 27f3a18 commit 2fc829e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,10 @@ static Api create(MethodSymbol method, VisitorState state) {
abstract String extraMessage();

final String message() {
return shortName()
+ (isDeprecated() ? " is deprecated and" : "")
+ " should be inlined"
return "Migrate (via inlining) from "
+ (isDeprecated() ? "deprecated " : "")
+ shortName()
+ " to its replacement"
+ extraMessage();
}

Expand Down

0 comments on commit 2fc829e

Please sign in to comment.