Skip to content

Commit

Permalink
#5470 fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
pnatashap committed May 2, 2024
1 parent e4a2a57 commit f22a46f
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,13 +64,13 @@ public <T extends ICoreElement> List<T> items(Class<T> cl) {
try {
Constructor<T> constr = cl.getConstructor();
return core().finds(itemLocator).stream().map(o -> {
try {
return constr.newInstance().setCore(cl, o);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e);
}
})
.collect(Collectors.toList());
try {
return constr.newInstance().setCore(cl, o);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e);
}
})
.collect(Collectors.toList());
} catch (Exception ex) {
throw runtimeException("Can not create a new object " + cl, ex);
}
Expand Down

0 comments on commit f22a46f

Please sign in to comment.