File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-beans/src/test/java/org/springframework/beans Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 22
22
import org .springframework .aot .hint .MemberCategory ;
23
23
import org .springframework .aot .hint .RuntimeHints ;
24
24
import org .springframework .aot .hint .RuntimeHintsRegistrar ;
25
- import org .springframework .aot .hint .TypeReference ;
26
25
import org .springframework .aot .hint .predicate .RuntimeHintsPredicates ;
27
26
import org .springframework .core .io .ResourceEditor ;
28
27
import org .springframework .core .io .support .SpringFactoriesLoader ;
28
+ import org .springframework .http .MediaTypeEditor ;
29
29
import org .springframework .util .ClassUtils ;
30
30
31
31
import static org .assertj .core .api .Assertions .assertThat ;
@@ -49,7 +49,7 @@ void setup() {
49
49
50
50
@ Test
51
51
void mediaTypeEditorHasHints () {
52
- assertThat (RuntimeHintsPredicates .reflection ().onType (TypeReference . of ( "org.springframework.http. MediaTypeEditor" ) )
52
+ assertThat (RuntimeHintsPredicates .reflection ().onType (MediaTypeEditor . class )
53
53
.withMemberCategories (MemberCategory .INVOKE_DECLARED_CONSTRUCTORS )).accepts (this .hints );
54
54
}
55
55
You can’t perform that action at this time.
0 commit comments