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

Summary: Suggested refactoring: "Finalize variables"
Product: java Reporter: _ gtzabari <gtzabari>
Component: RefactoringAssignee: Jan Becicka <jbecicka>
Status: NEW ---    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.