File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Testing and the fly likes Finbugs & codesmell Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » Testing
Bookmark "Finbugs & codesmell" Watch "Finbugs & codesmell" New topic
Author

Finbugs & codesmell

Riccardo franconi
Greenhorn

Joined: May 31, 2010
Posts: 6
HI everyone,
I'm a computer science student,
I have to analyze the codesmell founded by findbugs with apache ant as input.
But findbugs seesms to found only bugs as his name say, not codesmell.

The bugs founded are this type:

variabile assigened to null
Method fall to close stream
clone method does not call super.clone
.....and more bugs

someone know something about codesmell reached by findbugs?

thank you


Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30749
    
156

Riccardo,
Welcome to JavaRanch!

FindBugs does find some things that are code smells. They aren't called that per se. For example UnusedLocalVariable is a code smell rather than a bug.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Riccardo franconi
Greenhorn

Joined: May 31, 2010
Posts: 6
I thought that codesmell are only the 22 quoted in fowler's book "Refactoring_-_Improving_the_Design_of_Existing_Code".
that are here codesmell

I have to found some from this 22 codesmell.
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11476
    
  94

There's more than 22. You might be interested in looking at Ward Cunningham's wiki pages on code smell.

(And in case you wonder why the wiki looks the way it does - Ward was the inventor of the wiki, and his is the original style.)


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Riccardo franconi
Greenhorn

Joined: May 31, 2010
Posts: 6
ok i finish my job, thank you for all

bye
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Finbugs & codesmell