The following document contains the results of FindBugs Report
FindBugs Version is 1.2.1
Threshold is Low
Effort is Default
| Classes | Bugs | Errors | Missing Classes |
|---|---|---|---|
| 552 | 36 | 0 | 0 |
| Bug | Category | Details | Line |
|---|---|---|---|
| net.sf.eos.entity.SimpleLongestMatchDictionaryBasedEntityRecognizer.checkForLongestMatchInTrie(LinkedList, Map) ignores return value of java.util.LinkedList.poll() | CORRECTNESS | RV_RETURN_VALUE_IGNORED | 148 |
| Unused field: net.sf.eos.entity.SimpleLongestMatchDictionaryBasedEntityRecognizer.entities | PERFORMANCE | UUF_UNUSED_FIELD | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unchecked/unconfirmed cast from org.apache.hadoop.io.Writable to org.apache.hadoop.io.Text in net.sf.eos.hadoop.mapred.cooccurrence.DictionaryBasedEntityRecognizerMapper.map(WritableComparable, Writable, OutputCollector, Reporter) | STYLE | BC_UNCONFIRMED_CAST | 66 |
| Unchecked/unconfirmed cast from org.apache.hadoop.io.WritableComparable to org.apache.hadoop.io.LongWritable in net.sf.eos.hadoop.mapred.cooccurrence.DictionaryBasedEntityRecognizerMapper.map(WritableComparable, Writable, OutputCollector, Reporter) | STYLE | BC_UNCONFIRMED_CAST | 66 |
| Exception is caught when Exception is not thrown in net.sf.eos.hadoop.mapred.cooccurrence.DictionaryBasedEntityRecognizerMapper.configureTrie() | STYLE | REC_CATCH_EXCEPTION | 169 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unchecked/unconfirmed cast from org.apache.hadoop.io.WritableComparable to org.apache.hadoop.io.Text in net.sf.eos.hadoop.mapred.cooccurrence.DictionaryBasedEntityRecognizerReducer.reduce(WritableComparable, Iterator, OutputCollector, Reporter) | STYLE | BC_UNCONFIRMED_CAST | 47 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unchecked/unconfirmed cast from org.apache.hadoop.io.Writable to org.apache.hadoop.io.Text in net.sf.eos.hadoop.mapred.decompose.SentencerMapper.map(WritableComparable, Writable, OutputCollector, Reporter) | STYLE | BC_UNCONFIRMED_CAST | 69 |
| Unchecked/unconfirmed cast from org.apache.hadoop.io.WritableComparable to org.apache.hadoop.io.LongWritable in net.sf.eos.hadoop.mapred.decompose.SentencerMapper.map(WritableComparable, Writable, OutputCollector, Reporter) | STYLE | BC_UNCONFIRMED_CAST | 69 |
| Exception is caught when Exception is not thrown in net.sf.eos.hadoop.mapred.decompose.SentencerMapper.map(LongWritable, Text, OutputCollector, Reporter) | STYLE | REC_CATCH_EXCEPTION | 135 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unchecked/unconfirmed cast from org.apache.hadoop.io.WritableComparable to org.apache.hadoop.io.Text in net.sf.eos.hadoop.mapred.decompose.SentencerReducer.reduce(WritableComparable, Iterator, OutputCollector, Reporter) | STYLE | BC_UNCONFIRMED_CAST | 43 |
| Unread field: net.sf.eos.hadoop.mapred.decompose.SentencerReducer.conf | PERFORMANCE | URF_UNREAD_FIELD | 139 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Should net.sf.eos.hadoop.mapred.index.FsDirectory.list() return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 86 |
| Bug | Category | Details | Line |
|---|---|---|---|
| The class net.sf.eos.hadoop.mapred.index.FsDirectory$DfsIndexInput$Descriptor could be refactored into a _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS | 188-190 |
| Bug | Category | Details | Line |
|---|---|---|---|
| The class net.sf.eos.hadoop.mapred.index.FsDirectory$DfsIndexOutput could be refactored into a _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS | 256-284 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unchecked/unconfirmed cast from org.apache.hadoop.io.Writable to org.apache.hadoop.io.Text in net.sf.eos.hadoop.mapred.index.IndexMapper.map(WritableComparable, Writable, OutputCollector, Reporter) | STYLE | BC_UNCONFIRMED_CAST | 30 |
| Unread field: net.sf.eos.hadoop.mapred.index.IndexMapper.conf | PERFORMANCE | URF_UNREAD_FIELD | 51 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Random object created and used only once in net.sf.eos.hadoop.mapred.index.LuceneOutputFormat.getRecordWriter(FileSystem, JobConf, String, Progressable) | BAD_PRACTICE | DMI_RANDOM_USED_ONLY_ONCE | 117 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unchecked/unconfirmed cast from org.apache.hadoop.io.Writable to org.apache.hadoop.io.ObjectWritable in net.sf.eos.hadoop.mapred.index.LuceneOutputFormat$RecordWriterImpl.write(WritableComparable, Writable) | STYLE | BC_UNCONFIRMED_CAST | 188 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Dead store to $L9 in net.sf.eos.lucene.DefaultEosQuery.execute() | STYLE | DLS_DEAD_LOCAL_STORE | 160 |
| Bug | Category | Details | Line |
|---|---|---|---|
| net.sf.eos.medline.MedlineAbstractStructureWords.STRUCTURE_WORDS_UPPER should be package protected | MALICIOUS_CODE | MS_PKGPROTECT | 29 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unwritten field: net.sf.eos.search.LookupEntry.meta | CORRECTNESS | UWF_UNWRITTEN_FIELD | 64 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Unused field: net.sf.eos.search.SearchHolder.meta | PERFORMANCE | UUF_UNUSED_FIELD | Not available |
| Unused field: net.sf.eos.search.SearchHolder.userQuery | PERFORMANCE | UUF_UNUSED_FIELD | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| net.sf.eos.trie.ByteArrayKeyAnalyzer is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 20-175 |
| Bug | Category | Details | Line |
|---|---|---|---|
| Vacuous comparison of integer value net.sf.eos.trie.PatriciaTrie.isValidBitIndex(int) | STYLE | INT_VACUOUS_COMPARISON | 1012 |
| The field net.sf.eos.trie.PatriciaTrie.modCount is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Not available |
| The field net.sf.eos.trie.PatriciaTrie.entrySet is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Not available |
| The field net.sf.eos.trie.PatriciaTrie.keySet is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Not available |
| The field net.sf.eos.trie.PatriciaTrie.values is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| Ambiguous invocation of either an outer or inherited method net.sf.eos.trie.PatriciaTrie$SubMap.entrySet() in net.sf.eos.trie.PatriciaTrie$PrefixSubMap.fixup() | STYLE | IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD | 1994 |
| net.sf.eos.trie.PatriciaTrie$PrefixSubMap is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 1924-2029 |
| The field net.sf.eos.trie.PatriciaTrie$PrefixSubMap.keyModCount is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| net.sf.eos.trie.PatriciaTrie$SubMap is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 2081-2282 |
| The field net.sf.eos.trie.PatriciaTrie$SubMap.entrySet is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Not available |
| Bug | Category | Details | Line |
|---|---|---|---|
| net.sf.eos.trie.PatriciaTrie$TrieEntry defines equals and uses Object.hashCode() | BAD_PRACTICE | HE_EQUALS_USE_HASHCODE | 1087-1101 |
| Bug | Category | Details | Line |
|---|---|---|---|
| net.sf.eos.trie.TrieSource$TrieEntryEvent is Serializable; consider declaring a serialVersionUID | BAD_PRACTICE | SE_NO_SERIALVERSIONID | 26-27 |