-
Notifications
You must be signed in to change notification settings - Fork 865
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
fix for #7640 (formating related issue in javadoc) #7641
Conversation
java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
Outdated
Show resolved
Hide resolved
java/java.source.base/test/unit/src/org/netbeans/modules/java/source/save/FormatingTest.java
Outdated
Show resolved
Hide resolved
I am sorry, but it seems this patch contains way too many "drive-by" changes to allow a reasonable review. I probably could accept having constants instead of hardcoded number, but changing |
@lahodaj its two commits, the first refactors, the second fixes the issue. We do allow the two commit approach, otherwise nobody would ever refactor anything ;) But I agree that the renaming could be probably reduced a bit. |
hi @lahodaj , @mbien thanks for taking a look into pr , i have added minor refactoring changes to improve readability of code in the same method where fix related changes exist(while i was debugging the issue), just following this clean code principle. as @mbien mentioned i have added refactoring changes in one commit(where tests are passing before adding fix) and fix as head commit(with new tests). i would like to summarise refactoring changes as below. take a look and let me know which and all refactoring changes you see doesn't add value, will revert them accordingly.
let me know @lahodaj if you don't see value add on point's 3,4 will go ahead and revert them. |
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.
looks good to me, added some minor comments mostly about formatting issues
please sqush into two commits, one with the refactoring, the other with the fix and force push.
Once done we can run CI and get a dev-build from it for a manual smoke test.
java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
Outdated
Show resolved
Hide resolved
java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
Outdated
Show resolved
Hide resolved
java/java.source.base/test/unit/src/org/netbeans/modules/java/source/save/FormatingTest.java
Outdated
Show resolved
Hide resolved
java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
Outdated
Show resolved
Hide resolved
java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
Outdated
Show resolved
Hide resolved
java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
Outdated
Show resolved
Hide resolved
java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
Outdated
Show resolved
Hide resolved
java/java.source.base/src/org/netbeans/modules/java/source/save/Reformatter.java
Outdated
Show resolved
Hide resolved
… of defined tags as this list can grow + testcases addressing review comment - bumping java source version to use text blocks
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.
looks good to me - thanks. A tested this a little bit and all inline tags are now left untouched by the formatter.
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.
Looks fine. All formating tests are passing.
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.
Seems OK.
three approvals, java tests ran and are green, commit header/email address looks valid, fix and refactoring is kept separate -> merging @naren2605 thanks and congrats on your first NetBeans contribution ;) |
thank you @mbien |
fixes issue mentioned here #7640 :
fix: