Skip to content

Commit a27c99c

Browse files
cgrushkokluever
authored andcommitted
Make JavaOutput.flush() public so it can be accessed by other
formatters. Fixes google#411 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=278690677
1 parent 0eaf806 commit a27c99c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/com/google/googlejavaformat/java/JavaOutput.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ public void indent(int indent) {
178178
}
179179

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

0 commit comments

Comments
 (0)