Skip to content

Commit f38ab38

Browse files
committed
Polishing
1 parent 94d459e commit f38ab38

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

spring-context/src/main/java/org/springframework/context/ConfigurableApplicationContext.java

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2018 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -147,11 +147,12 @@ public interface ConfigurableApplicationContext extends ApplicationContext, Life
147147
void addProtocolResolver(ProtocolResolver resolver);
148148

149149
/**
150-
* Load or refresh the persistent representation of the configuration,
151-
* which might an XML file, properties file, or relational database schema.
150+
* Load or refresh the persistent representation of the configuration, which
151+
* might be from Java-based configuration, an XML file, a properties file, a
152+
* relational database schema, or some other format.
152153
* <p>As this is a startup method, it should destroy already created singletons
153154
* if it fails, to avoid dangling resources. In other words, after invocation
154-
* of that method, either all or no singletons at all should be instantiated.
155+
* of this method, either all or no singletons at all should be instantiated.
155156
* @throws BeansException if the bean factory could not be initialized
156157
* @throws IllegalStateException if already initialized and multiple refresh
157158
* attempts are not supported

spring-context/src/main/java/org/springframework/ejb/config/AbstractJndiLocatingBeanDefinitionParser.java

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2007 the original author or authors.
2+
* Copyright 2002-2020 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.
@@ -24,7 +24,9 @@
2424
import org.springframework.util.StringUtils;
2525
import org.springframework.util.xml.DomUtils;
2626

27-
import static org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.*;
27+
import static org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.DEFAULT_VALUE;
28+
import static org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.LAZY_INIT_ATTRIBUTE;
29+
import static org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.TRUE_VALUE;
2830

2931
/**
3032
* Abstract base class for BeanDefinitionParsers which build
@@ -47,8 +49,9 @@ abstract class AbstractJndiLocatingBeanDefinitionParser extends AbstractSimpleBe
4749

4850
@Override
4951
protected boolean isEligibleAttribute(String attributeName) {
50-
return (super.isEligibleAttribute(attributeName) && !ENVIRONMENT_REF.equals(attributeName) && !LAZY_INIT_ATTRIBUTE
51-
.equals(attributeName));
52+
return (super.isEligibleAttribute(attributeName) &&
53+
!ENVIRONMENT_REF.equals(attributeName) &&
54+
!LAZY_INIT_ATTRIBUTE.equals(attributeName));
5255
}
5356

5457
@Override

0 commit comments

Comments
 (0)