Refactor from deprecated getAliasedStringArray

Update EntityScanPackages to make use of Spring Framework's updated
alias support with ASM reading.

Closes gh-6337
pull/6059/head
Phillip Webb 8 years ago
parent 291f131e60
commit c889c09066

@ -155,8 +155,7 @@ public class EntityScanPackages {
private Set<String> getPackagesToScan(AnnotationMetadata metadata) {
AnnotationAttributes attributes = AnnotationAttributes.fromMap(
metadata.getAnnotationAttributes(EntityScan.class.getName()));
String[] basePackages = attributes.getAliasedStringArray("basePackages",
EntityScan.class, metadata.getClassName());
String[] basePackages = attributes.getStringArray("basePackages");
Class<?>[] basePackageClasses = attributes
.getClassArray("basePackageClasses");
Set<String> packagesToScan = new LinkedHashSet<String>();

Loading…
Cancel
Save