The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is medium
Effort is min
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 | 235 | 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 | 396 | Medium |
Redundant nullcheck of org.apache.maven.doxia.document.DocumentCover.getAuthors(), which is known to be non-null in org.apache.maven.doxia.document.DocumentCover.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 164 | 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 | 588 | 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 | 374 | Medium |
org.apache.maven.doxia.document.DocumentMeta.getDate() may expose internal representation by returning DocumentMeta.date | MALICIOUS_CODE | EI_EXPOSE_REP | 396 | Medium |
org.apache.maven.doxia.document.DocumentMeta.getPrintDate() may expose internal representation by returning DocumentMeta.printDate | MALICIOUS_CODE | EI_EXPOSE_REP | 542 | 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 | 713 | 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 | 749 | 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 | 917 | Medium |
Redundant nullcheck of org.apache.maven.doxia.document.DocumentMeta.getAuthors(), which is known to be non-null in org.apache.maven.doxia.document.DocumentMeta.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 308 | Medium |
Redundant nullcheck of org.apache.maven.doxia.document.DocumentMeta.getKeyWords(), which is known to be non-null in org.apache.maven.doxia.document.DocumentMeta.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 311 | 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 | 1199 | 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 | 1217 | 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 | 1235 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of org.apache.maven.doxia.document.DocumentTOC.getItems(), which is known to be non-null in org.apache.maven.doxia.document.DocumentTOC.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 87 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Redundant nullcheck of org.apache.maven.doxia.document.DocumentTOCItem.getItems(), which is known to be non-null in org.apache.maven.doxia.document.DocumentTOCItem.equals(Object) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 92 | 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 | 102 | 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 | 153 | 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 | 234 | 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 | 838 | High |
Dead store to parsed in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentStatistic(XmlPullParser, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 1159 | High |
Dead store to parsed in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentTOC(XmlPullParser, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 1203 | High |
Dead store to parsed in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentTOCItem(XmlPullParser, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 1264 | High |
Dead store to parsed in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentTemplate(XmlPullParser, boolean) | STYLE | DLS_DEAD_LOCAL_STORE | 1330 | High |
Boxing/unboxing to parse a primitive org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.getIntegerValue(String, String, XmlPullParser, boolean) | PERFORMANCE | DM_BOXED_PRIMITIVE_FOR_PARSING | 398 | High |
Boxing/unboxing to parse a primitive org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.getLongValue(String, String, XmlPullParser, boolean) | PERFORMANCE | DM_BOXED_PRIMITIVE_FOR_PARSING | 428 | High |
Redundant nullcheck of items, which is known to be non-null in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentTOC(XmlPullParser, boolean) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 1209 | Medium |
Redundant nullcheck of items, which is known to be non-null in org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.parseDocumentTOCItem(XmlPullParser, boolean) | STYLE | RCN_REDUNDANT_NULLCHECK_OF_NONNULL_VALUE | 1270 | Medium |
Private method org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.getBooleanValue(String, String, XmlPullParser) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 183 | Medium |
Private method org.apache.maven.doxia.document.io.xpp3.DocumentXpp3Reader.getDateValue(String, String, XmlPullParser) is never called | PERFORMANCE | UPM_UNCALLED_PRIVATE_METHOD | 271 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.apache.maven.doxia.macro.snippet.SnippetReader.readLines(String): new java.io.InputStreamReader(InputStream) | I18N | DM_DEFAULT_ENCODING | 139 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in org.apache.maven.doxia.parser.AbstractXmlParser.parseXml(XmlPullParser, Sink): new String(byte[]) | I18N | DM_DEFAULT_ENCODING | 267 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.parser.AbstractXmlParser$CachedFileEntityResolver.ENTITY_CACHE is a mutable collection which should be package protected | MALICIOUS_CODE | MS_MUTABLE_COLLECTION_PKGPROTECT | 706 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.parser.module.AbstractParserModule.getExtensions() may expose internal representation by returning AbstractParserModule.extensions | MALICIOUS_CODE | EI_EXPOSE_REP | 118 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.sink.impl.AbstractBinarySinkFactory.createSink(File, String, String) may fail to clean up java.io.OutputStream | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 68 | Medium |
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.doxia.sink.impl.AbstractBinarySinkFactory.createSink(File, String, String) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 58 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Exceptional return value of java.io.File.mkdirs() ignored in org.apache.maven.doxia.sink.impl.AbstractTextSinkFactory.createSink(File, String, String) | BAD_PRACTICE | RV_RETURN_VALUE_IGNORED_BAD_PRACTICE | 70 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.sink.impl.SinkEventAttributeSet.clone() does not call super.clone() | BAD_PRACTICE | CN_IDIOM_NO_SUPER_CALL | 382-390 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
org.apache.maven.doxia.sink.impl.SinkUtils.SINK_BASE_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 49 | Medium |
org.apache.maven.doxia.sink.impl.SinkUtils.SINK_BR_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 58 | Medium |
org.apache.maven.doxia.sink.impl.SinkUtils.SINK_HR_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 148 | Medium |
org.apache.maven.doxia.sink.impl.SinkUtils.SINK_IMG_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 142 | Medium |
org.apache.maven.doxia.sink.impl.SinkUtils.SINK_LINK_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 149 | Medium |
org.apache.maven.doxia.sink.impl.SinkUtils.SINK_SECTION_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 144 | Medium |
org.apache.maven.doxia.sink.impl.SinkUtils.SINK_TABLE_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 150 | Medium |
org.apache.maven.doxia.sink.impl.SinkUtils.SINK_TD_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 154 | Medium |
org.apache.maven.doxia.sink.impl.SinkUtils.SINK_TR_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 152 | Medium |
org.apache.maven.doxia.sink.impl.SinkUtils.SINK_VERBATIM_ATTRIBUTES should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 146 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Return value of Integer.toString() ignored, but method has no side effect | STYLE | RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT | 1453 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Return value of Integer.toString() ignored, but method has no side effect | STYLE | RV_RETURN_VALUE_IGNORED_NO_SIDE_EFFECT | 1330 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Call to method of static java.text.DateFormat in org.apache.maven.doxia.util.DoxiaUtils.parseDate(String) | MT_CORRECTNESS | STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE | 344 | Medium |
Call to method of static java.text.DateFormat in org.apache.maven.doxia.util.DoxiaUtils.parseDate(String) | MT_CORRECTNESS | STCAL_INVOKE_ON_STATIC_DATE_FORMAT_INSTANCE | 346 | Medium |