mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-20 12:19:16 +00:00
polishing
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@625 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
+3
-2
@@ -17,6 +17,7 @@
|
||||
package org.springframework.expression.spel.ast;
|
||||
|
||||
import org.antlr.runtime.Token;
|
||||
|
||||
import org.springframework.expression.EvaluationException;
|
||||
import org.springframework.expression.spel.ExpressionState;
|
||||
import org.springframework.expression.spel.SpelException;
|
||||
@@ -42,9 +43,9 @@ public class Ternary extends SpelNodeImpl {
|
||||
*/
|
||||
@Override
|
||||
public Object getValueInternal(ExpressionState state) throws EvaluationException {
|
||||
Boolean b = getChild(0).getValue(state, Boolean.class);
|
||||
Boolean value = getChild(0).getValue(state, Boolean.class);
|
||||
try {
|
||||
if (b != null && b.booleanValue()) {
|
||||
if (Boolean.TRUE.equals(value)) {
|
||||
return getChild(1).getValueInternal(state);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user