Code formatting optimization

pull/540/head
chen.ma 3 years ago
parent 547b1c403e
commit 22fc38b1a2

@ -86,8 +86,7 @@ public class DynamicThreadPoolServiceLoader {
private static Object newServiceInstance(final Class<?> clazz) { private static Object newServiceInstance(final Class<?> clazz) {
try { try {
return clazz.getDeclaredConstructor().newInstance(); return clazz.getDeclaredConstructor().newInstance();
} } catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
catch (InstantiationException | IllegalAccessException | InvocationTargetException | NoSuchMethodException e) {
throw new ServiceLoaderInstantiationException(clazz, e); throw new ServiceLoaderInstantiationException(clazz, e);
} }
} }

Loading…
Cancel
Save