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

Add Java8 Optional generation #499

Merged

Conversation

sav007
Copy link
Contributor

@sav007 sav007 commented May 17, 2017

Closes #496

@@ -31,6 +32,7 @@ class JavaTypeResolver(
when (context.nullableValueType) {
NullableValueType.APOLLO_OPTIONAL -> parameterizedOptional(javaType)
NullableValueType.GUAVA_OPTIONAL -> parameterizedGuavaOptional(javaType)
NullableValueType.JAVA8_OPTIONAL -> parameterizedJava8Optional(javaType)
Copy link
Contributor

Choose a reason for hiding this comment

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

Nitpick I think you can call if just java optional so we don't need to change anything once java 9 comes out

@sav007 sav007 merged commit 46fb4e2 into apollographql:master May 17, 2017
@sav007 sav007 deleted the feature-496/java8-optional-generation branch May 17, 2017 17:10
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.

3 participants