The following document contains the results of FindBugs
FindBugs Version is 3.0.1
Threshold is low
Effort is max
Classes | Bugs | Errors | Missing Classes |
---|---|---|---|
12 | 29 | 0 | 0 |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Potentially ambiguous invocation of either an outer or inherited method java.util.HashMap.size() in gate.mimir.db.AnnotationTemplateCache$1.removeEldestEntry(Map$Entry) | STYLE | IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD | 201 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Potentially ambiguous invocation of either an outer or inherited method java.util.HashMap.size() in gate.mimir.db.AnnotationTemplateCache$2.removeEldestEntry(Map$Entry) | STYLE | IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD | 211 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Potentially ambiguous invocation of either an outer or inherited method java.util.HashMap.size() in gate.mimir.db.AnnotationTemplateCache$3.removeEldestEntry(Map$Entry) | STYLE | IA_AMBIGUOUS_INVOCATION_OF_INHERITED_OR_OUTER_METHOD | 220 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Equals method for gate.mimir.db.AnnotationTemplateCache$Level1Key assumes the argument is of type AnnotationTemplateCache$Level1Key | BAD_PRACTICE | BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS | 57 | Medium |
gate.mimir.db.AnnotationTemplateCache$Level1Key.equals(Object) does not check for null argument | BAD_PRACTICE | NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT | 57 | Medium |
The class gate.mimir.db.AnnotationTemplateCache$Level1Key could be refactored into a _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS | 34 | Low |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Equals method for gate.mimir.db.AnnotationTemplateCache$Level2Key assumes the argument is of type AnnotationTemplateCache$Level2Key | BAD_PRACTICE | BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS | 123 | Medium |
gate.mimir.db.AnnotationTemplateCache$Level2Key.equals(Object) does not check for null argument | BAD_PRACTICE | NP_EQUALS_SHOULD_HANDLE_NULL_ARGUMENT | 123 | Medium |
The class gate.mimir.db.AnnotationTemplateCache$Level2Key could be refactored into a _static_ inner class | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC_NEEDS_THIS | 74 | Low |
Unread field: gate.mimir.db.AnnotationTemplateCache$Level2Key.level1id | PERFORMANCE | URF_UNREAD_FIELD | 75 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Equals method for gate.mimir.db.AnnotationTemplateCache$Level3Key assumes the argument is of type AnnotationTemplateCache$Level3Key | BAD_PRACTICE | BC_EQUALS_METHOD_SHOULD_WORK_FOR_ALL_OBJECTS | 147 | Medium |
Should gate.mimir.db.AnnotationTemplateCache$Level3Key be a _static_ inner class? | PERFORMANCE | SIC_INNER_SHOULD_BE_STATIC | 133 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dead store to mentionId in gate.mimir.db.DBSemanticAnnotationHelper.getDescriptiveFeatureValues(String) | STYLE | DLS_DEAD_LOCAL_STORE | 871 | Low |
Empty database password in gate.mimir.db.DBSemanticAnnotationHelper.init(AtomicAnnotationIndex) | SECURITY | DMI_EMPTY_DB_PASSWORD | 475 | Medium |
gate.mimir.db.DBSemanticAnnotationHelper.getMentions(String, List, QueryEngine) may fail to close database resource on exception | BAD_PRACTICE | ODR_OPEN_DATABASE_RESOURCE_EXCEPTION_PATH | 1295 | Low |
Should gate.mimir.db.DBSemanticAnnotationHelper.getDescriptiveFeatureValues(String) return a zero length array rather than null? | STYLE | PZLA_PREFER_ZERO_LENGTH_ARRAYS | 878 | Low |
gate.mimir.db.DBSemanticAnnotationHelper.init(AtomicAnnotationIndex) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 472 | Medium |
The field gate.mimir.db.DBSemanticAnnotationHelper.documentFeatures is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Low | |
The field gate.mimir.db.DBSemanticAnnotationHelper.nominalFeatureNameSet is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Low | |
The field gate.mimir.db.DBSemanticAnnotationHelper.nonNominalFeatureNameSet is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Low | |
The field gate.mimir.db.DBSemanticAnnotationHelper.percentFormat is transient but isn't set by deserialization | BAD_PRACTICE | SE_TRANSIENT_FIELD_NOT_RESTORED | Low | |
gate.mimir.db.DBSemanticAnnotationHelper.createDb(AtomicAnnotationIndex) passes a nonconstant String to an execute or addBatch method on an SQL statement | SECURITY | SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE | 611 | Medium |
gate.mimir.db.DBSemanticAnnotationHelper.createIndexes(Statement) passes a nonconstant String to an execute or addBatch method on an SQL statement | SECURITY | SQL_NONCONSTANT_STRING_PASSED_TO_EXECUTE | 713 | Low |
A prepared statement is generated from a nonconstant String in gate.mimir.db.DBSemanticAnnotationHelper.constructDescriptionStatements() | SECURITY | SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING | 536 | Medium |
A prepared statement is generated from a nonconstant String in gate.mimir.db.DBSemanticAnnotationHelper.createDb(AtomicAnnotationIndex) | SECURITY | SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING | 613 | Medium |
A prepared statement is generated from a nonconstant String in gate.mimir.db.DBSemanticAnnotationHelper.getMentions(String, List, QueryEngine) | SECURITY | SQL_PREPARED_STATEMENT_GENERATED_FROM_NONCONSTANT_STRING | 1295 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
gate.mimir.db.DBSemanticAnnotationHelper$Level1IdGenerator.call() may fail to clean up java.sql.ResultSet | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 77 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
gate.mimir.db.DBSemanticAnnotationHelper$Level2IdGenerator.call() may fail to clean up java.sql.ResultSet | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 125 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
gate.mimir.db.DBSemanticAnnotationHelper$Level3IdGenerator.call() may fail to clean up java.sql.ResultSet | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION | 191 | Medium |