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

@JvmStatic companion object functions & rename new Arrow Syntax files #2335

Merged
merged 4 commits into from Mar 24, 2021

Conversation

nomisRev
Copy link
Member

Follow-up PR of #2334 which fixed using the Arrow Core typeclasses from Java.
This PR improves calling the functions defined on the companion object from Java by annotating them with JvmStatic.

It also fixes a conflict with a Java reserved keyword catch, by renaming it to tryCatch for Option, Either & Validated.

Additionally, it also improves the generated names for the Arrow Syntax files.

@nomisRev nomisRev requested a review from a team March 23, 2021 16:13
public class EitherUsage {

public void testUsage() {
Either<Throwable, Integer> throwableIntegerEither = Either.tryCatch(() -> 1);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Arrow on Java nice!

Copy link
Member

@raulraja raulraja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks @nomisRev !

@raulraja raulraja requested a review from a team March 23, 2021 16:25
@nomisRev nomisRev merged commit d2e0c0c into master Mar 24, 2021
@nomisRev nomisRev deleted the sv-fix-companion-api-java branch March 24, 2021 13:09
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.

None yet

3 participants