amazon-ion / ion-element-kotlin

IonElement is an immutable in-memory representation of the Ion data format. IonElement's API is idiomatic to Kotlin.
Apache License 2.0
8 stars 8 forks source link

Updates StructElement.update() to be more Java-friendly #85

Closed popematt closed 8 months ago

popematt commented 8 months ago

Issue #, if available:

None

Description of changes:

Updates the update() function so that Java callers do not have to return Unit.INSTANCE from their lambda expressions.

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

codecov[bot] commented 8 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

:exclamation: No coverage uploaded for pull request base (master@fbd44b4). Click here to learn what that means.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #85 +/- ## ========================================= Coverage ? 89.94% Complexity ? 492 ========================================= Files ? 31 Lines ? 1054 Branches ? 153 ========================================= Hits ? 948 Misses ? 59 Partials ? 47 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.