mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 14:24:46 +02:00
8345614: Improve AnnotationFormatError message for duplicate annotation interfaces
Reviewed-by: liach
This commit is contained in:
parent
35c00532a1
commit
7aa0cbc91d
1 changed files with 1 additions and 1 deletions
|
@ -123,7 +123,7 @@ public class AnnotationParser {
|
|||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue