Fork me on GitHub

SpotBugs Bug Detector Report

The following document contains the results of SpotBugs

SpotBugs Version is 4.5.3

Threshold is low

Effort is max

Summary

Classes Bugs Errors Missing Classes
77 20 0 0

Files

Class Bugs
org.mal_lang.langspec.Asset 2
org.mal_lang.langspec.Association 2
org.mal_lang.langspec.AttackStep 3
org.mal_lang.langspec.Field 2
org.mal_lang.langspec.Lang 2
org.mal_lang.langspec.Meta 1
org.mal_lang.langspec.Variable 1
org.mal_lang.langspec.io.LangWriter 2
org.mal_lang.langspec.step.StepExpression 2
org.mal_lang.langspec.step.StepField 1
org.mal_lang.langspec.step.StepSubType 1
org.mal_lang.langspec.step.StepVariable 1

org.mal_lang.langspec.Asset

Bug Category Details Line Priority
org.mal_lang.langspec.Asset.getCategory() may expose internal representation by returning Asset.category MALICIOUS_CODE EI_EXPOSE_REP 88 Medium
org.mal_lang.langspec.Asset.getSuperAsset() may expose internal representation by returning Asset.superAsset MALICIOUS_CODE EI_EXPOSE_REP 123 Medium

org.mal_lang.langspec.Association

Bug Category Details Line Priority
org.mal_lang.langspec.Association.getLeftField() may expose internal representation by returning Association.leftField MALICIOUS_CODE EI_EXPOSE_REP 73 Medium
org.mal_lang.langspec.Association.getRightField() may expose internal representation by returning Association.rightField MALICIOUS_CODE EI_EXPOSE_REP 83 Medium

org.mal_lang.langspec.AttackStep

Bug Category Details Line Priority
org.mal_lang.langspec.AttackStep.getAsset() may expose internal representation by returning AttackStep.asset MALICIOUS_CODE EI_EXPOSE_REP 95 Medium
org.mal_lang.langspec.AttackStep.getLocalReaches() may expose internal representation by returning AttackStep.reaches MALICIOUS_CODE EI_EXPOSE_REP 331 Medium
org.mal_lang.langspec.AttackStep.getLocalRequires() may expose internal representation by returning AttackStep.requires MALICIOUS_CODE EI_EXPOSE_REP 284 Medium

org.mal_lang.langspec.Field

Bug Category Details Line Priority
org.mal_lang.langspec.Field.getAsset() may expose internal representation by returning Field.asset MALICIOUS_CODE EI_EXPOSE_REP 57 Medium
org.mal_lang.langspec.Field.getTarget() may expose internal representation by returning Field.target MALICIOUS_CODE EI_EXPOSE_REP 77 Medium

org.mal_lang.langspec.Lang

Bug Category Details Line Priority
org.mal_lang.langspec.Lang.getAssociations() may expose internal representation by returning Lang.associations MALICIOUS_CODE EI_EXPOSE_REP 182 Medium
org.mal_lang.langspec.Lang.getDefines() may expose internal representation by returning Lang.defines MALICIOUS_CODE EI_EXPOSE_REP 94 Medium

org.mal_lang.langspec.Meta

Bug Category Details Line Priority
org.mal_lang.langspec.Meta.getEntries() may expose internal representation by returning Meta.entries MALICIOUS_CODE EI_EXPOSE_REP 76 Medium

org.mal_lang.langspec.Variable

Bug Category Details Line Priority
org.mal_lang.langspec.Variable.getAsset() may expose internal representation by returning Variable.asset MALICIOUS_CODE EI_EXPOSE_REP 58 Medium

org.mal_lang.langspec.io.LangWriter

Bug Category Details Line Priority
new org.mal_lang.langspec.io.LangWriter(OutputStream) may expose internal representation by storing an externally mutable object into LangWriter.out MALICIOUS_CODE EI_EXPOSE_REP2 51 Medium
Nullcheck of jsonWriter at line 68 of value previously dereferenced in org.mal_lang.langspec.io.LangWriter.writeLangSpec(ZipOutputStream, Lang) CORRECTNESS RCN_REDUNDANT_NULLCHECK_WOULD_HAVE_BEEN_A_NPE 68 Medium

org.mal_lang.langspec.step.StepExpression

Bug Category Details Line Priority
org.mal_lang.langspec.step.StepExpression.getSourceAsset() may expose internal representation by returning StepExpression.sourceAsset MALICIOUS_CODE EI_EXPOSE_REP 57 Medium
org.mal_lang.langspec.step.StepExpression.getTargetAsset() may expose internal representation by returning StepExpression.targetAsset MALICIOUS_CODE EI_EXPOSE_REP 67 Medium

org.mal_lang.langspec.step.StepField

Bug Category Details Line Priority
org.mal_lang.langspec.step.StepField.getField() may expose internal representation by returning StepField.field MALICIOUS_CODE EI_EXPOSE_REP 49 Medium

org.mal_lang.langspec.step.StepSubType

Bug Category Details Line Priority
org.mal_lang.langspec.step.StepSubType.getSubType() may expose internal representation by returning StepSubType.subType MALICIOUS_CODE EI_EXPOSE_REP 51 Medium

org.mal_lang.langspec.step.StepVariable

Bug Category Details Line Priority
org.mal_lang.langspec.step.StepVariable.getVariable() may expose internal representation by returning StepVariable.variable MALICIOUS_CODE EI_EXPOSE_REP 48 Medium