-
Notifications
You must be signed in to change notification settings - Fork 138
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
[DOM] NaiveASTFlattener should be sync with ASTFlattener of the JDT.UI #3268
[DOM] NaiveASTFlattener should be sync with ASTFlattener of the JDT.UI #3268
Conversation
@mpalat could you please review this PR and share your insights on this ? |
Will take a look. Meanwhile, please have a look and follow the process at https://github.com/eclipse-platform/eclipse.platform/blob/master/docs/Eclipse_API_Central_Deprecation_Policy.md when you are looking at deprecating APIs |
79aaaaf
to
1de89f4
Compare
1de89f4
to
6c23547
Compare
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.
Suby,
Let us do some additional cleanup here - Refer to MethodDeclaration - modifiers and see how it got changed. Let us do a similar approach here.
org.eclipse.jdt.core/dom/org/eclipse/jdt/internal/core/dom/NaiveASTFlattener.java
Show resolved
Hide resolved
org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypePattern.java
Outdated
Show resolved
Hide resolved
7703e6a
to
85849fe
Compare
2137102
to
b2b5e5a
Compare
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.
+1
Please rebase and submit. Thanks
There is an javadoc error that fails the build now:
eclipse.jdt.core/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TypePattern.java Line 190 in 5c82c91
I assume this should be a method annotation and not part of the javadoc. Also the date seems wrong |
Thanks @laeubi for flagging this. |
I was referring this doc for the deprecation and it is clearly mentioned that, the javaDoc changes should be The reason why I have added the since="2024-07", because this should be deprecated since 7th month of 2024. However after referring @laeubi comment, I got idea that this should be |
Please read again! As also mentioned above this is not an javadoc tag it is a method annotation as also mentioned in the doc:
there is also a javadoc tag https://stackoverflow.com/questions/20674135/deprecated-vs-deprecated |
this PR caused regression in ui: eclipse-jdt/eclipse.jdt.ui#1899 |
I've also noticed a regression (initially from the JDT-LS side). Affecting "Pattern matching for instanceof" cleanup. Screencast.From.2025-01-06.17-14-17.mp4 |
What it does
The unnamed variables and pattern's DOM and ASTRewrite implemented through #2623. Following items should be added along with that.
The Problem has reported here: eclipse-jdt/eclipse.jdt.ui#1764 (comment)
How to test
This PR closes #3261
Author checklist