Checks that the given parameters are valid to call this method. @param arguments the arguments to check @throws IllegalArgumentException if the parameters are not valid @deprecated
(Class[] arguments)
| 90 | * @deprecated |
| 91 | */ |
| 92 | @Deprecated |
| 93 | public void checkParameters(Class[] arguments) { |
| 94 | // let's check that the argument types are valid |
| 95 | if (!isValidMethod(arguments)) { |
| 96 | throw new IllegalArgumentException( |
| 97 | "Parameters to method: " |
| 98 | + getName() |
| 99 | + " do not match types: " |
| 100 | + FormatHelper.toArrayString(getParameterTypes()) |
| 101 | + " for arguments: " |
| 102 | + FormatHelper.toArrayString(arguments)); |
| 103 | } |
| 104 | } |
| 105 | |
| 106 | /** |
| 107 | * Returns true if this metamethod represents the same method as the argument. |
nothing calls this directly
no test coverage detected