PMD Results
The following document contains the results of PMD 7.19.0.
Violations By Priority
Priority 3
gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java
| Rule | Violation | Line |
|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 245–255 |
| EnumComparison | Enums should be compared using == | 449 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 459 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 481 |
gov/nist/secauto/metaschema/model/testing/DeadlockDetectionExtension.java
| Rule | Violation | Line |
|---|---|---|
| UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 62 |
| InsufficientStringBufferDeclaration | StringBuilder has been initialized with size 16, but has at least 65 characters appended. | 68 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 69 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 69 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 70 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 70 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 70 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 71 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 71 |
| DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 75 |
| DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 75 |
| DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 77 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 81 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 81 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 82 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 82 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 85 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 88 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 90 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 93 |
| InsufficientStringBufferDeclaration | StringBuilder has been initialized with size 16, but has at least 84 characters appended. | 105 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 106 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 106 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 107 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 107 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 107 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 108 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 114 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 114 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 115 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 115 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 115 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 116 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 116 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 116 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 117 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 117 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 117 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 120 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 122 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 126 |
gov/nist/secauto/metaschema/model/testing/xml/xmlbeans/handler/FormatType.java
| Rule | Violation | Line |
|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 28–36 |
Files
gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 3 | 245–255 |
| EnumComparison | Enums should be compared using == | 3 | 449 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 459 |
| UnnecessaryWarningSuppression | Unnecessary PMD suppression comment | 3 | 481 |
gov/nist/secauto/metaschema/model/testing/DeadlockDetectionExtension.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UseLocaleWithCaseConversions | When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 3 | 62 |
| InsufficientStringBufferDeclaration | StringBuilder has been initialized with size 16, but has at least 65 characters appended. | 3 | 68 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 69 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 69 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 70 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 70 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 70 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 71 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 71 |
| DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 75 |
| DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 75 |
| DoNotUseThreads | To be compliant to J2EE, a webapp should not use any thread. | 3 | 77 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 81 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 81 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 82 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 82 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 85 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 88 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 90 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 93 |
| InsufficientStringBufferDeclaration | StringBuilder has been initialized with size 16, but has at least 84 characters appended. | 3 | 105 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 106 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 106 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 107 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 107 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 107 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 108 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 114 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 114 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 115 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 115 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 115 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 116 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 116 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 116 |
| ConsecutiveAppendsShouldReuse | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. | 3 | 117 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 117 |
| ConsecutiveLiteralAppends | StringBuffer (or StringBuilder).append is called 2 consecutive times with literals. Use a single append with a single combined String. | 3 | 117 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 120 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 122 |
| AppendCharacterWithChar | Avoid appending characters as strings in StringBuffer.append. | 3 | 126 |
gov/nist/secauto/metaschema/model/testing/xml/xmlbeans/handler/FormatType.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ExhaustiveSwitchHasDefault | The switch block is exhaustive even without the default case | 3 | 28–36 |
Suppressed Violations
| Filename | Rule message | Suppression type | Reason |
|---|---|---|---|
| gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java | Returning 'OPEN_OPTIONS_TRUNCATE' may expose an internal array. | @suppresswarnings | |
| gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java | Thrown exception does not preserve the stack trace of exception 'ex' on all code paths | //nopmd | - cause is relevant, exception is not |
| gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java | A value of 35 may denote a high amount of coupling within the class (threshold: 20) | @suppresswarnings | |
| gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java | Possible God Class (WMC=55, ATFD=36, TCC=8.772%) | @suppresswarnings | |
| gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java | Avoid catching Exception in try-catch block | @suppresswarnings | |
| gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java | Avoid catching Exception in try-catch block | @suppresswarnings | |
| gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java | Avoid catching Exception in try-catch block | @suppresswarnings | |
| gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java | Avoid catching Exception in try-catch block | @suppresswarnings | |
| gov/nist/secauto/metaschema/model/testing/AbstractTestSuite.java | To be compliant to J2EE, a webapp should not use any thread. | //nopmd | - this is not a webapp |
