Skip to content

Commit

Permalink
Align KotlinJavaPrinter#visitModifier() with JavaPrinter
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Oct 15, 2024
1 parent 642ae3c commit 2f1b957
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1272,7 +1272,7 @@ public <M extends Marker> M visitMarker(Marker marker, PrintOutputCapture<P> p)
* Does not print the final modifier, as it is not supported in Kotlin.
*/
@Override
protected void visitModifier(J.Modifier mod, PrintOutputCapture<P> p) {
public J visitModifier(J.Modifier mod, PrintOutputCapture<P> p) {
visit(mod.getAnnotations(), p);
String keyword = "";
switch (mod.getType()) {
Expand Down Expand Up @@ -1322,6 +1322,7 @@ protected void visitModifier(J.Modifier mod, PrintOutputCapture<P> p) {
beforeSyntax(mod, Space.Location.MODIFIER_PREFIX, p);
p.append(keyword);
afterSyntax(mod, p);
return mod;
}

@Override
Expand Down

0 comments on commit 2f1b957

Please sign in to comment.