Skip to content

Commit

Permalink
Rename module reference
Browse files Browse the repository at this point in the history
  • Loading branch information
Mindgamesnl committed Aug 24, 2023
1 parent 9c0db17 commit 212632e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion examples/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
</dependency>
<dependency>
<groupId>com.npcnis</groupId>
<artifactId>rpcnis-base</artifactId>
<artifactId>rpcnis-common</artifactId>
<version>${parent.version}</version>
</dependency>
</dependencies>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ public static Object[] overflowArguments(Method method, Object[] allArguments) {
output[output.length - 1] = allArguments[allArguments.length - 1];
}

// sanity check; is the output array the same length as the method's parameter count?
if (output.length != method.getParameterCount())
throw new RuntimeException("Overflowing arguments failed! Expected " + method.getParameterCount() + " arguments, got " + output.length + " arguments.");

return output;
}

Expand Down

0 comments on commit 212632e

Please sign in to comment.