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

refactor: Added some raw types, checking for non-null resource before opening stream. #66

Merged
merged 1 commit into from
Jan 19, 2021

Conversation

immmus
Copy link
Contributor

@immmus immmus commented Dec 10, 2020

Hi, I research yours code and decided to make changes a small defects by my own view). If it is ok for you then I will continue do it:)

Main of this changes is checking for non-null resource before opening stream to warns NPE and reports that is problem.
And com.google.common.base.Charsets is deprecated since jdk 7, better to use standard java java.nio.charset.StandardCharsets. Thx:)

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

@@ -54,7 +54,7 @@ public ImmutableLocalDAO(@Nonnull Class<ASPECT_UNION> aspectUnionClass,
public ImmutableLocalDAO(@Nonnull Class<ASPECT_UNION> aspectUnionClass,
@Nonnull Map<URN, ? extends RecordTemplate> urnAspectMap, boolean ddlGenerate, @Nonnull Class<URN> urnClass) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also I have question about boolean ddlGenerate parameter. It's never use. It's okay or planned for future use?

Copy link
Contributor

Choose a reason for hiding this comment

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

@keremsahin1 or @camelliazhang ? I'm not sure what this param is.

@jplaisted
Copy link
Contributor

Nice! I don't know how I missed this sorry. Looks good to me, I think we can merge and let the unresolved question be answered afterwards.

@jplaisted
Copy link
Contributor

Also fwiw I have a big PR to fix all the rawtype issues in the code, but its breaking so I'm dragging my feet on it :)

#63

@jplaisted jplaisted merged commit c189e8c into linkedin:master Jan 19, 2021
@immmus immmus deleted the ebean_dao_refactor branch January 20, 2021 08:28
@immmus
Copy link
Contributor Author

immmus commented Jan 20, 2021

Nice! I don't know how I missed this sorry. Looks good to me, I think we can merge and let the unresolved question be answered afterwards.

Oh okay, I'll wait these changes:)

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