The following document contains the results of FindBugs Report
FindBugs Version is 1.1.1
Threshold is Normal
Effort is Default
| Classes | Bugs | Errors | Missing Classes |
|---|---|---|---|
| 456 | 18 | 17 | 30 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Write to static field org.apache.tika.config.TikaConfig.mimeTypes from instance method org.apache.tika.config.TikaConfig.TikaConfig(org.jdom.Element) | STYLE | ST_WRITE_TO_STATIC_FROM_INSTANCE_METHOD | 73 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.apache.tika.metadata.Metadata defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 173-201 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Should org.apache.tika.mime.MimeType$RootXML be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Class org.apache.tika.parser.microsoft.ExcelEventParser$TikaHSSFListener defines non-transient non-serializable instance field appendable | BAD_PRACTICE | SE_BAD_FIELD | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Method org.apache.tika.parser.microsoft.OfficeParser.getMetadata(org.apache.poi.poifs.filesystem.POIFSFileSystem,String,org.apache.tika.metadata.Metadata) catches Exception, but Exception is not thrown in the try block and RuntimeException is not explicitly caught | STYLE | REC_CATCH_EXCEPTION | 88 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Dead store to outStream in method org.apache.tika.parser.microsoft.PowerPointExtractor.extractSlides(long,byte[],long) | STYLE | DLS_DEAD_LOCAL_STORE | 410 |
| Dead store to outStream in method org.apache.tika.parser.microsoft.PowerPointExtractor.extractTextBoxes(java.util.Hashtable,int,byte[],long) | STYLE | DLS_DEAD_LOCAL_STORE | 169 |
| Method org.apache.tika.parser.microsoft.PowerPointExtractor.extractTextBoxes(java.util.Hashtable,int,byte[],long) invokes inefficient Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 206 |
| Method org.apache.tika.parser.microsoft.PowerPointExtractor.extractTextBoxes(java.util.Hashtable,int,byte[],long) invokes inefficient Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 208 |
| Method org.apache.tika.parser.microsoft.PowerPointExtractor.extractTextBoxes(java.util.Hashtable,int,byte[],long) invokes inefficient Long(long) constructor; use Long.valueOf(long) instead | PERFORMANCE | DM_NUMBER_CTOR | 214 |
| Useless control flow in org.apache.tika.parser.microsoft.PowerPointExtractor.extract(java.io.InputStream) | STYLE | UCF_USELESS_CONTROL_FLOW | 94 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.apache.tika.parser.microsoft.Slide.contents is transient but org.apache.tika.parser.microsoft.Slide isn't Serializable | STYLE | SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS | Not available |
| org.apache.tika.parser.microsoft.Slide.slideNumber is transient but org.apache.tika.parser.microsoft.Slide isn't Serializable | STYLE | SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.apache.tika.parser.microsoft.TextBox.currentID is transient but org.apache.tika.parser.microsoft.TextBox isn't Serializable | STYLE | SE_TRANSIENT_FIELD_OF_NONSERIALIZABLE_CLASS | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.apache.tika.parser.microsoft.WordParser.extractText(org.apache.poi.poifs.filesystem.POIFSFileSystem,Appendable) ignores result of org.apache.poi.poifs.filesystem.DocumentInputStream.read(byte[]) | BAD_PRACTICE | RR_NOT_CHECKED | 58 |
| org.apache.tika.parser.microsoft.WordParser.extractText(org.apache.poi.poifs.filesystem.POIFSFileSystem,Appendable) ignores result of org.apache.poi.poifs.filesystem.DocumentInputStream.read(byte[]) | BAD_PRACTICE | RR_NOT_CHECKED | 99 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Dead store to xmlMeta in method org.apache.tika.parser.opendocument.OpenOfficeParser.parse(java.io.InputStream) | STYLE | DLS_DEAD_LOCAL_STORE | 57 |
| Bug | Category | Details | Line |
|---|---|---|---|
| org.apache.tika.utils.StringUtil.resolveEncodingAlias(String) invokes inefficient new String(String) constructor; just use the argument | PERFORMANCE | DM_STRING_CTOR | 199 |