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

Only import the necessary set of types #235

Merged
merged 1 commit into from
Aug 23, 2019

Conversation

jparise
Copy link
Contributor

@jparise jparise commented Aug 23, 2019

We were previously importing the java.util.{Date,List,Map,Set} types
unconditionally. We now detect which types are needed based on walking
the schema and only emitting imports for the types that are actually
used.

Copy link
Contributor

@RicoYao RicoYao left a comment

Choose a reason for hiding this comment

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

Thanks for cleaning this up!

We were previously importing the java.util.{Date,List,Map,Set} types
unconditionally. We now detect which types are needed based on walking
the schema and only emitting imports for the types that are actually
used.
@rahul-malik
Copy link
Collaborator

Looks good!

@rahul-malik rahul-malik merged commit fa2e15e into pinterest:master Aug 23, 2019
@jparise jparise deleted the java-type-imports branch August 23, 2019 17:58
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