File tree 2 files changed +5
-14
lines changed
spring-beans/src/main/java/org/springframework/beans
spring-core/src/main/java/org/springframework/core/env
2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -94,14 +94,15 @@ public class CachedIntrospectionResults {
94
94
public static final String IGNORE_BEANINFO_PROPERTY_NAME = "spring.beaninfo.ignore" ;
95
95
96
96
97
- private static final Log logger = LogFactory .getLog (CachedIntrospectionResults .class );
98
-
99
- private static final boolean shouldIntrospectorIgnoreBeaninfoClasses ;
97
+ private static final boolean shouldIntrospectorIgnoreBeaninfoClasses =
98
+ SpringProperties .getFlag (IGNORE_BEANINFO_PROPERTY_NAME );
100
99
101
100
/** Stores the BeanInfoFactory instances */
102
101
private static List <BeanInfoFactory > beanInfoFactories = SpringFactoriesLoader .loadFactories (
103
102
BeanInfoFactory .class , CachedIntrospectionResults .class .getClassLoader ());
104
103
104
+ private static final Log logger = LogFactory .getLog (CachedIntrospectionResults .class );
105
+
105
106
/**
106
107
* Set of ClassLoaders that this CachedIntrospectionResults class will always
107
108
* accept classes from, even if the classes do not qualify as cache-safe.
@@ -116,11 +117,6 @@ public class CachedIntrospectionResults {
116
117
static final Map <Class <?>, Object > classCache = new WeakHashMap <Class <?>, Object >();
117
118
118
119
119
- static {
120
- shouldIntrospectorIgnoreBeaninfoClasses = SpringProperties .getFlag (IGNORE_BEANINFO_PROPERTY_NAME );
121
- }
122
-
123
-
124
120
/**
125
121
* Accept the given ClassLoader as cache-safe, even if its classes would
126
122
* not qualify as cache-safe in this CachedIntrospectionResults class.
Original file line number Diff line number Diff line change @@ -66,7 +66,6 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
66
66
*/
67
67
public static final String IGNORE_GETENV_PROPERTY_NAME = "spring.getenv.ignore" ;
68
68
69
-
70
69
/**
71
70
* Name of property to set to specify active profiles: {@value}. Value may be comma
72
71
* delimited.
@@ -122,14 +121,10 @@ public abstract class AbstractEnvironment implements ConfigurableEnvironment {
122
121
* @see #customizePropertySources(MutablePropertySources)
123
122
*/
124
123
public AbstractEnvironment () {
125
- String name = getClass ().getSimpleName ();
126
- if (this .logger .isDebugEnabled ()) {
127
- this .logger .debug (format ("Initializing new %s" , name ));
128
- }
129
124
customizePropertySources (this .propertySources );
130
125
if (this .logger .isDebugEnabled ()) {
131
126
this .logger .debug (format (
132
- "Initialized %s with PropertySources %s" , name , this .propertySources ));
127
+ "Initialized %s with PropertySources %s" , getClass (). getSimpleName () , this .propertySources ));
133
128
}
134
129
}
135
130
You can’t perform that action at this time.
0 commit comments