• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Finbugs & codesmell

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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


 
author & internet detective
Posts: 41860
908
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Riccardo franconi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author and jackaroo
Posts: 12200
280
Mac IntelliJ IDE Firefox Browser Oracle C++ Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.)
 
Riccardo franconi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
ok i finish my job, thank you for all

bye
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic