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 |
182 |
41 |
0 |
0 |
org.forgerock.api.jackson.CrestAnySchema
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.jackson.CrestAnySchema doesn't override com.fasterxml.jackson.module.jsonSchema.types.AnySchema.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.jackson.CrestArraySchema
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.jackson.CrestArraySchema doesn't override com.fasterxml.jackson.module.jsonSchema.types.ArraySchema.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.jackson.CrestBooleanSchema
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.jackson.CrestBooleanSchema doesn't override com.fasterxml.jackson.module.jsonSchema.types.BooleanSchema.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.jackson.CrestIntegerSchema
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.jackson.CrestIntegerSchema doesn't override com.fasterxml.jackson.module.jsonSchema.types.IntegerSchema.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.jackson.CrestNumberSchema
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.jackson.CrestNumberSchema doesn't override com.fasterxml.jackson.module.jsonSchema.types.NumberSchema.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.jackson.CrestObjectSchema
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.jackson.CrestObjectSchema.getRequiredFields() may expose internal representation by returning CrestObjectSchema.requiredFields |
MALICIOUS_CODE |
EI_EXPOSE_REP |
171 |
Medium |
org.forgerock.api.jackson.CrestObjectSchema.setRequiredFields(Set) may expose internal representation by storing an externally mutable object into CrestObjectSchema.requiredFields |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
176 |
Medium |
org.forgerock.api.jackson.CrestObjectSchema doesn't override com.fasterxml.jackson.module.jsonSchema.types.ObjectSchema.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.jackson.CrestStringSchema
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.jackson.CrestStringSchema doesn't override com.fasterxml.jackson.module.jsonSchema.types.StringSchema.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.markup.asciidoc.AsciiDoc
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.markup.asciidoc.AsciiDoc.normalizeName(String[]) concatenates strings using + in a loop |
PERFORMANCE |
SBSC_USE_STRINGBUFFER_CONCATENATION |
611 |
Medium |
org.forgerock.api.markup.asciidoc.AsciiDocTable
Bug |
Category |
Details |
Line |
Priority |
Null pointer dereference of AsciiDocTable.columnsPerRow in org.forgerock.api.markup.asciidoc.AsciiDocTable.columnsPerRow(int) |
CORRECTNESS |
NP_ALWAYS_NULL |
135 |
High |
org.forgerock.api.models.ApiError$ErrorComparator
org.forgerock.api.models.Errors
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.models.Errors.getErrors() may expose internal representation by returning Errors.errors |
MALICIOUS_CODE |
EI_EXPOSE_REP |
59 |
Medium |
org.forgerock.api.models.Errors$ErrorEntryComparator
org.forgerock.api.models.Operation
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.models.Operation.getSupportedLocales() may expose internal representation by returning Operation.supportedLocales |
MALICIOUS_CODE |
EI_EXPOSE_REP |
82 |
Medium |
org.forgerock.api.models.Parameter
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.models.Parameter.getEnumTitles() may expose internal representation by returning Parameter.enumTitles |
MALICIOUS_CODE |
EI_EXPOSE_REP |
148 |
Medium |
org.forgerock.api.models.Parameter.getEnumValues() may expose internal representation by returning Parameter.enumValues |
MALICIOUS_CODE |
EI_EXPOSE_REP |
138 |
Medium |
Suspicious comparison of Boolean references in org.forgerock.api.models.Parameter.equals(Object) |
BAD_PRACTICE |
RC_REF_COMPARISON_BAD_PRACTICE_BOOLEAN |
160 |
Medium |
org.forgerock.api.models.Patch
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.models.Patch.getOperations() may expose internal representation by returning Patch.operations |
MALICIOUS_CODE |
EI_EXPOSE_REP |
57 |
Medium |
org.forgerock.api.models.Query
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.models.Query.getCountPolicies() may expose internal representation by returning Query.countPolicies |
MALICIOUS_CODE |
EI_EXPOSE_REP |
90 |
Medium |
org.forgerock.api.models.Query.getPagingModes() may expose internal representation by returning Query.pagingModes |
MALICIOUS_CODE |
EI_EXPOSE_REP |
79 |
Medium |
org.forgerock.api.models.Query.getQueryableFields() may expose internal representation by returning Query.queryableFields |
MALICIOUS_CODE |
EI_EXPOSE_REP |
108 |
Medium |
org.forgerock.api.models.Query.getSupportedSortKeys() may expose internal representation by returning Query.supportedSortKeys |
MALICIOUS_CODE |
EI_EXPOSE_REP |
117 |
Medium |
org.forgerock.api.models.Resource
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.models.Resource.getActions() may expose internal representation by returning Resource.actions |
MALICIOUS_CODE |
EI_EXPOSE_REP |
185 |
Medium |
org.forgerock.api.models.Resource.getParameters() may expose internal representation by returning Resource.parameters |
MALICIOUS_CODE |
EI_EXPOSE_REP |
238 |
Medium |
org.forgerock.api.models.Resource.getQueries() may expose internal representation by returning Resource.queries |
MALICIOUS_CODE |
EI_EXPOSE_REP |
194 |
Medium |
org.forgerock.api.models.Schema
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.models.Schema.fromAnnotation(Schema, ApiDescription, Class) may fail to clean up java.io.InputStream |
EXPERIMENTAL |
OBL_UNSATISFIED_OBLIGATION |
138 |
Medium |
org.forgerock.api.models.Schema$Builder
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.models.Schema$Builder.schema(JsonValue) may expose internal representation by storing an externally mutable object into Schema$Builder.schema |
MALICIOUS_CODE |
EI_EXPOSE_REP2 |
189 |
Medium |
org.forgerock.api.models.SubResources
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.models.SubResources.getSubResources() may expose internal representation by returning SubResources.subResources |
MALICIOUS_CODE |
EI_EXPOSE_REP |
52 |
Medium |
org.forgerock.api.transform.LocalizableArrayModel
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.transform.LocalizableArrayModel doesn't override io.swagger.models.ArrayModel.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.transform.LocalizableBodyParameter
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.transform.LocalizableBodyParameter doesn't override io.swagger.models.parameters.BodyParameter.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.transform.LocalizableComposedModel
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.transform.LocalizableComposedModel doesn't override io.swagger.models.ComposedModel.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.transform.LocalizableInfo
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.transform.LocalizableInfo doesn't override io.swagger.models.Info.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.transform.LocalizableModelImpl
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.transform.LocalizableModelImpl doesn't override io.swagger.models.ModelImpl.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.transform.LocalizableOperation
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.transform.LocalizableOperation.getLocalizableTags() may expose internal representation by returning LocalizableOperation.tags |
MALICIOUS_CODE |
EI_EXPOSE_REP |
92 |
Medium |
org.forgerock.api.transform.LocalizableOperation doesn't override io.swagger.models.Operation.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.transform.LocalizableRefModel
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.transform.LocalizableRefModel doesn't override io.swagger.models.RefModel.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.transform.LocalizableRefProperty
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.transform.LocalizableRefProperty doesn't override io.swagger.models.properties.RefProperty.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.transform.LocalizableResponse
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.transform.LocalizableResponse doesn't override io.swagger.models.Response.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.transform.LocalizableTag
Bug |
Category |
Details |
Line |
Priority |
org.forgerock.api.transform.LocalizableTag doesn't override io.swagger.models.Tag.equals(Object) |
STYLE |
EQ_DOESNT_OVERRIDE_EQUALS |
1 |
Medium |
org.forgerock.api.util.ReferenceResolver
Bug |
Category |
Details |
Line |
Priority |
Exception thrown in class org.forgerock.api.util.ReferenceResolver at new org.forgerock.api.util.ReferenceResolver(ApiDescription) will leave the constructor. The object under construction remains partially initialized and may be vulnerable to Finalizer attacks. |
BAD_PRACTICE |
CT_CONSTRUCTOR_THROW |
56 |
Medium |