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

Java codegen: add support for Optional or nullable fields #4411

Merged
merged 22 commits into from
Sep 26, 2022

Conversation

BoD
Copy link
Contributor

@BoD BoD commented Sep 23, 2022

See #4337

@netlify
Copy link

netlify bot commented Sep 23, 2022

Deploy Preview for apollo-android-docs canceled.

Name Link
🔨 Latest commit fa2b289
🔍 Latest deploy log https://app.netlify.com/sites/apollo-android-docs/deploys/633170f3b240bd0008a24ad5

@BoD BoD marked this pull request as ready for review September 23, 2022 09:19
@@ -0,0 +1,47 @@
plugins {
id("org.jetbrains.kotlin.jvm")
Copy link
Contributor

Choose a reason for hiding this comment

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

It might make sense to write these tests in Java to double check ergonomics. In particular, I'm expecting Java users to call Optional.present(value) instead of new Optional.Present(value) and all these kind of things.

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
id("org.jetbrains.kotlin.jvm")
id("java")

}

dependencies {
implementation(golatac.lib("apollo.runtime"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Also make the test work without apollo-runtime if possible?

@BoD BoD merged commit 0b08bb7 into main Sep 26, 2022
@BoD BoD deleted the java-codegen-optionals branch September 26, 2022 15:37
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.

2 participants