mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-25 02:04:44 +02:00
Fix #958
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user