-
Notifications
You must be signed in to change notification settings - Fork 13.8k
[FLINK-2437] Fix default constructor detection in TypeExtractor.analyzePojo #960
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
Conversation
|
I removed the added "return null", I just realized that it is not needed. |
|
Could you please add a test case that verifies the correct behaviour? |
|
Why are you changing all messages in this pull request? They were not wrong before... |
|
Stephan is right. The changed messages just add noise to the pull request which makes it harder to review. |
90431c3 to
2f4640f
Compare
|
They print things like I have also added a test. |
|
Removing the double "class" is actually not bad. Was hard to get this from the diff alone. BTW: Simpler way may be to change the |
|
OK, I re-added the changes to remove the double "class". (Note, that the 3rd bullet in the opening comment refers to this doubling.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if(defaultConstructor != null && Modifier.isPublic(defaultConstructor.getModifiers()) seems to be more readable to me but your approach is fine too.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You are right, I have changed it.
|
Your changes look good to merge. |
…actor.analyzePojo Also changed some prints which printed the word "class" twice, because class.toString also prepends it to the class name.
…actor.analyzePojo Also changed some prints which printed the word "class" twice, because class.toString also prepends it to the class name. This closes #960.
|
Thanks for your contribution! |
…actor.analyzePojo Also changed some prints which printed the word "class" twice, because class.toString also prepends it to the class name. This closes apache#960.
[hotfix] remove public scope for tests in cc-flink-schema-registry
names, because class.toString also prepends it to the class name