Browse Source
The getNullable() method had a subtle race condition where the value field could be read as null after being assigned but before the resolved flag was set to true. This could occur if another thread read the value between lines 136 and 137. This change maintains the existing behavior documented in the class Javadoc that the supplier may be called multiple times under concurrent access, while fixing the potential for incorrect null returns. Signed-off-by: jbj338033 <jbj338033@gmail.com> Closes #3368labs/stable-value
1 changed files with 3 additions and 2 deletions
Loading…
Reference in new issue