Fix typos

This commit is contained in:
Pierre Grimaud
2020-04-29 19:36:34 +02:00
parent fda7d00747
commit f9a40599fb
11 changed files with 20 additions and 20 deletions

View File

@ -131,13 +131,13 @@ public class ReflectionUtils {
}
}
public static <T> T callConstructor(Constructor<T> constructor, Object... paramaters) {
public static <T> T callConstructor(Constructor<T> constructor, Object... parameters) {
if (constructor == null) {
throw new RuntimeException("No such constructor");
}
constructor.setAccessible(true);
try {
return constructor.newInstance(paramaters);
return constructor.newInstance(parameters);
} catch (InvocationTargetException ex) {
throw new RuntimeException(ex.getCause());
} catch (Exception ex) {