Skip to content

Commit

Permalink
Fix spacing in JavaOptionalSuggestions:GuicePrivateInjectionPoints su…
Browse files Browse the repository at this point in the history
…ggestion

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=106194310
  • Loading branch information
reschly authored and Eddie Aftandilian committed Oct 27, 2015
1 parent 00d211d commit 2474101
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -521,9 +521,8 @@ public static Fix removeModifier(Tree tree, Modifier modifier, VisitorState stat
JCTree posTree = (JCTree) originalModifiers;
// the start pos of the re-lexed tokens is relative to the start of the tree
int startPosition = posTree.getStartPosition() + toRemove.pos;
int endPosition = posTree.getStartPosition() + toRemove.endPos;
// This will leave at least one extra whitespace character, presumably the autoformatter will
// eliminate it.
// add one to endPosition for whitespace character after the modifier
int endPosition = posTree.getStartPosition() + toRemove.endPos + 1;
return replace(startPosition, endPosition, "");
}
}

0 comments on commit 2474101

Please sign in to comment.