Skip to content

Commit e07ad5a

Browse files
committed
Polishing
1 parent 5307a87 commit e07ad5a

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

spring-beans/src/main/java/org/springframework/beans/CachedIntrospectionResults.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2014 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.
@@ -219,8 +219,8 @@ private static boolean isClassLoaderAccepted(ClassLoader classLoader) {
219219
synchronized (acceptedClassLoaders) {
220220
acceptedLoaderArray = acceptedClassLoaders.toArray(new ClassLoader[acceptedClassLoaders.size()]);
221221
}
222-
for (ClassLoader registeredLoader : acceptedLoaderArray) {
223-
if (isUnderneathClassLoader(classLoader, registeredLoader)) {
222+
for (ClassLoader acceptedLoader : acceptedLoaderArray) {
223+
if (isUnderneathClassLoader(classLoader, acceptedLoader)) {
224224
return true;
225225
}
226226
}

spring-core/src/main/java/org/springframework/core/env/AbstractEnvironment.java

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2013 the original author or authors.
2+
* Copyright 2002-2014 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.
@@ -43,10 +43,11 @@
4343
* add by default. {@code AbstractEnvironment} adds none. Subclasses should contribute
4444
* property sources through the protected {@link #customizePropertySources(MutablePropertySources)}
4545
* hook, while clients should customize using {@link ConfigurableEnvironment#getPropertySources()}
46-
* and working against the {@link MutablePropertySources} API. See
47-
* {@link ConfigurableEnvironment} Javadoc for usage examples.
46+
* and working against the {@link MutablePropertySources} API.
47+
* See {@link ConfigurableEnvironment} javadoc for usage examples.
4848
*
4949
* @author Chris Beams
50+
* @author Juergen Hoeller
5051
* @since 3.1
5152
* @see ConfigurableEnvironment
5253
* @see StandardEnvironment
@@ -395,6 +396,8 @@ protected String getSystemAttribute(String attributeName) {
395396
* and therefore avoiding security manager warnings (if any).
396397
* <p>The default implementation checks for the "spring.getenv.ignore" system property,
397398
* returning {@code true} if its value equals "true" in any case.
399+
* @see #IGNORE_GETENV_PROPERTY_NAME
400+
* @see SpringProperties#getFlag
398401
*/
399402
protected boolean suppressGetenvAccess() {
400403
return SpringProperties.getFlag(IGNORE_GETENV_PROPERTY_NAME);

0 commit comments

Comments
 (0)