You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In direct contrast to the get() methods in ExtensionContext.Store, the getOrComputeIfAbsent() methods in ExtensionContext.Store only perform a local lookup before invoking the supplied Function<K, V> defaultCreator. Consequently, even if a value has been stored under the supplied key in the parent Store, the getOrComputeIfAbsent() methods will always create a new default value and store it locally, thereby shadowing the desired, existing value from the parent.
Deliverables
Ensure that getOrComputeIfAbsent() methods in ExtensionContext.Store do not shadow values from parent stores.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
Status Quo
In direct contrast to the
get()
methods inExtensionContext.Store
, thegetOrComputeIfAbsent()
methods inExtensionContext.Store
only perform a local lookup before invoking the suppliedFunction<K, V> defaultCreator
. Consequently, even if a value has been stored under the suppliedkey
in the parentStore
, thegetOrComputeIfAbsent()
methods will always create a new default value and store it locally, thereby shadowing the desired, existing value from the parent.Deliverables
getOrComputeIfAbsent()
methods inExtensionContext.Store
do not shadow values from parent stores.The text was updated successfully, but these errors were encountered: