Results 1 to 3 of 3
Thread: Code Cleanup
- 05-07-2010, 01:31 PM #1
Member
- Join Date
- Aug 2009
- Posts
- 26
- Rep Power
- 0
Code Cleanup
All
I am maintaining some code and I have just seen something silly like the below. I corrected of course because we have an unused instance of class A floating around until the garbage collector decides to reclaim it.
Java Code:A a = new A(); a = (A)...;
Do any of you know of a tool that can scan source code and detect such things?
Regards
Patrick
- 05-07-2010, 01:55 PM #2
Moderator
- Join Date
- Apr 2009
- Posts
- 10,481
- Rep Power
- 16
That's the sort of thing Findbugs can look for.
There's a plugin for most, if not all, IDEs.
- 05-09-2010, 02:20 PM #3
- Join Date
- Jul 2007
- Location
- Colombo, Sri Lanka
- Posts
- 11,374
- Blog Entries
- 1
- Rep Power
- 18
In most cases NetBeans does that.
Similar Threads
-
can any one pls send me a sample code for calling a jsp code in swings
By sniffer139 in forum AWT / SwingReplies: 1Last Post: 03-04-2010, 11:19 AM -
Convert java code to midlet code
By coldvoice05 in forum New To JavaReplies: 1Last Post: 08-12-2009, 11:14 AM -
Convert java code to midlet code
By coldvoice05 in forum Advanced JavaReplies: 1Last Post: 08-09-2009, 01:21 PM -
I need help fixing my code.. or non code?
By MrHuggykins in forum New To JavaReplies: 1Last Post: 03-19-2008, 10:12 PM -
Generating Code Automatically Using Custom code Template In Eclipse
By JavaForums in forum EclipseReplies: 1Last Post: 04-26-2007, 03:52 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks