Adriano Machado created CAMEL-23798:
---------------------------------------
Summary: Simple language: replace AtomicBoolean/AtomicInteger with
boolean[]/int[] lambda capture holders
Key: CAMEL-23798
URL: https://issues.apache.org/jira/browse/CAMEL-23798
Project: Camel
Issue Type: Improvement
Reporter: Adriano Machado
SimpleExpressionParser and SimplePredicateParser used AtomicBoolean and
AtomicInteger solely as mutable holders to capture state in lambda expressions.
These are semantically misleading \(implying concurrent access\) and carry
unnecessary overhead. This commit replaces them with single\-element
boolean\[\] and int\[\] arrays, which are the idiomatic Java pattern for this
use case.
Discovered during the work on CAMEL\-22894 \(simple language parser hardening\).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)