The following document contains the results of FindBugs Report
FindBugs Version is 2.0.3
Threshold is medium
Effort is min
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class es.upm.dit.gsi.beast.mock.jade.bridgeMock.BridgeMockAgent defines non-transient non-serializable instance field behaviour | BAD_PRACTICE | SE_BAD_FIELD | Medium | |
Class es.upm.dit.gsi.beast.mock.jade.bridgeMock.BridgeMockAgent defines non-transient non-serializable instance field introspector | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Invocation of toString on Throwable.getStackTrace() in es.upm.dit.gsi.beast.mock.jade.bridgeMock.BridgeMockAgent$MessageReceiver.action() | CORRECTNESS | DMI_INVOKING_TOSTRING_ON_ARRAY | 252 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Invocation of toString on Throwable.getStackTrace() in es.upm.dit.gsi.beast.mock.jade.bridgeMock.DannyBridgeMockAgent.setup() | CORRECTNESS | DMI_INVOKING_TOSTRING_ON_ARRAY | 77 | Medium |
Class es.upm.dit.gsi.beast.mock.jade.bridgeMock.DannyBridgeMockAgent defines non-transient non-serializable instance field introspector | BAD_PRACTICE | SE_BAD_FIELD | Medium | |
Class es.upm.dit.gsi.beast.mock.jade.bridgeMock.DannyBridgeMockAgent defines non-transient non-serializable instance field myMockConfiguration | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class es.upm.dit.gsi.beast.mock.jade.listenerMock.ListenerMockAgent defines non-transient non-serializable instance field introspector | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Invocation of toString on Throwable.getStackTrace() in es.upm.dit.gsi.beast.mock.jade.repositoryMock.RepositoryMockAgent.setup() | CORRECTNESS | DMI_INVOKING_TOSTRING_ON_ARRAY | 81 | Medium |
Class es.upm.dit.gsi.beast.mock.jade.repositoryMock.RepositoryMockAgent defines non-transient non-serializable instance field introspector | BAD_PRACTICE | SE_BAD_FIELD | Medium | |
Class es.upm.dit.gsi.beast.mock.jade.repositoryMock.RepositoryMockAgent defines non-transient non-serializable instance field myMockConfiguration | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class es.upm.dit.gsi.beast.mock.jadex.bridgeMock.RequestCommunicationPlan defines non-transient non-serializable instance field logger | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class es.upm.dit.gsi.beast.mock.jadex.listenerMock.ListenPlan defines non-transient non-serializable instance field logger | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Class es.upm.dit.gsi.beast.mock.jadex.repositoryMock.AnswerPlan defines non-transient non-serializable instance field logger | BAD_PRACTICE | SE_BAD_FIELD | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Unread field: es.upm.dit.gsi.beast.platform.jade.JadeConnector.AGENTS; should this field be static? | PERFORMANCE | SS_SHOULD_BE_STATIC | 46 | Medium |
Unread field: es.upm.dit.gsi.beast.platform.jade.JadeConnector.BEAST_MESSENGER; should this field be static? | PERFORMANCE | SS_SHOULD_BE_STATIC | 40 | Medium |
Unread field: es.upm.dit.gsi.beast.platform.jade.JadeConnector.MAIN_HOST; should this field be static? | PERFORMANCE | SS_SHOULD_BE_STATIC | 44 | Medium |
Unread field: es.upm.dit.gsi.beast.platform.jade.JadeConnector.MAIN_PORT; should this field be static? | PERFORMANCE | SS_SHOULD_BE_STATIC | 45 | Medium |
Unread field: es.upm.dit.gsi.beast.platform.jade.JadeConnector.PLATFORM_ID; should this field be static? | PERFORMANCE | SS_SHOULD_BE_STATIC | 43 | Medium |
Unread field: es.upm.dit.gsi.beast.platform.jade.JadeConnector.SERVICES; should this field be static? | PERFORMANCE | SS_SHOULD_BE_STATIC | 47 | Medium |
Unread field: es.upm.dit.gsi.beast.platform.jade.JadeConnector.TRUE; should this field be static? | PERFORMANCE | SS_SHOULD_BE_STATIC | 42 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
es.upm.dit.gsi.beast.platform.jadex.JadexAgentIntrospector.getAgentGoals(String, Connector) may expose internal representation by returning JadexAgentIntrospector.goals | MALICIOUS_CODE | EI_EXPOSE_REP | 155 | Medium |
es.upm.dit.gsi.beast.platform.jadex.JadexAgentIntrospector.getAgentPlans(String, Connector) may expose internal representation by returning JadexAgentIntrospector.plans | MALICIOUS_CODE | EI_EXPOSE_REP | 129 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.Reader.createFileReader(String): new java.io.FileReader(String) | I18N | DM_DEFAULT_ENCODING | 280 | High |
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.Reader.createFileWriter(String, String, String): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 345 | High |
Comparison of String parameter using == or != in es.upm.dit.gsi.beast.reader.Reader.generateJavaFiles(String, String, String, String, String, String, String) | BAD_PRACTICE | ES_COMPARING_PARAMETER_STRING_WITH_EQ | 87 | High |
Comparison of String parameter using == or != in es.upm.dit.gsi.beast.reader.Reader.generateJavaFiles(String, String, String, String, String, String, String) | BAD_PRACTICE | ES_COMPARING_PARAMETER_STRING_WITH_EQ | 83 | High |
"." or "|" used for regular expression in es.upm.dit.gsi.beast.reader.Reader.createDotStoryFile(String, String, String, String, String, String) | CORRECTNESS | RE_POSSIBLE_UNINTENDED_PATTERN | 311 | High |
es.upm.dit.gsi.beast.reader.Reader.createClassName(String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 145 | Medium |
es.upm.dit.gsi.beast.reader.Reader.createDotStoryFile(String, String, String, String, String, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 313 | Medium |
es.upm.dit.gsi.beast.reader.Reader.createDotStoryName(String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 395 | Medium |
es.upm.dit.gsi.beast.reader.Reader.createFirstLowCaseName(String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 162 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.addStory(File, String, String, String, String, String): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 189 | High |
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.addStory(File, String, String, String, String, String): new java.io.FileWriter(File, boolean) | I18N | DM_DEFAULT_ENCODING | 211 | High |
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.closeMASCaseManager(File): new java.io.FileWriter(File, boolean) | I18N | DM_DEFAULT_ENCODING | 248 | High |
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.createTest(File, String, String, String, String, String, String): new java.io.FileWriter(File, boolean) | I18N | DM_DEFAULT_ENCODING | 136 | High |
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.startMASCaseManager(String, String): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 87 | High |
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.startMASCaseManager(String, String): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 61 | High |
es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.addStory(File, String, String, String, String, String) may fail to clean up java.io.Writer on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 211 | Medium |
es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.closeMASCaseManager(File) may fail to clean up java.io.Writer on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 248 | Medium |
es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.createTest(File, String, String, String, String, String, String) may fail to clean up java.io.Writer on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 136 | Medium |
es.upm.dit.gsi.beast.reader.mas.CreateMASCaseManager.startMASCaseManager(String, String) may fail to clean up java.io.Writer on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 61 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.mas.CreateMASTestCase.createBeastTestCase(String, String, String, String, String, String, String, String, String, String, String, String): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 57 | High |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.mas.CreateMASTestStory.createMASTestStory(String, String, String, String, String, String, String, String, HashMap): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 60 | High |
es.upm.dit.gsi.beast.reader.mas.CreateMASTestStory.createMASTestStory(String, String, String, String, String, String, String, String, HashMap) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 134 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dereference of the result of readLine() without nullcheck in es.upm.dit.gsi.beast.reader.mas.MASReader.generateJavaFilesForOneStory(String, String, String, String, String, String) | STYLE | NP_DEREFERENCE_OF_READLINE_VALUE | 210 | Medium |
Dereference of the result of readLine() without nullcheck in es.upm.dit.gsi.beast.reader.mas.MASReader.generateJavaFilesForOneStory(String, String, String, String, String, String) | STYLE | NP_DEREFERENCE_OF_READLINE_VALUE | 225 | Medium |
Load of known null value in es.upm.dit.gsi.beast.reader.mas.MASReader.generateJavaFilesForOneStory(String, String, String, String, String, String) | STYLE | NP_LOAD_OF_KNOWN_NULL_VALUE | 313 | Medium |
Exception is caught when Exception is not thrown in es.upm.dit.gsi.beast.reader.mas.MASReader.generateJavaFilesForOneStory(String, String, String, String, String, String) | STYLE | REC_CATCH_EXCEPTION | 342 | Medium |
Return value of String.toLowerCase() ignored in es.upm.dit.gsi.beast.reader.mas.MASReader.generateJavaFilesForOneStory(String, String, String, String, String, String) | CORRECTNESS | RV_RETURN_VALUE_IGNORED | 197 | High |
es.upm.dit.gsi.beast.reader.mas.MASReader.generateJavaFilesForOneStory(String, String, String, String, String, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 211 | Medium |
es.upm.dit.gsi.beast.reader.mas.MASReader.generateJavaFilesForOneStory(String, String, String, String, String, String) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 279 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.system.CreateSystemCaseManager.addStory(File, String, String, String, String, String): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 131 | High |
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.system.CreateSystemCaseManager.addStory(File, String, String, String, String, String): new java.io.FileWriter(File, boolean) | I18N | DM_DEFAULT_ENCODING | 153 | High |
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.system.CreateSystemCaseManager.closeSystemCaseManager(File): new java.io.FileWriter(File, boolean) | I18N | DM_DEFAULT_ENCODING | 191 | High |
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.system.CreateSystemCaseManager.startSystemCaseManager(String, String): new java.io.FileReader(File) | I18N | DM_DEFAULT_ENCODING | 82 | High |
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.system.CreateSystemCaseManager.startSystemCaseManager(String, String): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 58 | High |
es.upm.dit.gsi.beast.reader.system.CreateSystemCaseManager.addStory(File, String, String, String, String, String) may fail to clean up java.io.Writer on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 153 | Medium |
es.upm.dit.gsi.beast.reader.system.CreateSystemCaseManager.closeSystemCaseManager(File) may fail to clean up java.io.Writer on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 191 | Medium |
es.upm.dit.gsi.beast.reader.system.CreateSystemCaseManager.startSystemCaseManager(String, String) may fail to clean up java.io.Writer on checked exception | EXPERIMENTAL | OBL_UNSATISFIED_OBLIGATION_EXCEPTION_EDGE | 58 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Found reliance on default encoding in es.upm.dit.gsi.beast.reader.system.CreateSystemTestSuite.createSystemTestSuite(String, String, String, String, String, String, String, String, HashMap): new java.io.FileWriter(File) | I18N | DM_DEFAULT_ENCODING | 69 | High |
es.upm.dit.gsi.beast.reader.system.CreateSystemTestSuite.createSystemTestSuite(String, String, String, String, String, String, String, String, HashMap) makes inefficient use of keySet iterator instead of entrySet iterator | PERFORMANCE | WMI_WRONG_MAP_ITERATOR | 143 | Medium |
Bug | Category | Details | Line | Priority |
---|---|---|---|---|
Dereference of the result of readLine() without nullcheck in es.upm.dit.gsi.beast.reader.system.SystemReader.generateJavaFilesForOneStory(String, String, String, String, String, String) | STYLE | NP_DEREFERENCE_OF_READLINE_VALUE | 212 | Medium |
Dereference of the result of readLine() without nullcheck in es.upm.dit.gsi.beast.reader.system.SystemReader.generateJavaFilesForOneStory(String, String, String, String, String, String) | STYLE | NP_DEREFERENCE_OF_READLINE_VALUE | 212 | Medium |
Exception is caught when Exception is not thrown in es.upm.dit.gsi.beast.reader.system.SystemReader.generateJavaFilesForOneStory(String, String, String, String, String, String) | STYLE | REC_CATCH_EXCEPTION | 288 | Medium |
Return value of String.toLowerCase() ignored in es.upm.dit.gsi.beast.reader.system.SystemReader.generateJavaFilesForOneStory(String, String, String, String, String, String) | CORRECTNESS | RV_RETURN_VALUE_IGNORED | 199 | High |
es.upm.dit.gsi.beast.reader.system.SystemReader.generateJavaFilesForOneStory(String, String, String, String, String, String) concatenates strings using + in a loop | PERFORMANCE | SBSC_USE_STRINGBUFFER_CONCATENATION | 213 | Medium |