parent
d955549037
commit
4a7c24d90f
|
@ -65,7 +65,6 @@ public class LazyInitTargetSource extends AbstractBeanFactoryBasedTargetSource {
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
|
||||||
public synchronized Object getTarget() throws BeansException {
|
public synchronized Object getTarget() throws BeansException {
|
||||||
if (this.target == null) {
|
if (this.target == null) {
|
||||||
this.target = getBeanFactory().getBean(getTargetBeanName());
|
this.target = getBeanFactory().getBean(getTargetBeanName());
|
||||||
|
|
|
@ -151,7 +151,6 @@ public abstract class AbstractFactoryBean<T>
|
||||||
* @see #getEarlySingletonInterfaces()
|
* @see #getEarlySingletonInterfaces()
|
||||||
*/
|
*/
|
||||||
@Override
|
@Override
|
||||||
@Nullable
|
|
||||||
public final T getObject() throws Exception {
|
public final T getObject() throws Exception {
|
||||||
if (isSingleton()) {
|
if (isSingleton()) {
|
||||||
return (this.initialized ? this.singletonInstance : getEarlySingletonInstance());
|
return (this.initialized ? this.singletonInstance : getEarlySingletonInstance());
|
||||||
|
|
|
@ -123,8 +123,6 @@ public class ExpressionException extends RuntimeException {
|
||||||
* @see #getSimpleMessage()
|
* @see #getSimpleMessage()
|
||||||
* @see java.lang.Throwable#getMessage()
|
* @see java.lang.Throwable#getMessage()
|
||||||
*/
|
*/
|
||||||
@Override
|
|
||||||
@Nullable
|
|
||||||
public String getMessage() {
|
public String getMessage() {
|
||||||
return toDetailedString();
|
return toDetailedString();
|
||||||
}
|
}
|
||||||
|
@ -133,7 +131,6 @@ public class ExpressionException extends RuntimeException {
|
||||||
* Return a detailed description of this exception, including the expression
|
* Return a detailed description of this exception, including the expression
|
||||||
* String and position (if available) as well as the actual exception message.
|
* String and position (if available) as well as the actual exception message.
|
||||||
*/
|
*/
|
||||||
@Nullable
|
|
||||||
public String toDetailedString() {
|
public String toDetailedString() {
|
||||||
if (this.expressionString != null) {
|
if (this.expressionString != null) {
|
||||||
StringBuilder output = new StringBuilder();
|
StringBuilder output = new StringBuilder();
|
||||||
|
@ -158,7 +155,6 @@ public class ExpressionException extends RuntimeException {
|
||||||
* that caused the failure.
|
* that caused the failure.
|
||||||
* @since 4.0
|
* @since 4.0
|
||||||
*/
|
*/
|
||||||
@Nullable
|
|
||||||
public String getSimpleMessage() {
|
public String getSimpleMessage() {
|
||||||
return super.getMessage();
|
return super.getMessage();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue