FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.1

Threshold is medium

Effort is min

Summary

ClassesBugsErrorsMissing Classes
4515044

Clock2

BugCategoryDetailsLinePriority
Clock2.init() might ignore java.lang.ExceptionBAD_PRACTICEDE_MIGHT_IGNORE58High

CookieExample

BugCategoryDetailsLinePriority
HTTP cookie formed from untrusted input in CookieExample.doGet(HttpServletRequest, HttpServletResponse)SECURITYHRS_REQUEST_PARAMETER_TO_COOKIE85High

servletToJsp

BugCategoryDetailsLinePriority
The class name servletToJsp doesn't start with an upper case letterBAD_PRACTICENM_CLASS_NAMING_CONVENTION19Medium

cal.Entry

BugCategoryDetailsLinePriority
Unused field: cal.Entry.colorPERFORMANCEUUF_UNUSED_FIELDMedium

cal.JspCalendar

BugCategoryDetailsLinePriority
Unused field: cal.JspCalendar.currentDatePERFORMANCEUUF_UNUSED_FIELDMedium

chat.ChatServlet

BugCategoryDetailsLinePriority
Found reliance on default encoding in chat.ChatServlet.read(CometEvent, HttpServletRequest, HttpServletResponse): new String(byte[], int, int)I18NDM_DEFAULT_ENCODING162High

checkbox.CheckTest

BugCategoryDetailsLinePriority
checkbox.CheckTest.getFruit() may expose internal representation by returning CheckTest.bMALICIOUS_CODEEI_EXPOSE_REP25Medium
checkbox.CheckTest.setFruit(String[]) may expose internal representation by storing an externally mutable object into CheckTest.bMALICIOUS_CODEEI_EXPOSE_REP229Medium

compressionFilters.CompressionResponseStream

BugCategoryDetailsLinePriority
Unread public/protected field: compressionFilters.CompressionResponseStream.lengthSTYLEURF_UNREAD_PUBLIC_OR_PROTECTED_FIELD95Medium

compressionFilters.CompressionServletResponseWrapper

BugCategoryDetailsLinePriority
Found reliance on default encoding in compressionFilters.CompressionServletResponseWrapper.getWriter(): new java.io.PrintWriter(OutputStream)I18NDM_DEFAULT_ENCODING234High
Unread public/protected field: compressionFilters.CompressionServletResponseWrapper.contentTypeSTYLEURF_UNREAD_PUBLIC_OR_PROTECTED_FIELD95Medium

filters.SetCharacterEncodingFilter

BugCategoryDetailsLinePriority
Unread public/protected field: filters.SetCharacterEncodingFilter.filterConfigSTYLEURF_UNREAD_PUBLIC_OR_PROTECTED_FIELD76Medium

jsp2.examples.simpletag.ShuffleSimpleTag

BugCategoryDetailsLinePriority
jsp2.examples.simpletag.ShuffleSimpleTag.doTag() uses the nextDouble method of Random to generate a random integer; using nextInt is more efficientPERFORMANCEDM_NEXTINT_VIA_NEXTDOUBLE36Medium
Switch statement found in jsp2.examples.simpletag.ShuffleSimpleTag.doTag() where default case is missingSTYLESF_SWITCH_NO_DEFAULT36Medium

num.NumberGuessBean

BugCategoryDetailsLinePriority
Random object created and used only once in num.NumberGuessBean.reset()BAD_PRACTICEDMI_RANDOM_USED_ONLY_ONCE75High