Skip to content

Commit f9d2641

Browse files
committed
Update field name to reflect switch to Jakarta
1 parent 3b506e1 commit f9d2641

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

spring-beans/src/main/java/org/springframework/beans/factory/support/DefaultListableBeanFactory.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2023 the original author or authors.
2+
* Copyright 2002-2024 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -123,16 +123,16 @@ public class DefaultListableBeanFactory extends AbstractAutowireCapableBeanFacto
123123
implements ConfigurableListableBeanFactory, BeanDefinitionRegistry, Serializable {
124124

125125
@Nullable
126-
private static Class<?> javaxInjectProviderClass;
126+
private static Class<?> jakartaInjectProviderClass;
127127

128128
static {
129129
try {
130-
javaxInjectProviderClass =
130+
jakartaInjectProviderClass =
131131
ClassUtils.forName("jakarta.inject.Provider", DefaultListableBeanFactory.class.getClassLoader());
132132
}
133133
catch (ClassNotFoundException ex) {
134134
// JSR-330 API not available - Provider interface simply not supported then.
135-
javaxInjectProviderClass = null;
135+
jakartaInjectProviderClass = null;
136136
}
137137
}
138138

@@ -1340,7 +1340,7 @@ else if (ObjectFactory.class == descriptor.getDependencyType() ||
13401340
ObjectProvider.class == descriptor.getDependencyType()) {
13411341
return new DependencyObjectProvider(descriptor, requestingBeanName);
13421342
}
1343-
else if (javaxInjectProviderClass == descriptor.getDependencyType()) {
1343+
else if (jakartaInjectProviderClass == descriptor.getDependencyType()) {
13441344
return new Jsr330Factory().createDependencyProvider(descriptor, requestingBeanName);
13451345
}
13461346
else if (descriptor.supportsLazyResolution()) {

0 commit comments

Comments
 (0)