File tree 2 files changed +4
-4
lines changed
framework-docs/modules/ROOT/pages/core/expressions/language-ref
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 18
18
19
19
// create new Inventor instance within the add() method of List
20
20
p.parseExpression(
21
- "Members.add(new org.spring.samples.spel.inventor.Inventor(
22
- 'Albert Einstein', 'German'))") .getValue(societyContext);
21
+ "Members.add(new org.spring.samples.spel.inventor.Inventor('Albert Einstein', 'German'))")
22
+ .getValue(societyContext);
23
23
----
24
24
25
25
Kotlin::
Original file line number Diff line number Diff line change @@ -110,8 +110,8 @@ potentially more efficient use cases if the `MethodHandle` target and parameters
110
110
been fully bound prior to registration; however, partially bound handles are also
111
111
supported.
112
112
113
- Consider the `String#formatted(String, Object...)` instance method, which produces a
114
- message according to a template and a variable number of arguments.
113
+ Consider the `String#formatted(Object...)` instance method, which produces a message
114
+ according to a template and a variable number of arguments.
115
115
116
116
You can register and use the `formatted` method as a `MethodHandle`, as the following
117
117
example shows:
You can’t perform that action at this time.
0 commit comments