PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 131–133
org/apache/johnzon/jsonb/JohnzonBuilder.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–492
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
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–1311
CollapsibleIfStatements These nested if statements could be combined 310–321
UnusedPrivateMethod Avoid unused private methods such as 'validateAnnotationsOnTransientField(DecoratedType)'. 714
UnusedPrivateMethod Avoid unused private methods such as 'isOptionalArray(DecoratedType)'. 934
UnusedPrivateMethod Avoid unused private methods such as 'isTransient(DecoratedType,PropertyVisibilityStrategy,Class,boolean)'. 939
CollapsibleIfStatements These nested if statements could be combined 1000–1010
CollapsibleIfStatements These nested if statements could be combined 1128–1139
org/apache/johnzon/jsonb/adapter/JsonbEnumAdapter.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 85–87
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
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 46–48

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
Rule Violation Line
UselessParentheses Useless parentheses. 189
UselessParentheses Useless parentheses. 210
UselessParentheses Useless parentheses. 257–261
UselessParentheses Useless parentheses. 393–399
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Optional.ofNullable' due to existing static import 'java.util.Optional.ofNullable' 757
UselessParentheses Useless parentheses. 945
UselessParentheses Useless parentheses. 1249–1250
org/apache/johnzon/jsonb/converter/JsonbDateConverterBase.java
Rule Violation Line
UselessParentheses Useless parentheses. 32–33

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

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19–1311
UselessParentheses Useless parentheses. 4 189
UselessParentheses Useless parentheses. 4 210
UselessParentheses Useless parentheses. 4 257–261
CollapsibleIfStatements These nested if statements could be combined 3 310–321
UselessParentheses Useless parentheses. 4 393–399
UnusedPrivateMethod Avoid unused private methods such as 'validateAnnotationsOnTransientField(DecoratedType)'. 3 714
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Optional.ofNullable' due to existing static import 'java.util.Optional.ofNullable' 4 757
UnusedPrivateMethod Avoid unused private methods such as 'isOptionalArray(DecoratedType)'. 3 934
UnusedPrivateMethod Avoid unused private methods such as 'isTransient(DecoratedType,PropertyVisibilityStrategy,Class,boolean)'. 3 939
UselessParentheses Useless parentheses. 4 945
CollapsibleIfStatements These nested if statements could be combined 3 1000–1010
CollapsibleIfStatements These nested if statements could be combined 3 1128–1139
UselessParentheses Useless parentheses. 4 1249–1250

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 32–33

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