spring-framework/spring-expression/src
Sam Brannen e7cf54d4e2 Revise SpEL inline collection caching improvements
This commit revises the contribution for gh-25921 in the following ways.

- Use instanceof pattern matching

- Use List.of() and Map.of()

- Add missing @⁠since tags

- Polish Javadoc

- Rename isNegativeNumber() to isNegativeNumberLiteral()

- Restructure InlineCollectionTests using @⁠Nested, etc.

- Fix testListWithVariableNotCached() test: it previously set a SpEL
  "variable" but tested a "property" in the root context object, which
  effectively did not test anything.

- Introduce additional tests: listWithPropertyAccessIsNotCached(),
  mapWithVariableIsNotCached(), and mapWithPropertyAccessIsNotCached().
2023-09-13 13:35:41 +02:00
..
jmh/java/org/springframework/expression/spel Rewrite "performance" test to JMH benchmarks 2020-09-25 13:43:38 +02:00
main/java/org/springframework/expression Revise SpEL inline collection caching improvements 2023-09-13 13:35:41 +02:00
test Revise SpEL inline collection caching improvements 2023-09-13 13:35:41 +02:00