Fork me on GitHub

Rapport FindBugs de détection des bugs

Le document suivant contient les résultats du FindBugs

La version de FindBugs est 3.0.1

La limite est

L'effort est max

Résumé

Classes Bugs Erreurs Classes Manquantes
54 26 0 0

Fichiers

Classe Bugs
fr.paris.lutece.plugins.rss.business.RssFeed 2
fr.paris.lutece.plugins.rss.business.RssGeneratedFile 3
fr.paris.lutece.plugins.rss.service.AutoUpdatingRss 2
fr.paris.lutece.plugins.rss.service.RssContentLoader 4
fr.paris.lutece.plugins.rss.service.RssGeneratorService 6
fr.paris.lutece.plugins.rss.web.FeedUtil 1
fr.paris.lutece.plugins.rss.web.RssAdminDashboardComponent 1
fr.paris.lutece.plugins.rss.web.RssFeedInclude 1
fr.paris.lutece.plugins.rss.web.RssJspBean 6

fr.paris.lutece.plugins.rss.business.RssFeed

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.rss.business.RssFeed.getLastFetchDate() may expose internal representation by returning RssFeed._dateLastFetch MALICIOUS_CODE EI_EXPOSE_REP 125 Medium
fr.paris.lutece.plugins.rss.business.RssFeed.setLastFetchDate(Timestamp) may expose internal representation by storing an externally mutable object into RssFeed._dateLastFetch MALICIOUS_CODE EI_EXPOSE_REP2 135 Medium

fr.paris.lutece.plugins.rss.business.RssGeneratedFile

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.rss.business.RssGeneratedFile.getUpdateDate() may expose internal representation by returning RssGeneratedFile._dateUpdate MALICIOUS_CODE EI_EXPOSE_REP 191 Medium
fr.paris.lutece.plugins.rss.business.RssGeneratedFile.setUpdateDate(Timestamp) may expose internal representation by storing an externally mutable object into RssGeneratedFile._dateUpdate MALICIOUS_CODE EI_EXPOSE_REP2 200 Medium
Incorrect lazy initialization and update of static field fr.paris.lutece.plugins.rss.business.RssGeneratedFile._listenerWorkgroup in fr.paris.lutece.plugins.rss.business.RssGeneratedFile.init() MT_CORRECTNESS LI_LAZY_INIT_UPDATE_STATIC 70-72 Medium

fr.paris.lutece.plugins.rss.service.AutoUpdatingRss

Bug Catégorie Détails Ligne Priorité
Exceptional return value of java.io.File.delete() ignored in fr.paris.lutece.plugins.rss.service.AutoUpdatingRss.processUpdatingRssFileFile(Plugin) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 109 Medium
Exceptional return value of java.io.File.mkdir() ignored in fr.paris.lutece.plugins.rss.service.AutoUpdatingRss.processUpdatingRssFileFile(Plugin) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 94 Medium

fr.paris.lutece.plugins.rss.service.RssContentLoader

Bug Catégorie Détails Ligne Priorité
Found reliance on default encoding in fr.paris.lutece.plugins.rss.service.RssContentLoader.getFromCacheFile(String): new java.io.FileReader(File) I18N DM_DEFAULT_ENCODING 170 High
Found reliance on default encoding in fr.paris.lutece.plugins.rss.service.RssContentLoader.saveInCacheFile(int, String): String.getBytes() I18N DM_DEFAULT_ENCODING 228 High
fr.paris.lutece.plugins.rss.service.RssContentLoader.saveInCacheFile(int, String) may fail to clean up java.io.OutputStream on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 226 Medium
Exceptional return value of java.io.File.delete() ignored in fr.paris.lutece.plugins.rss.service.RssContentLoader.saveInCacheFile(int, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 223 Medium

fr.paris.lutece.plugins.rss.service.RssGeneratorService

Bug Catégorie Détails Ligne Priorité
Found reliance on default encoding in fr.paris.lutece.plugins.rss.service.RssGeneratorService.createFileRss(String, String): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 259 High
fr.paris.lutece.plugins.rss.service.RssGeneratorService.createFileRss(String, String) may fail to clean up java.io.Writer on checked exception EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE 259 Medium
Exceptional return value of java.io.File.delete() ignored in fr.paris.lutece.plugins.rss.service.RssGeneratorService.createFileRss(String, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 268 Medium
Exceptional return value of java.io.File.mkdir() ignored in fr.paris.lutece.plugins.rss.service.RssGeneratorService.createFileRss(String, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 249 Medium
Exceptional return value of java.io.File.renameTo(File) ignored in fr.paris.lutece.plugins.rss.service.RssGeneratorService.createFileRss(String, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 271 Medium
Exceptional return value of java.io.File.delete() ignored in fr.paris.lutece.plugins.rss.service.RssGeneratorService.deleteFileRss(String, String) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 301 Medium

fr.paris.lutece.plugins.rss.web.FeedUtil

Bug Catégorie Détails Ligne Priorité
Unchecked/unconfirmed cast from fr.paris.lutece.portal.business.rss.IResourceRss to fr.paris.lutece.plugins.rss.business.RssFeed in fr.paris.lutece.plugins.rss.web.FeedUtil.getFeed(IResourceRss) STYLE BC_UNCONFIRMED_CAST 110 Medium

fr.paris.lutece.plugins.rss.web.RssAdminDashboardComponent

Bug Catégorie Détails Ligne Priorité
Dead store to template in fr.paris.lutece.plugins.rss.web.RssAdminDashboardComponent.getDashboardData(AdminUser, HttpServletRequest) STYLE DLS_DEAD_LOCAL_STORE 62 Medium

fr.paris.lutece.plugins.rss.web.RssFeedInclude

Bug Catégorie Détails Ligne Priorité
Useless object stored in variable model of method fr.paris.lutece.plugins.rss.web.RssFeedInclude.fillTemplate(Map, PageData, int, HttpServletRequest) STYLE UC_USELESS_OBJECT 115 Medium

fr.paris.lutece.plugins.rss.web.RssJspBean

Bug Catégorie Détails Ligne Priorité
fr.paris.lutece.plugins.rss.web.RssJspBean.getJspCreateRssResource(HttpServletRequest, String, String, String, String, Map) invokes inefficient new String() constructor PERFORMANCE DM_STRING_VOID_CTOR 947 Medium
fr.paris.lutece.plugins.rss.web.RssJspBean.getJspModifyRssResource(HttpServletRequest, String, String, String, String, String, Map) invokes inefficient new String() constructor PERFORMANCE DM_STRING_VOID_CTOR 967 Medium
fr.paris.lutece.plugins.rss.web.RssJspBean.getJspCreateRssResource(HttpServletRequest, String, String, String, String, Map) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 951 Medium
fr.paris.lutece.plugins.rss.web.RssJspBean.getJspModifyRssResource(HttpServletRequest, String, String, String, String, String, Map) concatenates strings using + in a loop PERFORMANCE SBSC_USE_STRINGBUFFER_CONCATENATION 971 Medium
fr.paris.lutece.plugins.rss.web.RssJspBean.getJspCreateRssResource(HttpServletRequest, String, String, String, String, Map) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 951 Medium
fr.paris.lutece.plugins.rss.web.RssJspBean.getJspModifyRssResource(HttpServletRequest, String, String, String, String, String, Map) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 971 Medium