Skip to content

Commit

Permalink
Removes repeated warning when method name cannot be determined from a…
Browse files Browse the repository at this point in the history
…nnotation. (helidon-io#9529)

Signed-off-by: Santiago Pericas-Geertsen <[email protected]>
  • Loading branch information
spericas authored and barchetta committed Dec 4, 2024
1 parent 8c10f01 commit 58ef6c4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ private static String nameFromMember(Annotation annotation, String member) {
Object value = m.invoke(annotation);
return value instanceof String s ? s : null;
} catch (NoSuchMethodException e) {
LOGGER.log(Level.WARNING, () -> String.format("Annotation %s has no name() method", annotation));
// falls through
} catch (IllegalAccessException | InvocationTargetException e) {
LOGGER.log(Level.WARNING, () -> String.format("Error calling name() method on annotation %s", annotation), e);
}
Expand Down

0 comments on commit 58ef6c4

Please sign in to comment.