PMD Results
The following document contains the results of PMD 7.19.0.
Violations By Priority
Priority 3
gov/nist/secauto/metaschema/databind/AbstractModuleLoaderStrategy.java
| Rule | Violation | Line |
|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 171–173 |
gov/nist/secauto/metaschema/databind/DefaultBindingContext.java
| Rule | Violation | Line |
|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 179–191 |
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 216–228 |
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.EmptyFinalizer" in @SuppressWarnings annotation | 273 |
gov/nist/secauto/metaschema/databind/IBindingContext.java
| Rule | Violation | Line |
|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 835–861 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 913 |
gov/nist/secauto/metaschema/databind/codegen/IProduction.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 85 |
gov/nist/secauto/metaschema/databind/codegen/impl/AnnotationGenerator.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 427–429 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 454–456 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 486–488 |
gov/nist/secauto/metaschema/databind/codegen/typeinfo/AbstractModelInstanceTypeInfo.java
| Rule | Violation | Line |
|---|---|---|
| EnumComparison | Enums should be compared using == | 64 |
| EnumComparison | Enums should be compared using == | 108 |
| EnumComparison | Enums should be compared using == | 115 |
gov/nist/secauto/metaschema/databind/codegen/typeinfo/AbstractNamedModelInstanceTypeInfo.java
| Rule | Violation | Line |
|---|---|---|
| EnumComparison | Enums should be compared using == | 123 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 125–128 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 135–138 |
gov/nist/secauto/metaschema/databind/codegen/typeinfo/DefaultMetaschemaClassFactory.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.GodClass" in @SuppressWarnings annotation | 74 |
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.CyclomaticComplexity" in @SuppressWarnings annotation | 75 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 133 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 246 |
gov/nist/secauto/metaschema/databind/codegen/typeinfo/FlagInstanceTypeInfoImpl.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 50 |
gov/nist/secauto/metaschema/databind/io/AbstractSerializationBase.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 18 |
gov/nist/secauto/metaschema/databind/io/FormatDetector.java
| Rule | Violation | Line |
|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 110–119 |
gov/nist/secauto/metaschema/databind/io/ModelDetector.java
| Rule | Violation | Line |
|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 123–143 |
| EnumComparison | Enums should be compared using == | 200 |
gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.CloseResource" in @SuppressWarnings annotation | 151 |
| EnumComparison | Enums should be compared using == | 221 |
| EnumComparison | Enums should be compared using == | 229 |
| EnumComparison | Enums should be compared using == | 230 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 466 |
| EnumComparison | Enums should be compared using == | 607 |
| EnumComparison | Enums should be compared using == | 783 |
| EnumComparison | Enums should be compared using == | 817 |
gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonWriter.java
| Rule | Violation | Line |
|---|---|---|
| GodClass | Possible God Class (WMC=50, ATFD=29, TCC=21.429%) | 39 |
| CyclomaticComplexity | The method 'writeFieldValue(IBoundFieldValue, Object)' has a cyclomatic complexity of 10. | 102 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 124–127 |
| EnumComparison | Enums should be compared using == | 372 |
| EnumComparison | Enums should be compared using == | 373 |
gov/nist/secauto/metaschema/databind/io/xml/DefaultXmlSerializer.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 137 |
gov/nist/secauto/metaschema/databind/io/xml/MetaschemaXmlReader.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 291 |
gov/nist/secauto/metaschema/databind/io/xml/MetaschemaXmlWriter.java
| Rule | Violation | Line |
|---|---|---|
| CouplingBetweenObjects | A value of 33 may denote a high amount of coupling within the class (threshold: 20) | 6–406 |
gov/nist/secauto/metaschema/databind/metapath/function/Model.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.OnlyOneReturn" in @SuppressWarnings annotation | 49 |
gov/nist/secauto/metaschema/databind/model/IBoundInstanceModelGroupedNamed.java
| Rule | Violation | Line |
|---|---|---|
| EnumComparison | Enums should be compared using == | 32 |
gov/nist/secauto/metaschema/databind/model/IBoundInstanceModelNamed.java
| Rule | Violation | Line |
|---|---|---|
| EnumComparison | Enums should be compared using == | 39 |
gov/nist/secauto/metaschema/databind/model/IBoundModule.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 57 |
gov/nist/secauto/metaschema/databind/model/IFeatureJavaField.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 53 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 64 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 73 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 85 |
gov/nist/secauto/metaschema/databind/model/annotations/AllowedValues.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 35 |
gov/nist/secauto/metaschema/databind/model/annotations/Expect.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 34 |
gov/nist/secauto/metaschema/databind/model/annotations/HasCardinality.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 34 |
gov/nist/secauto/metaschema/databind/model/annotations/Index.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 34 |
gov/nist/secauto/metaschema/databind/model/annotations/IndexHasKey.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 37 |
gov/nist/secauto/metaschema/databind/model/annotations/IsUnique.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 35 |
gov/nist/secauto/metaschema/databind/model/annotations/Matches.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 37 |
gov/nist/secauto/metaschema/databind/model/annotations/ModelUtil.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 284 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 289 |
gov/nist/secauto/metaschema/databind/model/impl/AssemblyModelGenerator.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 35 |
gov/nist/secauto/metaschema/databind/model/impl/ClassIntrospector.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 18 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 34 |
gov/nist/secauto/metaschema/databind/model/impl/ConstraintFactory.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 220 |
gov/nist/secauto/metaschema/databind/model/impl/ConstraintSupport.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 36 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 71 |
gov/nist/secauto/metaschema/databind/model/impl/DefinitionField.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 128 |
gov/nist/secauto/metaschema/databind/model/impl/FlagContainerSupport.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 38 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 78 |
gov/nist/secauto/metaschema/databind/model/impl/IFeatureInstanceModelGroupAs.java
| Rule | Violation | Line |
|---|---|---|
| EnumComparison | Enums should be compared using == | 34 |
gov/nist/secauto/metaschema/databind/model/impl/InstanceModelFieldComplex.java
| Rule | Violation | Line |
|---|---|---|
| CyclomaticComplexity | The method 'newInstance(Field, DefinitionField, IBoundDefinitionModelAssembly)' has a cyclomatic complexity of 12. | 80 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 86 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 110 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 119 |
| CognitiveComplexity | The constructor 'InstanceModelFieldComplex(Field, BoundField, IGroupAs, DefinitionField, IBoundDefinitionModelAssembly)' has a cognitive complexity of 16, current threshold is 15 | 136 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 163–165 |
gov/nist/secauto/metaschema/databind/model/impl/InstanceModelFieldScalar.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 96 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 105 |
gov/nist/secauto/metaschema/databind/model/info/IModelInstanceCollectionInfo.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 27 |
| CognitiveComplexity | The method 'of(IBoundInstanceModel<T>)' has a cognitive complexity of 19, current threshold is 15 | 29 |
| CyclomaticComplexity | The method 'of(IBoundInstanceModel<T>)' has a cyclomatic complexity of 17. | 29 |
| EnumComparison | Enums should be compared using == | 64 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 65–72 |
gov/nist/secauto/metaschema/databind/model/metaschema/BindingConstraintLoader.java
| Rule | Violation | Line |
|---|---|---|
| CouplingBetweenObjects | A value of 31 may denote a high amount of coupling within the class (threshold: 20) | 6–284 |
| CognitiveComplexity | The method 'parseResource(URI, Deque<URI>)' has a cognitive complexity of 20, current threshold is 15 | 78 |
| CyclomaticComplexity | The method 'parseResource(URI, Deque<URI>)' has a cyclomatic complexity of 12. | 78 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/AbstractAbsoluteModelGenerator.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.UseConcurrentHashMap" in @SuppressWarnings annotation | 43 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/AssemblyModelGenerator.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 38 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 66 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/BindingConstants.java
| Rule | Violation | Line |
|---|---|---|
| DataClass | The class 'BindingConstants' is suspected to be a Data Class (WOC=0.000%, NOPA=7, NOAM=0, WMC=1) | 9 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/BindingModule.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 82 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 84 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/ChoiceGroupModelGenerator.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 64 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/ChoiceModelGenerator.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 58 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/ConstraintBindingSupport.java
| Rule | Violation | Line |
|---|---|---|
| GodClass | Possible God Class (WMC=70, ATFD=53, TCC=0.000%) | 62 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/FlagContainerSupport.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 29 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/InstanceModelAssemblyInline.java
| Rule | Violation | Line |
|---|---|---|
| CouplingBetweenObjects | A value of 24 may denote a high amount of coupling within the class (threshold: 20) | 6–235 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/InstanceModelFieldInline.java
| Rule | Violation | Line |
|---|---|---|
| CouplingBetweenObjects | A value of 24 may denote a high amount of coupling within the class (threshold: 20) | 6–222 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/InstanceModelGroupedAssemblyInline.java
| Rule | Violation | Line |
|---|---|---|
| CouplingBetweenObjects | A value of 21 may denote a high amount of coupling within the class (threshold: 20) | 6–196 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/InstanceModelGroupedFieldInline.java
| Rule | Violation | Line |
|---|---|---|
| CouplingBetweenObjects | A value of 21 may denote a high amount of coupling within the class (threshold: 20) | 6–199 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/ModelSupport.java
| Rule | Violation | Line |
|---|---|---|
| CouplingBetweenObjects | A value of 21 may denote a high amount of coupling within the class (threshold: 20) | 6–248 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 80 |
Files
gov/nist/secauto/metaschema/databind/AbstractModuleLoaderStrategy.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CollapsibleIfStatements | This if statement could be combined with its parent | 3 | 171–173 |
gov/nist/secauto/metaschema/databind/DefaultBindingContext.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 3 | 179–191 |
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 3 | 216–228 |
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.EmptyFinalizer" in @SuppressWarnings annotation | 3 | 273 |
gov/nist/secauto/metaschema/databind/IBindingContext.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 3 | 835–861 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 913 |
gov/nist/secauto/metaschema/databind/codegen/IProduction.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 85 |
gov/nist/secauto/metaschema/databind/codegen/impl/AnnotationGenerator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 427–429 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 454–456 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 486–488 |
gov/nist/secauto/metaschema/databind/codegen/typeinfo/AbstractModelInstanceTypeInfo.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EnumComparison | Enums should be compared using == | 3 | 64 |
| EnumComparison | Enums should be compared using == | 3 | 108 |
| EnumComparison | Enums should be compared using == | 3 | 115 |
gov/nist/secauto/metaschema/databind/codegen/typeinfo/AbstractNamedModelInstanceTypeInfo.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EnumComparison | Enums should be compared using == | 3 | 123 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 125–128 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 135–138 |
gov/nist/secauto/metaschema/databind/codegen/typeinfo/DefaultMetaschemaClassFactory.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.GodClass" in @SuppressWarnings annotation | 3 | 74 |
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.CyclomaticComplexity" in @SuppressWarnings annotation | 3 | 75 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 133 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 246 |
gov/nist/secauto/metaschema/databind/codegen/typeinfo/FlagInstanceTypeInfoImpl.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 50 |
gov/nist/secauto/metaschema/databind/io/AbstractSerializationBase.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 18 |
gov/nist/secauto/metaschema/databind/io/FormatDetector.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 3 | 110–119 |
gov/nist/secauto/metaschema/databind/io/ModelDetector.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 3 | 123–143 |
| EnumComparison | Enums should be compared using == | 3 | 200 |
gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.CloseResource" in @SuppressWarnings annotation | 3 | 151 |
| EnumComparison | Enums should be compared using == | 3 | 221 |
| EnumComparison | Enums should be compared using == | 3 | 229 |
| EnumComparison | Enums should be compared using == | 3 | 230 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 466 |
| EnumComparison | Enums should be compared using == | 3 | 607 |
| EnumComparison | Enums should be compared using == | 3 | 783 |
| EnumComparison | Enums should be compared using == | 3 | 817 |
gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonWriter.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| GodClass | Possible God Class (WMC=50, ATFD=29, TCC=21.429%) | 3 | 39 |
| CyclomaticComplexity | The method 'writeFieldValue(IBoundFieldValue, Object)' has a cyclomatic complexity of 10. | 3 | 102 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 124–127 |
| EnumComparison | Enums should be compared using == | 3 | 372 |
| EnumComparison | Enums should be compared using == | 3 | 373 |
gov/nist/secauto/metaschema/databind/io/xml/DefaultXmlSerializer.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 137 |
gov/nist/secauto/metaschema/databind/io/xml/MetaschemaXmlReader.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 291 |
gov/nist/secauto/metaschema/databind/io/xml/MetaschemaXmlWriter.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CouplingBetweenObjects | A value of 33 may denote a high amount of coupling within the class (threshold: 20) | 3 | 6–406 |
gov/nist/secauto/metaschema/databind/metapath/function/Model.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.OnlyOneReturn" in @SuppressWarnings annotation | 3 | 49 |
gov/nist/secauto/metaschema/databind/model/IBoundInstanceModelGroupedNamed.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EnumComparison | Enums should be compared using == | 3 | 32 |
gov/nist/secauto/metaschema/databind/model/IBoundInstanceModelNamed.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EnumComparison | Enums should be compared using == | 3 | 39 |
gov/nist/secauto/metaschema/databind/model/IBoundModule.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 57 |
gov/nist/secauto/metaschema/databind/model/IFeatureJavaField.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 53 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 64 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 73 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 85 |
gov/nist/secauto/metaschema/databind/model/annotations/AllowedValues.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 35 |
gov/nist/secauto/metaschema/databind/model/annotations/Expect.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 34 |
gov/nist/secauto/metaschema/databind/model/annotations/HasCardinality.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 34 |
gov/nist/secauto/metaschema/databind/model/annotations/Index.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 34 |
gov/nist/secauto/metaschema/databind/model/annotations/IndexHasKey.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 37 |
gov/nist/secauto/metaschema/databind/model/annotations/IsUnique.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 35 |
gov/nist/secauto/metaschema/databind/model/annotations/Matches.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 37 |
gov/nist/secauto/metaschema/databind/model/annotations/ModelUtil.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 284 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 289 |
gov/nist/secauto/metaschema/databind/model/impl/AssemblyModelGenerator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 35 |
gov/nist/secauto/metaschema/databind/model/impl/ClassIntrospector.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 18 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 34 |
gov/nist/secauto/metaschema/databind/model/impl/ConstraintFactory.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 220 |
gov/nist/secauto/metaschema/databind/model/impl/ConstraintSupport.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 36 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 71 |
gov/nist/secauto/metaschema/databind/model/impl/DefinitionField.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 128 |
gov/nist/secauto/metaschema/databind/model/impl/FlagContainerSupport.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 38 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 78 |
gov/nist/secauto/metaschema/databind/model/impl/IFeatureInstanceModelGroupAs.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EnumComparison | Enums should be compared using == | 3 | 34 |
gov/nist/secauto/metaschema/databind/model/impl/InstanceModelFieldComplex.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CyclomaticComplexity | The method 'newInstance(Field, DefinitionField, IBoundDefinitionModelAssembly)' has a cyclomatic complexity of 12. | 3 | 80 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 86 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 110 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 119 |
| CognitiveComplexity | The constructor 'InstanceModelFieldComplex(Field, BoundField, IGroupAs, DefinitionField, IBoundDefinitionModelAssembly)' has a cognitive complexity of 16, current threshold is 15 | 3 | 136 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 163–165 |
gov/nist/secauto/metaschema/databind/model/impl/InstanceModelFieldScalar.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 96 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 105 |
gov/nist/secauto/metaschema/databind/model/info/IModelInstanceCollectionInfo.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 27 |
| CognitiveComplexity | The method 'of(IBoundInstanceModel<T>)' has a cognitive complexity of 19, current threshold is 15 | 3 | 29 |
| CyclomaticComplexity | The method 'of(IBoundInstanceModel<T>)' has a cyclomatic complexity of 17. | 3 | 29 |
| EnumComparison | Enums should be compared using == | 3 | 64 |
| AvoidDeeplyNestedIfStmts | Deeply nested if..then statements are hard to read | 3 | 65–72 |
gov/nist/secauto/metaschema/databind/model/metaschema/BindingConstraintLoader.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CouplingBetweenObjects | A value of 31 may denote a high amount of coupling within the class (threshold: 20) | 3 | 6–284 |
| CognitiveComplexity | The method 'parseResource(URI, Deque<URI>)' has a cognitive complexity of 20, current threshold is 15 | 3 | 78 |
| CyclomaticComplexity | The method 'parseResource(URI, Deque<URI>)' has a cyclomatic complexity of 12. | 3 | 78 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/AbstractAbsoluteModelGenerator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.UseConcurrentHashMap" in @SuppressWarnings annotation | 3 | 43 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/AssemblyModelGenerator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 38 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 66 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/BindingConstants.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| DataClass | The class 'BindingConstants' is suspected to be a Data Class (WOC=0.000%, NOPA=7, NOAM=0, WMC=1) | 3 | 9 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/BindingModule.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 82 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 84 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/ChoiceGroupModelGenerator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 64 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/ChoiceModelGenerator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 58 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/ConstraintBindingSupport.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| GodClass | Possible God Class (WMC=70, ATFD=53, TCC=0.000%) | 3 | 62 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/FlagContainerSupport.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 29 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/InstanceModelAssemblyInline.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CouplingBetweenObjects | A value of 24 may denote a high amount of coupling within the class (threshold: 20) | 3 | 6–235 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/InstanceModelFieldInline.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CouplingBetweenObjects | A value of 24 may denote a high amount of coupling within the class (threshold: 20) | 3 | 6–222 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/InstanceModelGroupedAssemblyInline.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CouplingBetweenObjects | A value of 21 may denote a high amount of coupling within the class (threshold: 20) | 3 | 6–196 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/InstanceModelGroupedFieldInline.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CouplingBetweenObjects | A value of 21 may denote a high amount of coupling within the class (threshold: 20) | 3 | 6–199 |
gov/nist/secauto/metaschema/databind/model/metaschema/impl/ModelSupport.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CouplingBetweenObjects | A value of 21 may denote a high amount of coupling within the class (threshold: 20) | 3 | 6–248 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 80 |
Suppressed Violations
| Filename | Rule message | Suppression type | Reason |
|---|---|---|---|
| gov/nist/secauto/metaschema/databind/AbstractModuleLoaderStrategy.java | Exception thrown at line 95 is caught in this block. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/AbstractModuleLoaderStrategy.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/AbstractModuleLoaderStrategy.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/AbstractModuleLoaderStrategy.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/DefaultBindingContext.java | A value of 23 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/codegen/IProduction.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | //nopmd | - no concurrency |
| gov/nist/secauto/metaschema/databind/codegen/IProduction.java | Avoid instantiating new objects inside loops | //nopmd | - intentional |
| gov/nist/secauto/metaschema/databind/codegen/ProductionImpl.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | //nopmd | - immutable |
| gov/nist/secauto/metaschema/databind/codegen/ProductionImpl.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | //nopmd | - immutable |
| gov/nist/secauto/metaschema/databind/codegen/impl/AnnotationGenerator.java | A value of 37 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/codegen/impl/AnnotationGenerator.java | Possible God Class (WMC=78, ATFD=101, TCC=0.735%) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/codegen/typeinfo/ChoiceGroupTypeInfoImpl.java | The method 'buildBindingAnnotation(Builder, Builder, Builder)' has a cyclomatic complexity of 10. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/codegen/typeinfo/ChoiceGroupTypeInfoImpl.java | The method 'buildBindingAnnotation(Builder, Builder, Builder)' has an NPath complexity of 288, current threshold is 200 | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/codegen/typeinfo/ChoiceGroupTypeInfoImpl.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/codegen/typeinfo/ChoiceGroupTypeInfoImpl.java | Avoid instantiating new objects inside loops | //nopmd | needed |
| gov/nist/secauto/metaschema/databind/codegen/typeinfo/DefaultMetaschemaClassFactory.java | A value of 31 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/codegen/typeinfo/DefaultMetaschemaClassFactory.java | Avoid catching RuntimeException in try-catch block | //nopmd | - intended |
| gov/nist/secauto/metaschema/databind/codegen/typeinfo/DefaultTypeResolver.java | A value of 31 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/AbstractDeserializer.java | Avoid catching Exception in try-catch block | //nopmd | - this is intentional |
| gov/nist/secauto/metaschema/databind/io/DefaultBoundLoader.java | A value of 23 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/DefaultBoundLoader.java | Assigning an Object to null is a code smell. Consider refactoring. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/DeserializationFeature.java | The class 'DeserializationFeature' is suspected to be a Data Class (WOC=0.000%, NOPA=7, NOAM=0, WMC=1) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/ModelDetector.java | Assigning an Object to null is a code smell. Consider refactoring. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | A value of 37 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | The method 'readObjectRoot(IBoundDefinitionModelComplex, String)' has a cyclomatic complexity of 12. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | The class 'MetaschemaData' is suspected to be a Data Class (WOC=0.000%, NOPA=0, NOAM=4, WMC=5) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | Possible God Class (WMC=55, ATFD=54, TCC=1.333%) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | Ensure that resources like this JsonParser object are closed after use | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | Ensure that resources like this JsonParser object are closed after use | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | Ensure that resources like this JsonParser object are closed after use | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | Ensure that resources like this JsonParser object are closed after use | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | Ensure that resources like this JsonParser object are closed after use | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | Ensure that resources like this JsonParser object are closed after use | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | Ensure that resources like this JsonParser object are closed after use | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | Ensure that resources like this JsonParser object are closed after use | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | //nopmd | not concurrent |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonReader.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonWriter.java | A value of 31 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/json/MetaschemaJsonWriter.java | Assigning an Object to null is a code smell. Consider refactoring. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/io/xml/DefaultXmlSerializer.java | A throw statement in a finally block makes the control flow hard to understand. | //nopmd | - exception handling is needed |
| gov/nist/secauto/metaschema/databind/io/xml/MetaschemaXmlReader.java | A value of 39 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/IBoundDefinitionModelFieldComplex.java | Assigning an Object to null is a code smell. Consider refactoring. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/IBoundDefinitionModelFieldComplex.java | Assigning an Object to null is a code smell. Consider refactoring. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/annotations/ModelUtil.java | Assigning an Object to null is a code smell. Consider refactoring. | //nopmd | - intentional |
| gov/nist/secauto/metaschema/databind/model/annotations/NullJavaTypeAdapter.java | Avoid unused method parameters such as 'item'. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/impl/ConstraintFactory.java | A value of 42 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/impl/ConstraintFactory.java | Assigning an Object to null is a code smell. Consider refactoring. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/impl/DefinitionAssembly.java | A value of 22 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/impl/DefinitionField.java | A value of 25 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/impl/FieldSupport.java | You should not modify visibility of constructors, methods or fields using setAccessible() | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/impl/InstanceModelChoiceGroup.java | A value of 22 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/info/IFeatureComplexItemValueHandler.java | Avoid throwing raw exception type RuntimeException. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/info/IFeatureComplexItemValueHandler.java | Avoid throwing raw exception type RuntimeException. | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/metaschema/BindingConstraintLoader.java | Avoid instantiating new objects inside loops | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/metaschema/impl/AbstractAbsoluteModelGenerator.java | This abstract class does not have any abstract methods | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/metaschema/impl/BindingModule.java | A value of 33 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/metaschema/impl/BindingModule.java | Avoid instantiating new objects inside loops | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/metaschema/impl/BindingModule.java | Avoid instantiating new objects inside loops | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/metaschema/impl/BindingModule.java | Avoid instantiating new objects inside loops | @suppresswarnings | |
| gov/nist/secauto/metaschema/databind/model/metaschema/impl/ConstraintBindingSupport.java | A value of 51 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings |
