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 f22a46f commit 613cee8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,12 @@ public <T extends ICoreElement> List<T> items(Class<T> cl) {
try {
return constr.newInstance().setCore(cl, o);
} catch (InstantiationException | IllegalAccessException | InvocationTargetException e) {
throw new RuntimeException(e);
throw runtimeException("Can not create a new object " + cl , e);
}
})
.collect(Collectors.toList());
} catch (Exception ex) {
throw runtimeException("Can not create a new object " + cl, ex);
throw runtimeException("Can not create a list " + cl, ex);
}
}

Expand Down

0 comments on commit 613cee8

Please sign in to comment.