File tree 1 file changed +2
-2
lines changed
framework-docs/modules/ROOT/pages/core/beans/java
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -541,7 +541,7 @@ Java::
541
541
MultiValueMap<String, Object> attrs = metadata.getAllAnnotationAttributes(Profile.class.getName());
542
542
if (attrs != null) {
543
543
for (Object value : attrs.get("value")) {
544
- if (context.getEnvironment().acceptsProfiles((( String[]) value) )) {
544
+ if (context.getEnvironment().matchesProfiles(( String[]) value)) {
545
545
return true;
546
546
}
547
547
}
@@ -560,7 +560,7 @@ Kotlin::
560
560
val attrs = metadata.getAllAnnotationAttributes(Profile::class.java.name)
561
561
if (attrs != null) {
562
562
for (value in attrs["value"]!!) {
563
- if (context.environment.acceptsProfiles(Profiles.of( *value as Array<String>) )) {
563
+ if (context.environment.matchesProfiles( *value as Array<String>)) {
564
564
return true
565
565
}
566
566
}
You can’t perform that action at this time.
0 commit comments