Skip to content

Clean up Vec and Box JNI helpers#558

Merged
copybara-service[bot] merged 1 commit intomainfrom
test_890478258
Mar 28, 2026
Merged

Clean up Vec and Box JNI helpers#558
copybara-service[bot] merged 1 commit intomainfrom
test_890478258

Conversation

@copybara-service
Copy link
Copy Markdown

Clean up Vec and Box JNI helpers

Use overloads for different input types instead of repeating the input type in the parameter name. Add overloads for the new structs used in the Kotlin-native C-interface.

Make the input parameters const reference where appropriate. Put output parameters at the end per C++ convention.

Rename UpdateJObjectInputOrThrow to UpdateJStrokeInputOrThrow. The convention is to be clear in the function name what type the jobject parameter (or return type) is with J followed by the JVM class name (which in this case is StrokeInput).

@copybara-service copybara-service bot force-pushed the test_890478258 branch 3 times, most recently from ef51d9b to 5e233f6 Compare March 28, 2026 11:59
Use overloads for different input types instead of repeating the input type in the parameter name. Add overloads for the new structs used in the Kotlin-native C-interface.

Make the input parameters const reference where appropriate. Put output parameters at the end per C++ convention.

Rename `UpdateJObjectInputOrThrow` to `UpdateJStrokeInputOrThrow`. The convention is to be clear in the function name what type the `jobject` parameter (or return type) is with `J` followed by the JVM class name (which in this case is `StrokeInput`).

PiperOrigin-RevId: 890904172
@copybara-service copybara-service bot merged commit 78d8234 into main Mar 28, 2026
@copybara-service copybara-service bot deleted the test_890478258 branch March 28, 2026 12:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant