Skip to content

Commit 0af7b4f

Browse files
修改代码错误
1 parent 5820a2e commit 0af7b4f

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/main/java/com/github/developframework/expression/Expression.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -117,11 +117,11 @@ public static final Expression copy(Expression expression) {
117117
* @return 新的表达式对象
118118
*/
119119
public static final Expression concat(Expression parentExpression, String childExpressionValue) {
120-
Expression childExpression = parse(childExpressionValue);
120+
Expression newExpression = parse(childExpressionValue);
121121
if(parentExpression != EMPTY_EXPRESSION) {
122-
childExpression.setParentExpression(parentExpression);
122+
newExpression.setParentExpression(parentExpression);
123123
}
124-
return childExpression;
124+
return newExpression;
125125
}
126126

127127
/**
@@ -131,11 +131,11 @@ public static final Expression concat(Expression parentExpression, String childE
131131
* @return 新的表达式对象
132132
*/
133133
public static final Expression concat(Expression parentExpression, Expression childExpression) {
134-
Expression newChildExpression = copy(childExpression);
134+
Expression newExpression = copy(childExpression);
135135
if(parentExpression != EMPTY_EXPRESSION) {
136-
newChildExpression.setParentExpression(parentExpression);
136+
newExpression.setParentExpression(parentExpression);
137137
}
138-
return childExpression;
138+
return newExpression;
139139
}
140140

141141
}

0 commit comments

Comments
 (0)