SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.1.4

Threshold is medium

Effort is default

Summary

Classes Bugs Errors Missing Classes
225 41 0 0

Files

Class Bugs
org.microspace.evaluator.EvaluatorLexer 5
org.microspace.evaluator.EvaluatorParser 3
org.microspace.evaluator.ExpressionEvaluatorLexer 5
org.microspace.parser.AntlrSimpleSqlLexer 5
org.microspace.parser.AntlrSimpleSqlParser 8
org.microspace.table.Isolator 2
org.microspace.table.MultiFilteredQueue 1
org.microspace.table.query.sql.EntryComparator 2
org.microspace.table.query.sql.Select 1
org.microspace.table.query.sql.SimpleSqlBuilder 1
org.microspace.thread.ContextSwitch 2
org.microspace.thread.ContextSwitch$ThreadInvoker 3
org.microspace.util.PojoUtil 1
org.microspace.util.UniqueIdSeed 2

org.microspace.evaluator.EvaluatorLexer

Bug Category Details Line Priority
org.microspace.evaluator.EvaluatorLexer.channelNames should be both final and package protected MALICIOUS_CODE MS_FINAL_PKGPROTECT 22 Medium
org.microspace.evaluator.EvaluatorLexer.modeNames should be both final and package protected MALICIOUS_CODE MS_FINAL_PKGPROTECT 26 Medium
org.microspace.evaluator.EvaluatorLexer._decisionToDFA should be package protected MALICIOUS_CODE MS_PKGPROTECT 135 Medium
org.microspace.evaluator.EvaluatorLexer.ruleNames should be package protected MALICIOUS_CODE MS_PKGPROTECT 30 Medium
org.microspace.evaluator.EvaluatorLexer.tokenNames should be package protected MALICIOUS_CODE MS_PKGPROTECT 50 Medium

org.microspace.evaluator.EvaluatorParser

Bug Category Details Line Priority
org.microspace.evaluator.EvaluatorParser._decisionToDFA should be package protected MALICIOUS_CODE MS_PKGPROTECT 559 Medium
org.microspace.evaluator.EvaluatorParser.ruleNames should be package protected MALICIOUS_CODE MS_PKGPROTECT 26 Medium
org.microspace.evaluator.EvaluatorParser.tokenNames should be package protected MALICIOUS_CODE MS_PKGPROTECT 46 Medium

org.microspace.evaluator.ExpressionEvaluatorLexer

Bug Category Details Line Priority
org.microspace.evaluator.ExpressionEvaluatorLexer.channelNames should be both final and package protected MALICIOUS_CODE MS_FINAL_PKGPROTECT 22 Medium
org.microspace.evaluator.ExpressionEvaluatorLexer.modeNames should be both final and package protected MALICIOUS_CODE MS_FINAL_PKGPROTECT 26 Medium
org.microspace.evaluator.ExpressionEvaluatorLexer._decisionToDFA should be package protected MALICIOUS_CODE MS_PKGPROTECT 133 Medium
org.microspace.evaluator.ExpressionEvaluatorLexer.ruleNames should be package protected MALICIOUS_CODE MS_PKGPROTECT 30 Medium
org.microspace.evaluator.ExpressionEvaluatorLexer.tokenNames should be package protected MALICIOUS_CODE MS_PKGPROTECT 50 Medium

org.microspace.parser.AntlrSimpleSqlLexer

Bug Category Details Line Priority
org.microspace.parser.AntlrSimpleSqlLexer.channelNames should be both final and package protected MALICIOUS_CODE MS_FINAL_PKGPROTECT 26 Medium
org.microspace.parser.AntlrSimpleSqlLexer.modeNames should be both final and package protected MALICIOUS_CODE MS_FINAL_PKGPROTECT 30 Medium
org.microspace.parser.AntlrSimpleSqlLexer._decisionToDFA should be package protected MALICIOUS_CODE MS_PKGPROTECT 257 Medium
org.microspace.parser.AntlrSimpleSqlLexer.ruleNames should be package protected MALICIOUS_CODE MS_PKGPROTECT 34 Medium
org.microspace.parser.AntlrSimpleSqlLexer.tokenNames should be package protected MALICIOUS_CODE MS_PKGPROTECT 65 Medium

org.microspace.parser.AntlrSimpleSqlParser

Bug Category Details Line Priority
org.microspace.parser.AntlrSimpleSqlParser._decisionToDFA should be package protected MALICIOUS_CODE MS_PKGPROTECT 1976 Medium
org.microspace.parser.AntlrSimpleSqlParser.ruleNames should be package protected MALICIOUS_CODE MS_PKGPROTECT 37 Medium
org.microspace.parser.AntlrSimpleSqlParser.tokenNames should be package protected MALICIOUS_CODE MS_PKGPROTECT 68 Medium
Switch statement found in org.microspace.parser.AntlrSimpleSqlParser.column_bool_primary() where default case is missing STYLE SF_SWITCH_NO_DEFAULT 1545 Medium
Switch statement found in org.microspace.parser.AntlrSimpleSqlParser.column_in_expression() where default case is missing STYLE SF_SWITCH_NO_DEFAULT 1397 Medium
Switch statement found in org.microspace.parser.AntlrSimpleSqlParser.expression() where default case is missing STYLE SF_SWITCH_NO_DEFAULT 1120 Medium
Switch statement found in org.microspace.parser.AntlrSimpleSqlParser.rownum_expression() where default case is missing STYLE SF_SWITCH_NO_DEFAULT 1811 Medium
Switch statement found in org.microspace.parser.AntlrSimpleSqlParser.select_expression_atom() where default case is missing STYLE SF_SWITCH_NO_DEFAULT 1320 Medium

org.microspace.table.Isolator

Bug Category Details Line Priority
Dead store to t in org.microspace.table.Isolator.setEntry(Entry) STYLE DLS_DEAD_LOCAL_STORE 99 Medium
Dead store to t in org.microspace.table.Isolator.setFirstEntry(Entry) STYLE DLS_DEAD_LOCAL_STORE 61 Medium

org.microspace.table.MultiFilteredQueue

Bug Category Details Line Priority
Dead store to prev in org.microspace.table.MultiFilteredQueue.removeQueueFilter(TableQuery) STYLE DLS_DEAD_LOCAL_STORE 56 Medium

org.microspace.table.query.sql.EntryComparator

Bug Category Details Line Priority
org.microspace.table.query.sql.EntryComparator.compare(Entry, Entry) negates the return value of java.math.BigInteger.compareTo(BigInteger) BAD_PRACTICE RV_NEGATING_RESULT_OF_COMPARETO 83 Medium
Class org.microspace.table.query.sql.EntryComparator defines non-transient non-serializable instance field getSetPairs BAD_PRACTICE SE_BAD_FIELD High

org.microspace.table.query.sql.Select

Bug Category Details Line Priority
org.microspace.table.query.sql.Select defines equals and uses Object.hashCode() BAD_PRACTICE HE_EQUALS_USE_HASHCODE 244 High

org.microspace.table.query.sql.SimpleSqlBuilder

Bug Category Details Line Priority
Unread field: org.microspace.table.query.sql.SimpleSqlBuilder.lastExpression PERFORMANCE URF_UNREAD_FIELD 68 Medium

org.microspace.thread.ContextSwitch

Bug Category Details Line Priority
Unconditional wait in org.microspace.thread.ContextSwitch.invoke(Object, Method, Object[]) MT_CORRECTNESS UW_UNCOND_WAIT 78 Medium
Wait not in loop in org.microspace.thread.ContextSwitch.invoke(Object, Method, Object[]) MT_CORRECTNESS WA_NOT_IN_LOOP 78 Medium

org.microspace.thread.ContextSwitch$ThreadInvoker

Bug Category Details Line Priority
Unconditional wait in org.microspace.thread.ContextSwitch$ThreadInvoker.invoke(Method, Object[]) MT_CORRECTNESS UW_UNCOND_WAIT 107 Medium
Unconditional wait in org.microspace.thread.ContextSwitch$ThreadInvoker.run() MT_CORRECTNESS UW_UNCOND_WAIT 131 Medium
Wait not in loop in org.microspace.thread.ContextSwitch$ThreadInvoker.invoke(Method, Object[]) MT_CORRECTNESS WA_NOT_IN_LOOP 107 Medium

org.microspace.util.PojoUtil

Bug Category Details Line Priority
org.microspace.util.PojoUtil.copy(Object, Object) makes inefficient use of keySet iterator instead of entrySet iterator PERFORMANCE WMI_WRONG_MAP_ITERATOR 78 Medium

org.microspace.util.UniqueIdSeed

Bug Category Details Line Priority
new org.microspace.util.UniqueIdSeed() might ignore java.lang.Exception BAD_PRACTICE DE_MIGHT_IGNORE 66 Medium
Exception is caught when Exception is not thrown in new org.microspace.util.UniqueIdSeed() STYLE REC_CATCH_EXCEPTION 66 Medium