From 15a7f43c7b53049ba3243145f2c898f005b872a8 Mon Sep 17 00:00:00 2001 From: Johnny Lim Date: Mon, 22 May 2023 10:59:25 +0900 Subject: [PATCH] Add Javadoc since to InjectedElement.shouldInject() See gh-30512 --- .../beans/factory/annotation/InjectionMetadata.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/annotation/InjectionMetadata.java b/spring-beans/src/main/java/org/springframework/beans/factory/annotation/InjectionMetadata.java index 219891e5452..0cd614f36c3 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/annotation/InjectionMetadata.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/annotation/InjectionMetadata.java @@ -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;