Consistently use canonical annotation names in string representations

This commit is contained in:
Sam Brannen
2024-03-10 15:54:53 +01:00
parent 5345a13918
commit 4c246b7c96
5 changed files with 25 additions and 16 deletions

View File

@@ -1960,7 +1960,7 @@ class MergedAnnotationsTests {
assertThatExceptionOfType(NoSuchElementException.class).isThrownBy(() ->
MergedAnnotation.of(AnnotationWithoutDefaults.class, attributes).synthesize().text())
.withMessage("No value found for attribute named 'text' in merged annotation " +
AnnotationWithoutDefaults.class.getName());
AnnotationWithoutDefaults.class.getCanonicalName());
}
@Test