This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Summary: | When renaming a method parameter, rename in comments should be limited to the Javadoc for the method. | ||
---|---|---|---|
Product: | java | Reporter: | Marian Petras <mpetras> |
Component: | Refactoring | Assignee: | Tomas Zezula <tzezula> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | jkovalsky, kapitarg, ppis, tstupka |
Priority: | P3 | Keywords: | NETFIX |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | DEFECT | Exception Reporter: | |
Attachments: | Limiting method parameter rename to the scope of the method |
Description
Marian Petras
2009-11-16 10:44:46 UTC
Issue added to NetFIX Pool [1]. Module owner please speak up if you disagree. [1] http://wiki.netbeans.org/NetFIXIssues Created attachment 97565 [details]
Limiting method parameter rename to the scope of the method
IMHO limiting the scope of rename only to the javadoc, is too restrictive. At least I would find reasonable to add a comment referring to the parameter anywhere, where the parameter could be used. And in that case, those references in the comments should be renamed as well.
So in the patch, I limited the scope of the rename only to comments before the method, and to comments within the method body.
Tomasi, what do you think about this patch? Can you please integrate it if you don't have any comments? Thanks! I will look at it tonight or tomorrow. Sorry I am very busy now. The patch seems fine to me. Thanks for it and feel free to integrate. Tomasi, Gabor does not have a push access to our Hg repository. Could you please integrate the patch on his behalf? Many thanks! OK, I will do it. Integrated into jet-main 76a8012d1857 Thanks for the patch! Wonderful, thanks Tomasi for your review & integration and special thanks to Gabor for your patch! Integrated into 'main-golden', will be available in build *201004240200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/76a8012d1857 User: Tomas Zezula <tzezula@netbeans.org> Log: #176929:When renaming a method parameter, rename in comments should be limited to the Javadoc for the method. - integrating kapitarg's patch. *** Bug 179696 has been marked as a duplicate of this bug. *** |