Skip to content

Commit

Permalink
Make JavaOutput.flush() public so it can be accessed by other
Browse files Browse the repository at this point in the history
formatters.

Fixes #411

-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=278690677
  • Loading branch information
cgrushko authored and kluever committed Nov 6, 2019
1 parent 0eaf806 commit a27c99c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ public void indent(int indent) {
}

/** Flush any incomplete last line, then add the EOF token into our data structures. */
void flush() {
public void flush() {
String lastLine = lineBuilder.toString();
if (!CharMatcher.whitespace().matchesAllOf(lastLine)) {
mutableLines.add(lastLine);
Expand Down

0 comments on commit a27c99c

Please sign in to comment.