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

Migrate Public API to Kotlin [SDK-2193] #410

Merged
merged 43 commits into from
Jan 5, 2021
Merged

Migrate Public API to Kotlin [SDK-2193] #410

merged 43 commits into from
Jan 5, 2021

Conversation

lbalmaceda
Copy link
Contributor

Changes

This PR migrates public Java classes into Kotlin classes, making the following updates:

  • package-private methods are changed to internal
  • @VisibleForTesting now includes the desired method visibility argument

Note to the reviewer: Prefer reviewing by commits, as each will migrate 1 class or a set of related classes.

References

See SDK-2193

Testing

Where possible, I tried not to change the unit tests to ensure the compatibility did not change. Where the internal visibility modifier was used, Java test classes needed to be updated to Kotlin.

The only case in which tests were removed was when they were testing what happened when a null value was passed to a method that accepted a non-null argument. This in Kotlin throws an exception, as the compiler prevents from calling the methods in such a way.

@lbalmaceda lbalmaceda added this to the v2-Next milestone Dec 30, 2020
@lbalmaceda lbalmaceda marked this pull request as ready for review January 5, 2021 15:08
@lbalmaceda lbalmaceda requested a review from a team as a code owner January 5, 2021 15:08
@lbalmaceda lbalmaceda merged commit 3ea5db5 into v2-dev Jan 5, 2021
@lbalmaceda lbalmaceda modified the milestones: v2-Next, 2.0.0-beta.0 Jan 19, 2021
@lbalmaceda lbalmaceda deleted the mv-to-kotlin branch January 20, 2021 09:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants