ImportRegistry as a package-visible top-level interface which can easily be shared within the package

Issue: SPR-12128
This commit is contained in:
Juergen Hoeller
2014-09-03 12:59:51 +02:00
parent 125ae99035
commit 6563405be5
5 changed files with 38 additions and 22 deletions

View File

@@ -281,8 +281,7 @@ public class ImportAwareTests {
@Override
public boolean matches(ConditionContext context, AnnotatedTypeMetadata metadata) {
return context.getBeanFactory().getBeanNamesForType(MetadataHolder.class,
true, false).length == 0;
return (context.getBeanFactory().getBeanNamesForType(MetadataHolder.class, true, false).length == 0);
}
@Override