The following document contains the results of FindBugs Report
FindBugs Version is 1.3.9
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Read of unwritten field parserManager in org.apache.maven.doxia.DefaultDoxia.getParser(String) | CORRECTNESS | NP_UNWRITTEN_FIELD | 70 | Medium |
Read of unwritten field parserManager in org.apache.maven.doxia.DefaultDoxia.parse(Reader, String, Sink) | CORRECTNESS | NP_UNWRITTEN_FIELD | 59 | Medium |
Unwritten field: org.apache.maven.doxia.DefaultDoxia.parserManager | CORRECTNESS | UWF_UNWRITTEN_FIELD | 59 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.document.DocumentCover.getCoverDate() may expose internal representation by returning DocumentCover.coverDate | MALICIOUS_CODE | EI_EXPOSE_REP | 237 | Medium |
org.apache.maven.doxia.document.DocumentCover.setCoverDate(Date) may expose internal representation by storing an externally mutable object into DocumentCover.coverDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 398 | Medium |
Call to method of static java.text.DateFormat in org.apache.maven.doxia.document.DocumentCover.getCoverdate() | MT_CORRECTNESS | STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE | 590 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.document.DocumentMeta.getCreationDate() may expose internal representation by returning DocumentMeta.creationDate | MALICIOUS_CODE | EI_EXPOSE_REP | 376 | Medium |
org.apache.maven.doxia.document.DocumentMeta.getDate() may expose internal representation by returning DocumentMeta.date | MALICIOUS_CODE | EI_EXPOSE_REP | 398 | Medium |
org.apache.maven.doxia.document.DocumentMeta.getPrintDate() may expose internal representation by returning DocumentMeta.printDate | MALICIOUS_CODE | EI_EXPOSE_REP | 544 | Medium |
org.apache.maven.doxia.document.DocumentMeta.setCreationDate(Date) may expose internal representation by storing an externally mutable object into DocumentMeta.creationDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 715 | Medium |
org.apache.maven.doxia.document.DocumentMeta.setDate(Date) may expose internal representation by storing an externally mutable object into DocumentMeta.date | MALICIOUS_CODE | EI_EXPOSE_REP2 | 751 | Medium |
org.apache.maven.doxia.document.DocumentMeta.setPrintDate(Date) may expose internal representation by storing an externally mutable object into DocumentMeta.printDate | MALICIOUS_CODE | EI_EXPOSE_REP2 | 919 | Medium |
Call to method of static java.text.DateFormat in org.apache.maven.doxia.document.DocumentMeta.getCreationdate() | MT_CORRECTNESS | STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE | 1201 | Medium |
Call to method of static java.text.DateFormat in org.apache.maven.doxia.document.DocumentMeta.getModifydate() | MT_CORRECTNESS | STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE | 1219 | Medium |
Call to method of static java.text.DateFormat in org.apache.maven.doxia.document.DocumentMeta.getPrintdate() | MT_CORRECTNESS | STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE | 1237 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.document.DocumentTemplate.getDate() may expose internal representation by returning DocumentTemplate.date | MALICIOUS_CODE | EI_EXPOSE_REP | 104 | Medium |
org.apache.maven.doxia.document.DocumentTemplate.setDate(Date) may expose internal representation by storing an externally mutable object into DocumentTemplate.date | MALICIOUS_CODE | EI_EXPOSE_REP2 | 155 | Medium |
Call to method of static java.text.DateFormat in org.apache.maven.doxia.document.DocumentTemplate.getModifydate() | MT_CORRECTNESS | STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE | 236 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to parsed in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentHyperlinkBehaviour(XmlPullParser, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 1016 | High |
Dead store to parsed in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentStatistic(XmlPullParser, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 1337 | High |
Dead store to parsed in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentTOC(XmlPullParser, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 1381 | High |
Dead store to parsed in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentTOCItem(XmlPullParser, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 1442 | High |
Dead store to parsed in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentTemplate(XmlPullParser, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 1508 | High |
Private method org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 159 | Medium |
Private method org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.getDateValue(String, String, XmlPullParser) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 247 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.apache.maven.doxia.index.IndexEntry.toString(int) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 299 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Read of unwritten field macros in org.apache.maven.doxia.macro.manager.DefaultMacroManager.getMacro(String) | CORRECTNESS | NP_UNWRITTEN_FIELD | 44 | Medium |
Unwritten field: org.apache.maven.doxia.macro.manager.DefaultMacroManager.macros | CORRECTNESS | UWF_UNWRITTEN_FIELD | 44 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.apache.maven.doxia.macro.snippet.SnippetMacro.cacheSnippet(URL, String, String) invokes inefficient new Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 277 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Read of unwritten field siteModules in org.apache.maven.doxia.module.site.manager.DefaultSiteModuleManager.getSiteModule(String) | CORRECTNESS | NP_UNWRITTEN_FIELD | 66 | Medium |
Read of unwritten field siteModules in org.apache.maven.doxia.module.site.manager.DefaultSiteModuleManager.getSiteModules() | CORRECTNESS | NP_UNWRITTEN_FIELD | 52 | Medium |
Unwritten field: org.apache.maven.doxia.module.site.manager.DefaultSiteModuleManager.siteModules | CORRECTNESS | UWF_UNWRITTEN_FIELD | 52 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.apache.maven.doxia.parser.AbstractXmlParser.handleUnknown(XmlPullParser, Sink, int) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 410 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.apache.maven.doxia.parser.XhtmlBaseParser.handleCdsect(XmlPullParser, Sink) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 510 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Read of unwritten field parsers in org.apache.maven.doxia.parser.manager.DefaultParserManager.getParser(String) | CORRECTNESS | NP_UNWRITTEN_FIELD | 46 | Medium |
Unwritten field: org.apache.maven.doxia.parser.manager.DefaultParserManager.parsers | CORRECTNESS | UWF_UNWRITTEN_FIELD | 46 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.apache.maven.doxia.sink.AbstractBinarySinkFactory.createSink(File, String, String) may fail to clean up java.io.OutputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 67 | Medium |
org.apache.maven.doxia.sink.AbstractBinarySinkFactory.createSink(File, String, String) ignores exceptional return value of java.io.File.mkdirs() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 57 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.sink.AbstractTextSinkFactory.createSink(File, String, String) ignores exceptional return value of java.io.File.mkdirs() | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 69 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.sink.SinkEventAttributeSet.clone() does not call super.clone() | BAD_PRACTICE | CN_IDIOM_NO_SUPER_CALL | 362-370 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.sink.SinkUtils.SINK_BASE_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 49 | Medium |
org.apache.maven.doxia.sink.SinkUtils.SINK_BR_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 58 | Medium |
org.apache.maven.doxia.sink.SinkUtils.SINK_HR_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 148 | Medium |
org.apache.maven.doxia.sink.SinkUtils.SINK_IMG_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 142 | Medium |
org.apache.maven.doxia.sink.SinkUtils.SINK_LINK_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 149 | Medium |
org.apache.maven.doxia.sink.SinkUtils.SINK_SECTION_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 143 | Medium |
org.apache.maven.doxia.sink.SinkUtils.SINK_TABLE_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 150 | Medium |
org.apache.maven.doxia.sink.SinkUtils.SINK_TD_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 154 | Medium |
org.apache.maven.doxia.sink.SinkUtils.SINK_TR_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 151 | Medium |
org.apache.maven.doxia.sink.SinkUtils.SINK_VERBATIM_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 145 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Method org.apache.maven.doxia.sink.XhtmlBaseSink.tableCell_(boolean) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 1478 | Medium |
Method org.apache.maven.doxia.sink.XhtmlBaseSink.tableRow(SinkEventAttributes) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 1364 | Medium |
Method org.apache.maven.doxia.sink.XhtmlBaseSink.tableRows(int[], boolean) invokes inefficient new Integer(int) constructor; use Integer.valueOf(int) instead | PERFORMANCE | DM_NUMBER_CTOR | 1297 | Medium |