Skip to content

Commit 439bcd6

Browse files
committed
Polishing
1 parent 4e33d0c commit 439bcd6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-beans/src/test/java/org/springframework/beans/BeanUtilsRuntimeHintsTests.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@
2222
import org.springframework.aot.hint.MemberCategory;
2323
import org.springframework.aot.hint.RuntimeHints;
2424
import org.springframework.aot.hint.RuntimeHintsRegistrar;
25-
import org.springframework.aot.hint.TypeReference;
2625
import org.springframework.aot.hint.predicate.RuntimeHintsPredicates;
2726
import org.springframework.core.io.ResourceEditor;
2827
import org.springframework.core.io.support.SpringFactoriesLoader;
28+
import org.springframework.http.MediaTypeEditor;
2929
import org.springframework.util.ClassUtils;
3030

3131
import static org.assertj.core.api.Assertions.assertThat;
@@ -49,7 +49,7 @@ void setup() {
4949

5050
@Test
5151
void mediaTypeEditorHasHints() {
52-
assertThat(RuntimeHintsPredicates.reflection().onType(TypeReference.of("org.springframework.http.MediaTypeEditor"))
52+
assertThat(RuntimeHintsPredicates.reflection().onType(MediaTypeEditor.class)
5353
.withMemberCategories(MemberCategory.INVOKE_DECLARED_CONSTRUCTORS)).accepts(this.hints);
5454
}
5555

0 commit comments

Comments
 (0)