This commit is contained in:
MattBDev
2016-05-28 22:37:56 -04:00
parent 6c40ed7718
commit 4af846967c
5 changed files with 46 additions and 30 deletions

View File

@ -609,14 +609,11 @@ public class ReflectionUtils {
*
* @return new object
*
* @throws RuntimeException if something went wrong
* @throws ReflectiveOperationException
* @throws IllegalArgumentException
*/
public Object create(Object... params) {
try {
public Object create(Object... params) throws ReflectiveOperationException, IllegalArgumentException {
return this.constructor.newInstance(params);
} catch (Exception e) {
throw new RuntimeException(e);
}
}
}