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
404100

net.sf.webphotos.Album

BugCategoryDetailsLinePriority
Possible null pointer dereference of album in net.sf.webphotos.Album.loadAlbum(int)CORRECTNESSNP_NULL_ON_SOME_PATH402Medium
net.sf.webphotos.Album.toJavaScript() concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION748Medium
net.sf.webphotos.Album.toString() concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION689Medium
net.sf.webphotos.Album.toXML() concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION714Medium

net.sf.webphotos.BancoImagem

BugCategoryDetailsLinePriority
net.sf.webphotos.BancoImagem.getPassword() may expose internal representation by returning BancoImagem.senhaMALICIOUS_CODEEI_EXPOSE_REP243Medium
net.sf.webphotos.BancoImagem.getPasswordFTP() may expose internal representation by returning BancoImagem.senhaFTPMALICIOUS_CODEEI_EXPOSE_REP261Medium
exceptional return value of java.io.File.mkdirs() ignored in net.sf.webphotos.BancoImagem.getLocalPath(int)BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE99Medium
Write to static field net.sf.webphotos.BancoImagem.driver from instance method net.sf.webphotos.BancoImagem.configure(String, String)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD124High
Write to static field net.sf.webphotos.BancoImagem.url from instance method net.sf.webphotos.BancoImagem.configure(String, String)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD123High
Write to static field net.sf.webphotos.BancoImagem.senhaFTP from instance method net.sf.webphotos.BancoImagem.setPasswordFTP(char[])STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD279High
Write to static field net.sf.webphotos.BancoImagem.usuarioFTP from instance method net.sf.webphotos.BancoImagem.setUserFTP(String)STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD270High

net.sf.webphotos.PhotoDTO

BugCategoryDetailsLinePriority
Can't close st since it is always null in net.sf.webphotos.PhotoDTO.atualizaFoto()CORRECTNESSNP_CLOSING_NULL410High
Unread field: net.sf.webphotos.PhotoDTO.tamanhoBytesPERFORMANCEURF_UNREAD_FIELD56Medium

net.sf.webphotos.PhotoDTO$1

BugCategoryDetailsLinePriority
input must be nonnull but is marked as nullableSTYLENP_PARAMETER_MUST_BE_NONNULL_BUT_MARKED_AS_NULLABLE46Medium

net.sf.webphotos.gui.util.FtpClient

BugCategoryDetailsLinePriority
new net.sf.webphotos.gui.util.FtpClient() invokes System.exit(...), which shuts down the entire virtual machineBAD_PRACTICEDM_EXIT98Medium
exceptional return value of java.io.File.mkdir() ignored in net.sf.webphotos.gui.util.FtpClient.run()BAD_PRACTICERV_RETURN_VALUE_IGNORED_BAD_PRACTICE412Medium

net.sf.webphotos.gui.util.Login

BugCategoryDetailsLinePriority
net.sf.webphotos.gui.util.Login.getPassword() may expose internal representation by returning Login.senhaMALICIOUS_CODEEI_EXPOSE_REP175Medium
Write to static field net.sf.webphotos.gui.util.Login.telaLogin from instance method net.sf.webphotos.gui.util.Login.startLogin()STYLEST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD75Medium

net.sf.webphotos.gui.util.TableSorter

BugCategoryDetailsLinePriority
net.sf.webphotos.gui.util.TableSorter$MouseHandler stored into non-transient field TableSorter.mouseListenerBAD_PRACTICESE_BAD_FIELD_STORE130Medium
net.sf.webphotos.gui.util.TableSorter$TableModelHandler stored into non-transient field TableSorter.tableModelListenerBAD_PRACTICESE_BAD_FIELD_STORE131Medium

net.sf.webphotos.gui.util.TableSorter$Arrow

BugCategoryDetailsLinePriority
integral division result cast to double or float in net.sf.webphotos.gui.util.TableSorter$Arrow.paintIcon(Component, Graphics, int, int)STYLEICAST_IDIV_CAST_TO_DOUBLE520Medium

net.sf.webphotos.gui.util.TableSorter$Row

BugCategoryDetailsLinePriority
net.sf.webphotos.gui.util.TableSorter$Row defines compareTo(TableSorter$Row) and uses Object.equals()BAD_PRACTICEEQ_COMPARETO_USE_OBJECT_EQUALS397-421Medium

net.sf.webphotos.locator.BasicEJBLocator

BugCategoryDetailsLinePriority
net.sf.webphotos.locator.BasicEJBLocator.EJB_CONTEXT_FACTORY isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL41High
net.sf.webphotos.locator.BasicEJBLocator.EJB_SERVER isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL45High
net.sf.webphotos.locator.BasicEJBLocator.EJB_URL_PREFIXES isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL37High

net.sf.webphotos.sync.FTP.SyncObject

BugCategoryDetailsLinePriority
net.sf.webphotos.sync.FTP.SyncObject.getSenha() may expose internal representation by returning SyncObject.senhaMALICIOUS_CODEEI_EXPOSE_REP528Medium
net.sf.webphotos.sync.FTP.SyncObject.setSenha(char[]) may expose internal representation by storing an externally mutable object into SyncObject.senhaMALICIOUS_CODEEI_EXPOSE_REP2538Medium
Load of known null value in net.sf.webphotos.sync.FTP.SyncObject.connect()STYLENP_LOAD_OF_KNOWN_NULL_VALUE199Medium
Null passed for nonnull parameter of java.util.Hashtable.put(Object, Object) in net.sf.webphotos.sync.FTP.SyncObject.connect()CORRECTNESSNP_NONNULL_PARAM_VIOLATION199High

net.sf.webphotos.util.Util

BugCategoryDetailsLinePriority
Incorrect lazy initialization and update of static field net.sf.webphotos.util.Util.albunsRoot in net.sf.webphotos.util.Util.getAlbunsRoot()MT_CORRECTNESSLI_LAZY_INIT_UPDATE_STATIC128-129Medium
net.sf.webphotos.util.Util.err isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL68High
net.sf.webphotos.util.Util.out isn't final but should beMALICIOUS_CODEMS_SHOULD_BE_FINAL67High
net.sf.webphotos.util.Util.<static initializer>() may fail to clean up java.io.OutputStreamEXPERIMENTALOBL_UNSATISFIED_OBLIGATION90Medium

net.sf.webphotos.util.legacy.Arquivo

BugCategoryDetailsLinePriority
Switch statement found in new net.sf.webphotos.util.legacy.Arquivo(String, int, int, int, String, long) where default case is missingSTYLESF_SWITCH_NO_DEFAULT96-104Medium

net.sf.webphotos.util.legacy.CacheFTP

BugCategoryDetailsLinePriority
Found reliance on default encoding in net.sf.webphotos.util.legacy.CacheFTP.loadFile(): new java.io.FileReader(File)I18NDM_DEFAULT_ENCODING158High
Found reliance on default encoding in net.sf.webphotos.util.legacy.CacheFTP.saveFile(): new java.io.FileWriter(File)I18NDM_DEFAULT_ENCODING194High
Found reliance on default encoding in net.sf.webphotos.util.legacy.CacheFTP.saveFile(): new java.io.FileWriter(File, boolean)I18NDM_DEFAULT_ENCODING212High
net.sf.webphotos.util.legacy.CacheFTP.toString() concatenates strings using + in a loopPERFORMANCESBSC_USE_STRINGBUFFER_CONCATENATION254Medium

net.sf.webphotos.util.legacy.ComandoFTP

BugCategoryDetailsLinePriority
net.sf.webphotos.util.legacy.ComandoFTP defines equals and uses Object.hashCode()BAD_PRACTICEHE_EQUALS_USE_HASHCODE54-63High
net.sf.webphotos.util.legacy.ComandoFTP.equals(Object) does not check for null argumentBAD_PRACTICENP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT54-63Medium

net.sf.webphotos.util.legacy.Photo

BugCategoryDetailsLinePriority
Exception is caught when Exception is not thrown in net.sf.webphotos.util.legacy.Photo.resize(String, String, int)STYLEREC_CATCH_EXCEPTION89Medium