FindBugs Bug Detector Report

The following document contains the results of FindBugs Report

FindBugs Version is 2.0.2

Threshold is medium

Effort is min

Summary

Classes Bugs Errors Missing Classes
126 36 0 0

net.sf.logdistiller.Attributes

Bug Category Details Line Priority
La méthode net.sf.logdistiller.Attributes.getExtensions() risque d'exposer sa représentation interne en renvoyant net.sf.logdistiller.Attributes.extensions MALICIOUS_CODE EI_EXPOSE_REP 49 Medium
La méthode new net.sf.logdistiller.Attributes(String, Attributes$Extension[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans net.sf.logdistiller.Attributes.extensions MALICIOUS_CODE EI_EXPOSE_REP2 39 Medium

net.sf.logdistiller.Attributes$Extension

Bug Category Details Line Priority
Le champ net.sf.logdistiller.Attributes$Extension.regexp est transient mais n'est pas alimenté lors de la désérialisation BAD_PRACTICE SE_TRANSIENT_FIELD_NOT_RESTORED Not available Medium

net.sf.logdistiller.FactoryMultiplexer$EntryNaturalComparator

Bug Category Details Line Priority
net.sf.logdistiller.FactoryMultiplexer$EntryNaturalComparator implémente Comparator mais pas Serializable BAD_PRACTICE SE_COMPARATOR_SHOULD_BE_SERIALIZABLE 166-171 Medium

net.sf.logdistiller.LogDistillation

Bug Category Details Line Priority
exceptional return value of java.io.File.mkdirs() ignored in net.sf.logdistiller.LogDistillation.begin() BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 182 Medium

net.sf.logdistiller.LogDistillation$Group

Bug Category Details Line Priority
Found reliance on default encoding in net.sf.logdistiller.LogDistillation$Group.addLogEvent(LogEvent, Condition): new java.io.PrintStream(OutputStream) I18N DM_DEFAULT_ENCODING 509 High
net.sf.logdistiller.LogDistillation$Group is serializable and an inner class BAD_PRACTICE SE_INNER_CLASS 386-583 Medium

net.sf.logdistiller.LogType$Description

Bug Category Details Line Priority
net.sf.logdistiller.LogType$Description.setExtensions(Attributes$Extension[]) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead PERFORMANCE DM_NUMBER_CTOR 149 Medium
La méthode net.sf.logdistiller.LogType$Description.getExtensions() risque d'exposer sa représentation interne en renvoyant net.sf.logdistiller.LogType$Description.extensions MALICIOUS_CODE EI_EXPOSE_REP 157 Medium
La méthode net.sf.logdistiller.LogType$Description.setExtensions(Attributes$Extension[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans net.sf.logdistiller.LogType$Description.extensions MALICIOUS_CODE EI_EXPOSE_REP2 143 Medium

net.sf.logdistiller.ant.LogDistillerTask

Bug Category Details Line Priority
Found reliance on default encoding in net.sf.logdistiller.ant.LogDistillerTask.addFile(File, LogType$Description, FactoryMultiplexer): new java.io.InputStreamReader(InputStream) I18N DM_DEFAULT_ENCODING 337 High
La méthode net.sf.logdistiller.ant.LogDistillerTask.addFile(File, LogType$Description, FactoryMultiplexer) peut ne pas fermer un flux BAD_PRACTICE OS_OPEN_STREAM 358 Medium

net.sf.logdistiller.logtypes.JBossLogEvent

Bug Category Details Line Priority
net.sf.logdistiller.logtypes.JBossLogEvent defines compareTo(JBossLogEvent) and uses Object.equals() BAD_PRACTICE EQ_COMPARETO_USE_OBJECT_EQUALS 88 Medium
Call to method of static java.text.DateFormat in new net.sf.logdistiller.logtypes.JBossLogEvent(LogEvent$Factory, String, String, String) MT_CORRECTNESS STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE 73 Medium

net.sf.logdistiller.logtypes.Log4jXmlLogEvent

Bug Category Details Line Priority
net.sf.logdistiller.logtypes.Log4jXmlLogEvent defines compareTo(Log4jXmlLogEvent) and uses Object.equals() BAD_PRACTICE EQ_COMPARETO_USE_OBJECT_EQUALS 140-141 Medium
Call to method of static java.text.DateFormat in new net.sf.logdistiller.logtypes.Log4jXmlLogEvent(LogEvent$Factory, String) MT_CORRECTNESS STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE 87 Medium

net.sf.logdistiller.logtypes.OracleAlertLogEvent

Bug Category Details Line Priority
net.sf.logdistiller.logtypes.OracleAlertLogEvent defines compareTo(OracleAlertLogEvent) and uses Object.equals() BAD_PRACTICE EQ_COMPARETO_USE_OBJECT_EQUALS 88 Medium
Call to method of static java.text.DateFormat in new net.sf.logdistiller.logtypes.OracleAlertLogEvent(LogEvent$Factory, String, String) MT_CORRECTNESS STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE 80 Medium

net.sf.logdistiller.logtypes.WeblogicLogEvent

Bug Category Details Line Priority
net.sf.logdistiller.logtypes.WeblogicLogEvent defines compareTo(WeblogicLogEvent) and uses Object.equals() BAD_PRACTICE EQ_COMPARETO_USE_OBJECT_EQUALS 114 Medium

net.sf.logdistiller.plugins.FreqPlugin$Freq

Bug Category Details Line Priority
La méthode new net.sf.logdistiller.plugins.FreqPlugin$Freq(String, String[]) risque d'exposer sa représentation interne en stockant un objet externe modifiable dans net.sf.logdistiller.plugins.FreqPlugin$Freq.values MALICIOUS_CODE EI_EXPOSE_REP2 449 Medium

net.sf.logdistiller.plugins.SamplingPlugin

Bug Category Details Line Priority
Found reliance on default encoding in net.sf.logdistiller.plugins.SamplingPlugin.getSamplingLogStream(): new java.io.PrintStream(OutputStream) I18N DM_DEFAULT_ENCODING 82 High

net.sf.logdistiller.publishers.FeedPublisher

Bug Category Details Line Priority
exceptional return value of java.io.File.delete() ignored in net.sf.logdistiller.publishers.FeedPublisher.addEntry(SyndEntry, LogDistillation, LogDistiller$Report) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 209 Medium
exceptional return value of java.io.File.renameTo(File) ignored in net.sf.logdistiller.publishers.FeedPublisher.addEntry(SyndEntry, LogDistillation, LogDistiller$Report) BAD_PRACTICE RV_RETURN_VALUE_IGNORED_BAD_PRACTICE 210 Medium

net.sf.logdistiller.publishers.FilePublisher

Bug Category Details Line Priority
Found reliance on default encoding in net.sf.logdistiller.publishers.FilePublisher.publish(LogDistillation$Group, LogDistiller$Report): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 65 High
Found reliance on default encoding in net.sf.logdistiller.publishers.FilePublisher.publish(LogDistillation, LogDistiller$Report): new java.io.FileWriter(File) I18N DM_DEFAULT_ENCODING 45 High

net.sf.logdistiller.reports.TextReport

Bug Category Details Line Priority
Call to method of static java.text.DateFormat in net.sf.logdistiller.reports.TextReport.report(LogDistillation, Writer) MT_CORRECTNESS STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE 66 Medium

net.sf.logdistiller.util.UncompressInputStream

Bug Category Details Line Priority
Synchronisation incohérente de net.sf.logdistiller.util.UncompressInputStream.bitmask; verrouillée à 75% MT_CORRECTNESS IS2_INCONSISTENT_SYNC 414 Medium
Synchronisation incohérente de net.sf.logdistiller.util.UncompressInputStream.finchar; verrouillée à 75% MT_CORRECTNESS IS2_INCONSISTENT_SYNC 416 Medium
Synchronisation incohérente de net.sf.logdistiller.util.UncompressInputStream.free_ent; verrouillée à 75% MT_CORRECTNESS IS2_INCONSISTENT_SYNC 417 Medium
Synchronisation incohérente de net.sf.logdistiller.util.UncompressInputStream.maxcode; verrouillée à 60% MT_CORRECTNESS IS2_INCONSISTENT_SYNC 413 Medium
Synchronisation incohérente de net.sf.logdistiller.util.UncompressInputStream.maxmaxcode; verrouillée à 50% MT_CORRECTNESS IS2_INCONSISTENT_SYNC 411 Medium
Synchronisation incohérente de net.sf.logdistiller.util.UncompressInputStream.n_bits; verrouillée à 60% MT_CORRECTNESS IS2_INCONSISTENT_SYNC 412 Medium
Synchronisation incohérente de net.sf.logdistiller.util.UncompressInputStream.oldcode; verrouillée à 75% MT_CORRECTNESS IS2_INCONSISTENT_SYNC 415 Medium
Synchronisation incohérente de net.sf.logdistiller.util.UncompressInputStream.stackp; verrouillée à 80% MT_CORRECTNESS IS2_INCONSISTENT_SYNC 422 Medium
Synchronisation incohérente de net.sf.logdistiller.util.UncompressInputStream.tab_prefix; verrouillée à 50% MT_CORRECTNESS IS2_INCONSISTENT_SYNC 419 Medium

net.sf.logdistiller.xml.DOMConfigurator

Bug Category Details Line Priority
net.sf.logdistiller.xml.DOMConfigurator.read(File, ErrorHandler) may fail to clean up java.io.InputStream EXPERIMENTAL OBL_UNSATISFIED_OBLIGATION 70 Medium