PMD Results
The following document contains the results of PMD 7.19.0.
Violations By Priority
Priority 3
gov/nist/secauto/metaschema/schemagen/AbstractSchemaGenerator.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.CloseResource" in @SuppressWarnings annotation | 87 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 92 |
gov/nist/secauto/metaschema/schemagen/datatype/AbstractDatatypeManager.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 51 |
gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java
| Rule | Violation | Line |
|---|---|---|
| CouplingBetweenObjects | A value of 38 may denote a high amount of coupling within the class (threshold: 20) | 6–324 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 146 |
gov/nist/secauto/metaschema/schemagen/json/impl/JsonSchemaHelper.java
| Rule | Violation | Line |
|---|---|---|
| CouplingBetweenObjects | A value of 34 may denote a high amount of coupling within the class (threshold: 20) | 6–392 |
| GodClass | Possible God Class (WMC=47, ATFD=33, TCC=0.000%) | 49 |
| CyclomaticComplexity | The method 'toJsonValue(Object, IDataTypeAdapter<?>)' has a cyclomatic complexity of 18. | 105 |
gov/nist/secauto/metaschema/schemagen/xml/impl/AbstractXmlDatatypeProvider.java
| Rule | Violation | Line |
|---|---|---|
| AvoidSynchronizedStatement | Use ReentrantLock rather than synchronization | 34–47 |
gov/nist/secauto/metaschema/schemagen/xml/impl/XmlGenerationState.java
| Rule | Violation | Line |
|---|---|---|
| CouplingBetweenObjects | A value of 21 may denote a high amount of coupling within the class (threshold: 20) | 6–265 |
gov/nist/secauto/metaschema/schemagen/xml/impl/schematype/XmlComplexTypeAssemblyDefinition.java
| Rule | Violation | Line |
|---|---|---|
| EnumComparison | Enums should be compared using == | 70 |
Files
gov/nist/secauto/metaschema/schemagen/AbstractSchemaGenerator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary suppression "PMD.CloseResource" in @SuppressWarnings annotation | 3 | 87 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 92 |
gov/nist/secauto/metaschema/schemagen/datatype/AbstractDatatypeManager.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 51 |
gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CouplingBetweenObjects | A value of 38 may denote a high amount of coupling within the class (threshold: 20) | 3 | 6–324 |
| UnnecessaryWarningSuppression | Unnecessary @SuppressWarnings annotation | 3 | 146 |
gov/nist/secauto/metaschema/schemagen/json/impl/JsonSchemaHelper.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CouplingBetweenObjects | A value of 34 may denote a high amount of coupling within the class (threshold: 20) | 3 | 6–392 |
| GodClass | Possible God Class (WMC=47, ATFD=33, TCC=0.000%) | 3 | 49 |
| CyclomaticComplexity | The method 'toJsonValue(Object, IDataTypeAdapter<?>)' has a cyclomatic complexity of 18. | 3 | 105 |
gov/nist/secauto/metaschema/schemagen/xml/impl/AbstractXmlDatatypeProvider.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| AvoidSynchronizedStatement | Use ReentrantLock rather than synchronization | 3 | 34–47 |
gov/nist/secauto/metaschema/schemagen/xml/impl/XmlGenerationState.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| CouplingBetweenObjects | A value of 21 may denote a high amount of coupling within the class (threshold: 20) | 3 | 6–265 |
gov/nist/secauto/metaschema/schemagen/xml/impl/schematype/XmlComplexTypeAssemblyDefinition.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EnumComparison | Enums should be compared using == | 3 | 70 |
Suppressed Violations
| Filename | Rule message | Suppression type | Reason |
|---|---|---|---|
| gov/nist/secauto/metaschema/schemagen/AbstractSchemaGenerator.java | Avoid catching Exception in try-catch block | //nopmd | need to catch close exception |
| gov/nist/secauto/metaschema/schemagen/ModuleIndex.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | @suppresswarnings | |
| gov/nist/secauto/metaschema/schemagen/datatype/AbstractDatatypeManager.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | //nopmd | - intentional |
| gov/nist/secauto/metaschema/schemagen/json/impl/DataTypeRestrictionDefinitionJsonSchema.java | The method 'generateEnumArray()' has a cyclomatic complexity of 11. | @suppresswarnings | |
| gov/nist/secauto/metaschema/schemagen/json/impl/DataTypeRestrictionDefinitionJsonSchema.java | Avoid instantiating new objects inside loops | //nopmd | unavoidable |
| gov/nist/secauto/metaschema/schemagen/json/impl/DataTypeRestrictionDefinitionJsonSchema.java | Avoid instantiating new objects inside loops | //nopmd | unavoidable |
| gov/nist/secauto/metaschema/schemagen/json/impl/IJsonGenerationState.java | Rather than using a lot of String arguments, consider using a container object for those values. | @suppresswarnings | |
| gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java | Rather than using a lot of String arguments, consider using a container object for those values. | @suppresswarnings | |
| gov/nist/secauto/metaschema/schemagen/json/impl/JsonGenerationState.java | Ensure that resources like this JsonGenerator object are closed after use | //nopmd | not closable here |
| gov/nist/secauto/metaschema/schemagen/xml/XmlSchemaGenerator.java | A value of 22 may denote a high amount of coupling within the class (threshold: 20) | //nopmd | |
| gov/nist/secauto/metaschema/schemagen/xml/XmlSchemaGenerator.java | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | //nopmd | concurrency not needed |
| gov/nist/secauto/metaschema/schemagen/xml/impl/DocumentationGenerator.java | The method 'generateDocumentation(String, MarkupLine, List<MarkupMultiline>, String, XmlGenerationState)' has a cyclomatic complexity of 10. | //nopmd | acceptable complexity |
| gov/nist/secauto/metaschema/schemagen/xml/impl/schematype/XmlComplexTypeAssemblyDefinition.java | The method 'generateModelInstance(IModelInstanceAbsolute, XmlGenerationState)' has a cyclomatic complexity of 13. | //nopmd | acceptable complexity |
| gov/nist/secauto/metaschema/schemagen/xml/impl/schematype/XmlSimpleTypeUnion.java | The method 'generate(XmlGenerationState)' has a cyclomatic complexity of 10. | //nopmd | unavoidable complexity |
