File tree Expand file tree Collapse 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 Expand file tree Collapse file tree 2 files changed +5
-14
lines changed Original file line number Diff line number Diff line change @@ -92,14 +92,15 @@ public class CachedIntrospectionResults {
92
92
public static final String IGNORE_BEANINFO_PROPERTY_NAME = "spring.beaninfo.ignore" ;
93
93
94
94
95
- private static final Log logger = LogFactory .getLog (CachedIntrospectionResults .class );
96
-
97
- private static final boolean shouldIntrospectorIgnoreBeaninfoClasses ;
95
+ private static final boolean shouldIntrospectorIgnoreBeaninfoClasses =
96
+ SpringProperties .getFlag (IGNORE_BEANINFO_PROPERTY_NAME );
98
97
99
98
/** Stores the BeanInfoFactory instances */
100
99
private static List <BeanInfoFactory > beanInfoFactories = SpringFactoriesLoader .loadFactories (
101
100
BeanInfoFactory .class , CachedIntrospectionResults .class .getClassLoader ());
102
101
102
+ private static final Log logger = LogFactory .getLog (CachedIntrospectionResults .class );
103
+
103
104
/**
104
105
* Set of ClassLoaders that this CachedIntrospectionResults class will always
105
106
* accept classes from, even if the classes do not qualify as cache-safe.
@@ -114,11 +115,6 @@ public class CachedIntrospectionResults {
114
115
static final Map <Class <?>, Object > classCache = new WeakHashMap <Class <?>, Object >();
115
116
116
117
117
- static {
118
- shouldIntrospectorIgnoreBeaninfoClasses = SpringProperties .getFlag (IGNORE_BEANINFO_PROPERTY_NAME );
119
- }
120
-
121
-
122
118
/**
123
119
* Accept the given ClassLoader as cache-safe, even if its classes would
124
120
* 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