From 9b8da04e643bdb580055d5305dec68b5c2c3ea6c Mon Sep 17 00:00:00 2001 From: Qimiao Chen Date: Fri, 8 Nov 2019 20:39:02 +0800 Subject: [PATCH] Delete unnecessary variable assignment Closes gh-23955 --- .../beans/factory/support/AbstractBeanFactory.java | 1 - 1 file changed, 1 deletion(-) diff --git a/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java b/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java index 29fe3a8c4649..c8305b30cfb0 100644 --- a/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java +++ b/spring-beans/src/main/java/org/springframework/beans/factory/support/AbstractBeanFactory.java @@ -1317,7 +1317,6 @@ protected RootBeanDefinition getMergedBeanDefinition( if (mbd == null || mbd.stale) { previous = mbd; - mbd = null; if (bd.getParentName() == null) { // Use copy of given root bean definition. if (bd instanceof RootBeanDefinition) {