0

Live Template Variables - methodParameters() expansion problem

Hi

I have created a new live template with variables as per
http://www.jetbrains.com/idea/webhelp/edit-template-variables-dialog.html

When I use a live template as follows
Preconditions.checkNotNullArgument($parameter$, "$parameter$");

where $parameter$ is defined as methodParameters()

When used within a method, it expands as follows
public final SERVERTHEN replyWith(Object response) {
     Preconditions.checkNotNullArgument([response], "[response]");

...
}


Is there a reason why the square brackets are included in the expansion? In each case I need to remove them from the parameter name to get the statement to compile?

I am running 12.1.1 Ultimate edition.

Thank you.

1 comment

Please sign in to leave a comment.