Skip to content

Commit

Permalink
chore(perf): Use Collections::singletonList when single argument is…
Browse files Browse the repository at this point in the history
… matched.
  • Loading branch information
nstdio committed May 1, 2024
1 parent b35c204 commit daf29a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/javacc/RSQLParser.jj
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ List<String> Arguments():
{
( <LPAREN> value = CommaSepArguments() <RPAREN> ) { return (List) value; }
|
(value = Argument() { return Arrays.asList((String) value); })?
(value = Argument() { return Collections.singletonList((String) value); })?
{
return Collections.emptyList();
}
Expand Down

0 comments on commit daf29a8

Please sign in to comment.