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.

Bug 131249 - Suggested refactoring: "Finalize variables"
Summary: Suggested refactoring: "Finalize variables"
Status: NEW
Alias: None
Product: java
Classification: Unclassified
Component: Refactoring (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Jan Becicka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-26 23:56 UTC by _ gtzabari
Modified: 2016-03-14 19:01 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description _ gtzabari 2008-03-26 23:56:42 UTC
I'd like to suggest the following refactoring to be added into Netbeans.

1) "Finalize variables" would scan a class file and suggest adding the "final" keyword to class fields and method
variables. The goal would be to improve the correctness of the program moving forward and in past JDKs adding final to a
variable used to improve runtime performance. I'm not sure if this is still the case.

2) "Remove unused classes/methods" would scan all classes in a project and indicate which classes/methods may be
removed. This is of greater use to applications than to libraries, for obvious reasons.
Comment 1 Petr Dvorak 2008-04-23 09:41:42 UTC
Reassigning to Refactoring > Java module owner
Comment 2 markiewb 2013-10-03 09:41:31 UTC
2) "Remove unused classes/methods" would scan all classes in a project and indicate which classes/methods may be
removed. This is of greater use to applications than to libraries, for obvious reasons. 

-> dup of https://netbeans.org/bugzilla/show_bug.cgi?id=181458
Comment 3 _ gtzabari 2016-03-14 19:01:42 UTC
Please confirm whether point 1 has already been implemented. If so, we can close this issue as FIXED or DUPLICATE.