PMD Results
The following document contains the results of PMD 6.55.0.
Violations By Priority
Priority 3
org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java
org/apache/johnzon/jsonb/JohnzonBuilder.java
org/apache/johnzon/jsonb/JohnzonJsonb.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'jsonObjectGenerator': resource specifications are implicitly final |
542 |
org/apache/johnzon/jsonb/JsonbAccessMode.java
org/apache/johnzon/jsonb/adapter/JsonbEnumAdapter.java
org/apache/johnzon/jsonb/extension/JsonValueWriter.java
Rule |
Violation |
Line |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final |
60 |
org/apache/johnzon/jsonb/factory/CdiJohnzonAdapterFactory.java
org/apache/johnzon/jsonb/order/PerHierarchyAndLexicographicalOrderFieldComparator.java
Priority 4
org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java
Rule |
Violation |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'jakarta.json.bind.config.PropertyVisibilityStrategy' due to existing import 'jakarta.json.bind.config.PropertyVisibilityStrategy' |
35 |
org/apache/johnzon/jsonb/JohnzonBuilder.java
Rule |
Violation |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Optional.ofNullable' due to existing static import 'java.util.Optional.ofNullable' |
239 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Optional.ofNullable' due to existing static import 'java.util.Optional.ofNullable' |
244 |
org/apache/johnzon/jsonb/JsonbAccessMode.java
org/apache/johnzon/jsonb/converter/JsonbDateConverterBase.java
Files
org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java
Rule |
Violation |
Priority |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'jakarta.json.bind.config.PropertyVisibilityStrategy' due to existing import 'jakarta.json.bind.config.PropertyVisibilityStrategy' |
4 |
35 |
EmptyCatchBlock |
Avoid empty catch blocks |
3 |
131–133 |
org/apache/johnzon/jsonb/JohnzonBuilder.java
Rule |
Violation |
Priority |
Line |
TooManyStaticImports |
Too many static imports may lead to messy code |
3 |
19–492 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Optional.ofNullable' due to existing static import 'java.util.Optional.ofNullable' |
4 |
239 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Optional.ofNullable' due to existing static import 'java.util.Optional.ofNullable' |
4 |
244 |
org/apache/johnzon/jsonb/JohnzonJsonb.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'jsonObjectGenerator': resource specifications are implicitly final |
3 |
542 |
org/apache/johnzon/jsonb/JsonbAccessMode.java
org/apache/johnzon/jsonb/adapter/JsonbEnumAdapter.java
Rule |
Violation |
Priority |
Line |
EmptyCatchBlock |
Avoid empty catch blocks |
3 |
85–87 |
org/apache/johnzon/jsonb/converter/JsonbDateConverterBase.java
org/apache/johnzon/jsonb/extension/JsonValueWriter.java
Rule |
Violation |
Priority |
Line |
UnnecessaryModifier |
Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final |
3 |
60 |
org/apache/johnzon/jsonb/factory/CdiJohnzonAdapterFactory.java
Rule |
Violation |
Priority |
Line |
EmptyCatchBlock |
Avoid empty catch blocks |
3 |
46–48 |
org/apache/johnzon/jsonb/order/PerHierarchyAndLexicographicalOrderFieldComparator.java