Skip to content

Commit

Permalink
fix: DefaultJavaPrettyPrinter exposes the tokenWriter for subclasses (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
pvojtechovsky authored and monperrus committed Jan 1, 2018
1 parent d997c81 commit fe9e5a0
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1986,6 +1986,13 @@ public Map<Integer, Integer> getLineNumberMapping() {
return getPrinterHelper().getLineNumberMapping();
}

/**
* @return current {@link TokenWriter}, so the subclasses of {@link DefaultJavaPrettyPrinter} can print tokens too
*/
protected TokenWriter getPrinterTokenWriter() {
return printer;
}

/**
* Set {@link TokenWriter}, which has to be used to print tokens
*/
Expand Down

0 comments on commit fe9e5a0

Please sign in to comment.