mbien commented on PR #9623: URL: https://github.com/apache/netbeans/pull/9623#issuecomment-5846833752
deprecation is the right decision if a method parameter becomes a no-op - esp if there is a direct replacement with less parameters. https://github.com/openjdk/jdk/blob/30ec3785d8181eb36593ab0871dcf1707af3cae3/src/jdk.compiler/share/classes/com/sun/source/util/SourcePositions.java#L59-L61 https://github.com/openjdk/jdk/blob/30ec3785d8181eb36593ab0871dcf1707af3cae3/src/jdk.compiler/share/classes/com/sun/source/util/DocSourcePositions.java#L66-L68 Even if it wouldn't be for-removal, its worth getting rid of a parameter which doesn't do anything since it is something which could allow further code simplifications in future. This is just aligning NB's usage with the new API while shrinking the build log too as side effect. I am mostly looking for a second set of eyes who could go through the diff and check if it looks good. I already done that after refactoring but it wouldn't hurt. going to do a second pass and remove redundant overrides of the default method as in https://github.com/apache/netbeans/blob/731d7693874a756998da2e18855706ef57118acb/java/java.source.base/src/org/netbeans/api/java/source/TreeUtilities.java#L845-L848 (there aren't many - this will be a second commit -> I think this will allow removal of a field in some cases) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
