Fork me on GitHub

FindBugs Bug Detector Report

The following document contains the results of FindBugs

FindBugs Version is 3.0.1

Threshold is

Effort is max

Summary

Classes Bugs Errors Missing Classes
31 12 0 38

Files

Class Bugs
fr.paris.lutece.plugins.identityexport.ExportService 3
fr.paris.lutece.plugins.identityexport.business.ElasticsearchResponseJSON$Hit 2
fr.paris.lutece.plugins.identityexport.business.ElasticsearchResponseJSON$Total 2
fr.paris.lutece.plugins.identityexport.export.ProfileGenerator 2
fr.paris.lutece.plugins.identityexport.service.file.implementation.LocalFileSystemDirectoryFileService 1
fr.paris.lutece.plugins.identityexport.web.ExtractionJspBean 2

fr.paris.lutece.plugins.identityexport.ExportService

Bug Category Details Line Priority
Dead store to lstFields in fr.paris.lutece.plugins.identityexport.ExportService.generateExport(int) STYLE DLS_DEAD_LOCAL_STORE 161 High
Dead store to lstCertifCodes in fr.paris.lutece.plugins.identityexport.ExportService.generateExport(int) STYLE DLS_DEAD_LOCAL_STORE 56 Medium
Boxing/unboxing to parse a primitive fr.paris.lutece.plugins.identityexport.ExportService.getLstCertifCode(String) PERFORMANCE DM_BOXED_PRIMITIVE_FOR_PARSING 303 High

fr.paris.lutece.plugins.identityexport.business.ElasticsearchResponseJSON$Hit

Bug Category Details Line Priority
fr.paris.lutece.plugins.identityexport.business.ElasticsearchResponseJSON$Hit.getSort() may expose internal representation by returning ElasticsearchResponseJSON$Hit.sort MALICIOUS_CODE EI_EXPOSE_REP 119 Medium
fr.paris.lutece.plugins.identityexport.business.ElasticsearchResponseJSON$Hit.setSort(String[]) may expose internal representation by storing an externally mutable object into ElasticsearchResponseJSON$Hit.sort MALICIOUS_CODE EI_EXPOSE_REP2 122 Medium

fr.paris.lutece.plugins.identityexport.business.ElasticsearchResponseJSON$Total

Bug Category Details Line Priority
Unused field: fr.paris.lutece.plugins.identityexport.business.ElasticsearchResponseJSON$Total.relation PERFORMANCE UUF_UNUSED_FIELD Not available Medium
Unused field: fr.paris.lutece.plugins.identityexport.business.ElasticsearchResponseJSON$Total.value PERFORMANCE UUF_UNUSED_FIELD Not available Medium

fr.paris.lutece.plugins.identityexport.export.ProfileGenerator

Bug Category Details Line Priority
Found reliance on default encoding in fr.paris.lutece.plugins.identityexport.export.ProfileGenerator.init(): new java.io.FileWriter(String) I18N DM_DEFAULT_ENCODING 39 High
Exceptional return value of java.io.File.delete() ignored in fr.paris.lutece.plugins.identityexport.export.ProfileGenerator.finalizeAndGenerateZipFile() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 84 Medium

fr.paris.lutece.plugins.identityexport.service.file.implementation.LocalFileSystemDirectoryFileService

Bug Category Details Line Priority
Exceptional return value of java.io.File.delete() ignored in fr.paris.lutece.plugins.identityexport.service.file.implementation.LocalFileSystemDirectoryFileService.delete(String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 125 Medium

fr.paris.lutece.plugins.identityexport.web.ExtractionJspBean

Bug Category Details Line Priority
Dead store to lstProfils in fr.paris.lutece.plugins.identityexport.web.ExtractionJspBean.getCreateExtraction(HttpServletRequest) STYLE DLS_DEAD_LOCAL_STORE 199 Medium
Dead store to profilsReferenceList in fr.paris.lutece.plugins.identityexport.web.ExtractionJspBean.getManageExtractions(HttpServletRequest) STYLE DLS_DEAD_LOCAL_STORE 152 Medium