PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 3
civitas/crypto/CryptoBase.java
| Rule | Violation | Line |
|---|---|---|
| ServiceClassField | Services have only @Autowired fields | 24 |
| ServiceClassField | Services have only @Autowired fields | 25 |
| ServiceClassField | Services have only @Autowired fields | 26 |
| AvoidFieldNameMatchingMethodName | Field getPublicKeyGenerator has the same name as a method | 29 |
| AvoidFieldNameMatchingMethodName | Field getSharedKeyGenerator has the same name as a method | 32 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 41 |
| ServiceClassMethods | Services have only public apply method | 46 |
| ServiceClassMethods | Services have only public apply method | 50 |
| ServiceClassMethods | Services have only public apply method | 58 |
| ServiceClassMethods | Services have only public apply method | 62 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 69 |
| ServiceClassMethods | Services have only public apply method | 74 |
| ServiceClassMethods | Services have only public apply method | 78 |
| ServiceClassMethods | Services have only public apply method | 82 |
civitas/crypto/GetPublicKeyGeneratorService.java
| Rule | Violation | Line |
|---|---|---|
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 11 |
| ServiceClassField | Services have only @Autowired fields | 11 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 24 |
civitas/crypto/GetSharedKeyGeneratorService.java
| Rule | Violation | Line |
|---|---|---|
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 14 |
| ServiceClassField | Services have only @Autowired fields | 14 |
civitas/crypto/messagedigest/CryptoHash.java
| Rule | Violation | Line |
|---|---|---|
| AvoidMessageDigestField | You shouldnt declare field of MessageDigest type, because unsynchronized access could cause problems | 21 |
| ServiceClassField | Services have only @Autowired fields | 21 |
Files
civitas/crypto/CryptoBase.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| ServiceClassField | Services have only @Autowired fields | 3 | 24 |
| ServiceClassField | Services have only @Autowired fields | 3 | 25 |
| ServiceClassField | Services have only @Autowired fields | 3 | 26 |
| AvoidFieldNameMatchingMethodName | Field getPublicKeyGenerator has the same name as a method | 3 | 29 |
| AvoidFieldNameMatchingMethodName | Field getSharedKeyGenerator has the same name as a method | 3 | 32 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 41 |
| ServiceClassMethods | Services have only public apply method | 3 | 46 |
| ServiceClassMethods | Services have only public apply method | 3 | 50 |
| ServiceClassMethods | Services have only public apply method | 3 | 58 |
| ServiceClassMethods | Services have only public apply method | 3 | 62 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 69 |
| ServiceClassMethods | Services have only public apply method | 3 | 74 |
| ServiceClassMethods | Services have only public apply method | 3 | 78 |
| ServiceClassMethods | Services have only public apply method | 3 | 82 |
civitas/crypto/GetPublicKeyGeneratorService.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 11 |
| ServiceClassField | Services have only @Autowired fields | 3 | 11 |
| AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 24 |
civitas/crypto/GetSharedKeyGeneratorService.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UseConcurrentHashMap | If you run in Java5 or newer and have concurrent access, you should use the ConcurrentHashMap implementation | 3 | 14 |
| ServiceClassField | Services have only @Autowired fields | 3 | 14 |
civitas/crypto/messagedigest/CryptoHash.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| AvoidMessageDigestField | You shouldnt declare field of MessageDigest type, because unsynchronized access could cause problems | 3 | 21 |
| ServiceClassField | Services have only @Autowired fields | 3 | 21 |
