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

Destructuring accessors for SecureCellData in Kotlin #638

Merged
merged 2 commits into from
May 15, 2020

Commits on May 13, 2020

  1. Destructuring accessors for SecureCellData in Kotlin

    Kotlin supports tuples and destructuring assignment which results in
    much nicer APIs with multiple return values. Implement special accessor
    methods for SecureCellData to enable that.
    
    These methods are not for general purpose use. They are expected to be
    implicitly used in Kotlin when working with Token Protect mode, that's
    why they also have @NotNull annotations -- as in Token Protect mode the
    encrypted data and authentication token are always available.
    ilammy committed May 13, 2020
    Configuration menu
    Copy the full SHA
    b6b9f7b View commit details
    Browse the repository at this point in the history
  2. Replace Arrays.copyOf() calls

    @NotNull annotations remove a layer of optionals, so instead of
    ByteArray? results we are now dealing with just ByteArray, and
    that means we can call copyOf() method directly instead of using
    java.utils.Arrays.copyOf(). Replace the calls to make linter happy.
    ilammy committed May 13, 2020
    Configuration menu
    Copy the full SHA
    8ab2271 View commit details
    Browse the repository at this point in the history