SpotBugs Bug Detector Report
The following document contains the results of SpotBugs
SpotBugs Version is 4.9.4
Threshold is medium
Effort is max
Summary
Classes |
Bugs |
Errors |
Missing Classes |
30 |
8 |
0 |
0 |
org.forgerock.json.schema.validator.CollectErrorsHandler
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.json.schema.validator.CollectErrorsHandler.getExceptions() may expose internal representation by returning CollectErrorsHandler.exceptions |
MALICIOUS_CODE |
EI_EXPOSE_REP |
55 |
Medium |
org.forgerock.json.schema.validator.FailFastErrorHandler
Bug |
Category |
Details |
Line |
Priority |
instanceof will always return true for all non-null values in org.forgerock.json.schema.validator.FailFastErrorHandler.assembleException(), since all org.forgerock.json.schema.validator.exceptions.ValidationException are instances of org.forgerock.json.schema.validator.exceptions.ValidationException |
STYLE |
BC_VACUOUS_INSTANCEOF |
49 |
Medium |
org.forgerock.json.schema.validator.FailFastErrorHandler.error(ValidationException) may expose internal representation by storing an externally mutable object into FailFastErrorHandler.ex |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
38 |
Medium |
org.forgerock.json.schema.validator.ObjectValidatorFactory
Bug |
Category |
Details |
Line |
Priority |
Exception is caught when Exception is not thrown in org.forgerock.json.schema.validator.ObjectValidatorFactory.getTypeValidator(String, Map, List) |
STYLE |
REC_CATCH_EXCEPTION |
124 |
Medium |
org.forgerock.json.schema.validator.exceptions.SchemaException
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.json.schema.validator.exceptions.SchemaException.getException() may expose internal representation by returning SchemaException.exception |
MALICIOUS_CODE |
EI_EXPOSE_REP |
114 |
Medium |
new org.forgerock.json.schema.validator.exceptions.SchemaException(JsonValue, Exception) may expose internal representation by storing an externally mutable object into SchemaException.exception |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
68 |
Medium |
new org.forgerock.json.schema.validator.exceptions.SchemaException(JsonValue, String, Exception) may expose internal representation by storing an externally mutable object into SchemaException.exception |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
84 |
Medium |
org.forgerock.json.schema.validator.helpers.EnumHelper
Bug |
Category |
Details |
Line |
Priority |
new org.forgerock.json.schema.validator.helpers.EnumHelper(List) may expose internal representation by storing an externally mutable object into EnumHelper.enumValues |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
46 |
Medium |