Skip to content

Commit

Permalink
8345614: Improve AnnotationFormatError message for duplicate annotati…
Browse files Browse the repository at this point in the history
…on interfaces

Reviewed-by: liach
  • Loading branch information
scottmarlow authored and liach committed Dec 9, 2024
1 parent 35c0053 commit 7aa0cbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ private static Map<Class<? extends Annotation>, Annotation> parseAnnotations2(
if (AnnotationType.getInstance(klass).retention() == RetentionPolicy.RUNTIME &&
result.put(klass, a) != null) {
throw new AnnotationFormatError(
"Duplicate annotation for class: "+klass+": " + a);
"Duplicate annotation " + klass + " in " + container);
}
}
}
Expand Down

0 comments on commit 7aa0cbc

Please sign in to comment.