The GitHub Actions job "Java CI" on commons-lang.git/commons_parent_106 has 
succeeded.
Run started by GitHub user garydgregory (triggered by garydgregory).

Head commit for run:
626e6ffb79351695ca126e80f223bf04cded4a2e / Gary Gregory <[email protected]>
Suppress false-positive SpotBugs warnings in FastDateParser

StrategyParser is created locally within init(Calendar), consumed
synchronously, and never escapes that invocation. Its currentIdx field
is therefore confined to the initializing thread, including when init()
is called during deserialization.

Add a SpotBugs exclusion restricted to StrategyParser.currentIdx for
AT_NONATOMIC_OPERATIONS_ON_SHARED_VARIABLE and
AT_STALE_THREAD_WRITE_OF_PRIMITIVE. This addresses all three reported
warnings without changing runtime behavior or adding unnecessary
synchronization.

Document the helper's confinement in its class Javadoc to explain why
the mutable cursor requires no cross-thread coordination.

Report URL: https://github.com/apache/commons-lang/actions/runs/39059838287

With regards,
GitHub Actions via GitBox

Reply via email to