Browse Source

Merge pull request #30512 from izeye

* pr/30512:
  Add Javadoc since to InjectedElement.shouldInject()

Closes gh-30512
pull/30619/head
Stephane Nicoll 2 years ago
parent
commit
7660dbfd77
  1. 6
      spring-beans/src/main/java/org/springframework/beans/factory/annotation/InjectionMetadata.java

6
spring-beans/src/main/java/org/springframework/beans/factory/annotation/InjectionMetadata.java

@ -243,6 +243,12 @@ public class InjectionMetadata { @@ -243,6 +243,12 @@ public class InjectionMetadata {
}
}
/**
* Whether the property values should be injected.
* @param pvs property values to check
* @return whether the property values should be injected
* @since 6.0.10
*/
protected boolean shouldInject(@Nullable PropertyValues pvs) {
if (this.isField) {
return true;

Loading…
Cancel
Save