Skip to content

Commit

Permalink
Polish
Browse files Browse the repository at this point in the history
  • Loading branch information
knutwannheden committed Dec 10, 2024
1 parent bdb85c5 commit 865540c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ default void enumTypeB() {
}

@Test
default void ignoreSourceRetentionAnnotations() {
default void includeSourceRetentionAnnotations() {
JavaType.Parameterized goat = goatType();
assertThat(goat.getAnnotations()).satisfiesExactlyInAnyOrder(
a -> assertThat(a.getClassName()).isEqualTo("AnnotationWithRuntimeRetention"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

@SuppressWarnings("ConstantConditions")
class JavaReflectionTypeMappingTest implements JavaTypeMappingTest {
JavaReflectionTypeMapping typeMapping = new JavaReflectionTypeMapping(new AdaptiveRadixJavaTypeCache());
JavaReflectionTypeMapping typeMapping = new JavaReflectionTypeMapping(new JavaTypeCache());
JavaType.Parameterized goat = TypeUtils.asParameterized(typeMapping.type(JavaTypeGoat.class));

@Override
Expand Down Expand Up @@ -61,7 +61,8 @@ public void enumTypeB() {

@Test
@Override
public void ignoreSourceRetentionAnnotations() {
// The JavaReflectionTypeMapping cannot include source retention annotations
public void includeSourceRetentionAnnotations() {
JavaType.Parameterized goat = goatType();
assertThat(goat.getAnnotations()).satisfiesExactlyInAnyOrder(
a -> assertThat(a.getClassName()).isEqualTo("AnnotationWithRuntimeRetention")
Expand Down

0 comments on commit 865540c

Please sign in to comment.