(ReflectorConstructor constr, Object... params)
| 972 | } |
| 973 | |
| 974 | public static Object newInstance(ReflectorConstructor constr, Object... params) |
| 975 | { |
| 976 | Constructor constructor = constr.getTargetConstructor(); |
| 977 | |
| 978 | if (constructor == null) |
| 979 | { |
| 980 | return null; |
| 981 | } |
| 982 | else |
| 983 | { |
| 984 | try |
| 985 | { |
| 986 | Object object = constructor.newInstance(params); |
| 987 | return object; |
| 988 | } |
| 989 | catch (Throwable throwable) |
| 990 | { |
| 991 | handleException(throwable, constr, params); |
| 992 | return null; |
| 993 | } |
| 994 | } |
| 995 | } |
| 996 | |
| 997 | public static boolean matchesTypes(Class[] pTypes, Class[] cTypes) |
| 998 | { |
no test coverage detected