Fix elvis operator mistake in reference docs

In the given example the expression using the Elvis operator will
return "Nikola Tesla" and not "Mike Tesla".

Issue: SPR-10850
This commit is contained in:
clemp6r 2013-08-14 16:34:07 +02:00 committed by Phillip Webb
parent 365ce55a93
commit 84242f1aff
1 changed files with 1 additions and 1 deletions

View File

@ -980,7 +980,7 @@ StandardEvaluationContext context = new StandardEvaluationContext(tesla);
String name = parser.parseExpression("Name?:'Elvis Presley'").getValue(context, String.class);
System.out.println(name); // Mike Tesla
System.out.println(name); // Nikola Tesla
tesla.setName(null);