Skip to content

Commit

Permalink
Address review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum committed Jan 24, 2024
1 parent d91f396 commit 02055e6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/net/starlark/java/eval/BuiltinFunction.java
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ private Object[] getArgumentVector(
ParamDescriptor[] parameters = desc.getParameters();

// Fast case: reuse positional as Java argument vector
// StringModule methods, which are treated specially below, will never match this case since
// their "self" parameter is restricted to String and thus
// getPositionalsCanBeJavaArgumentVector() is false.
if (desc.getPositionalsCanBeJavaArgumentVector()
&& positional.length == parameters.length
&& named.length == 0) {
Expand Down

0 comments on commit 02055e6

Please sign in to comment.