Skip to content

Commit

Permalink
Align with latest upstream changes
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Mar 4, 2024
1 parent 72201ba commit abe7efb
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public KotlinBlockStatementTemplateGenerator(Set<String> imports, boolean contex
}

@Override
protected void contextFreeTemplate(Cursor cursor, J j, StringBuilder before, StringBuilder after, J insertionPoint, JavaCoordinates.Mode mode) {
protected void contextFreeTemplate(Cursor cursor, J j, StringBuilder before, StringBuilder after) {
if (!(j instanceof Expression)) {
throw new IllegalArgumentException(
"Kotlin templating is currently only implemented for context-free expressions and not for `" + j.getClass() + "` instances.");
Expand Down

0 comments on commit abe7efb

Please sign in to comment.