Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make Java Map wrappers handle nulls according to put/remove contract #9344

Merged
merged 1 commit into from Jan 7, 2021

Commits on Nov 27, 2020

  1. Jave Map wrapper respects put/remove contract

    If map contains key, always return nonEmpty.
    If binding to null, return Some(null) instead of None.
    This behavior is consistent with get, which is the basis
    for getOrElse, lift, and unapply.
    som-snytt committed Nov 27, 2020
    Copy the full SHA
    342b7af View commit details
    Browse the repository at this point in the history