-
Notifications
You must be signed in to change notification settings - Fork 54
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
Less warnings, less castings, no unnecessary blocks #104
base: master
Are you sure you want to change the base?
Conversation
My extentions for jaxb basics (plugins): * No unnecessary block in methods like toString(), equals(), hashCode(), append(), copyTo() * No unnecessary declaraction line and assignment lines for a given varaible in method like above * @OverRide everywhere where necessary
Less SuppressWarnings are used when this is not necessary (at Eclipse,Java 8 default compiler options)
This reverts commit fe98935.
This reverts commit 134080d.
* No unnecessary block in methods like toString(), equals(), hashCode(), append(), copyTo() * No unnecessary declaraction line and assignment lines for a given varaible in method like above * @OverRide everywhere where necessary * Less SuppressWarnings are used when this is not necessary (at Eclipse,Java 8 default compiler options)
Hi, first of all please let me say that I appreaciate your effort. Your intention clearly is to improve the code quality and I understand it. Having said that I am inclined not to accept the pull request as I think it fixes not the right things.
The PR seems to bring a lot of trivial changes which affect code formatting and make it harder to see substantial changes. So I'm sorry but I think it will be better not to accept this PR. Let's try it from a different angle. Apart from "unnecessary" blocks, what are the important changes you'd like to apply? |
Hi, The reason why I look in the code at all were the followings:
|
After googling on the blocks inside a method indicates the next things:
Look at [https://stackoverflow.com/questions/1563030/anonymous-code-blocks-in-java] |
Servus,
Too general - this should be broken into actionable items.
I suggest to leave this point out of discussion. I have a rather strong opinion on this. Write me off as stubborn, if you will, but please let us save time on this one. At the moment, removed blocks in plugin code hinder me to review the PR since the code became not-quite-diffable and that's a practical problem.
This is how field accessor work in XJC. Please see
OK.
Not quite sure which
Ok, we can work this out.
Could you please give an example?
Would be good to break this into actionable items.
I'd absolutely welcome |
I've created #105 and https://github.com/highsource/jaxb2-basics/tree/issue-105 to work on improving the quality of the generated code. |
Less warnings, less castings, no unnecessary blocks