PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/apache/johnzon/mapper/ExceptionMessages.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17–109
org/apache/johnzon/mapper/JohnzonConverter.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–34
org/apache/johnzon/mapper/JohnzonCores.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 44–46
org/apache/johnzon/mapper/Mapper.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 118
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 128
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'w': resource specifications are implicitly final 171
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 183
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 273
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 279
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 285–286
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 292
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 306
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 312
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 318
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 324
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 330
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 336
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 342
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 348
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 354
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 360
org/apache/johnzon/mapper/MappingGeneratorImpl.java
Rule Violation Line
EmptyControlStatement Empty if statement 68–90
UnusedPrivateMethod Avoid unused private methods such as 'isInJsRange(Number)'. 749
org/apache/johnzon/mapper/MappingParserImpl.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–1299
UnusedFormalParameter Avoid unused constructor parameters such as 'jsonPointers'. 89
CollapsibleIfStatements These nested if statements could be combined 362–365
EmptyCatchBlock Avoid empty catch blocks 425–427
CollapsibleIfStatements These nested if statements could be combined 558–562
CollapsibleIfStatements These nested if statements could be combined 559–561
CollapsibleIfStatements These nested if statements could be combined 565–581
EmptyCatchBlock Avoid empty catch blocks 1189–1191
org/apache/johnzon/mapper/Mappings.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'value'. 572
EmptyControlStatement Empty if statement 941–945
org/apache/johnzon/mapper/access/BaseAccessMode.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–382
CollapsibleIfStatements These nested if statements could be combined 288–296
org/apache/johnzon/mapper/access/FieldAndMethodAccessMode.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 156–158
EmptyCatchBlock Avoid empty catch blocks 169–171
org/apache/johnzon/mapper/access/KnownNotOpenedJavaTypesAccessMode.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'clazz'. 53
UnusedFormalParameter Avoid unused method parameters such as 'clazz'. 61
UnusedFormalParameter Avoid unused method parameters such as 'clazz'. 69
org/apache/johnzon/mapper/access/MethodAccessMode.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 77–79
org/apache/johnzon/mapper/reflection/Generics.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 95–100
org/apache/johnzon/mapper/reflection/Records.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 35–37

Priority 4

org/apache/johnzon/mapper/MappingGeneratorImpl.java
Rule Violation Line
UselessParentheses Useless parentheses. 111
UselessParentheses Useless parentheses. 453
UselessParentheses Useless parentheses. 453
UselessParentheses Useless parentheses. 455
UselessParentheses Useless parentheses. 455
UselessParentheses Useless parentheses. 458
UselessParentheses Useless parentheses. 458
UselessParentheses Useless parentheses. 466
UselessParentheses Useless parentheses. 466
UselessParentheses Useless parentheses. 584
UselessParentheses Useless parentheses. 593
UselessParentheses Useless parentheses. 751
org/apache/johnzon/mapper/MappingParserImpl.java
Rule Violation Line
UselessParentheses Useless parentheses. 152
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.NULL' due to existing static import 'jakarta.json.JsonValue.ValueType.NULL' 638
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.TRUE' due to existing static import 'jakarta.json.JsonValue.ValueType.TRUE' 643
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.FALSE' due to existing static import 'jakarta.json.JsonValue.ValueType.FALSE' 646
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.STRING' due to existing static import 'jakarta.json.JsonValue.ValueType.STRING' 654
UselessParentheses Useless parentheses. 654
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.STRING' due to existing static import 'jakarta.json.JsonValue.ValueType.STRING' 657
UselessParentheses Useless parentheses. 657
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.TRUE' due to existing static import 'jakarta.json.JsonValue.ValueType.TRUE' 662
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.FALSE' due to existing static import 'jakarta.json.JsonValue.ValueType.FALSE' 665
UselessParentheses Useless parentheses. 677
UselessParentheses Useless parentheses. 687
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.ArithmeticException' due to existing implicit import 'java.lang.*' 740
UselessParentheses Useless parentheses. 1293–1294
org/apache/johnzon/mapper/Mappings.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Generics.resolve' due to existing static import 'org.apache.johnzon.mapper.reflection.Generics.resolve' 368
UselessParentheses Useless parentheses. 538–539
UselessParentheses Useless parentheses. 591
UselessParentheses Useless parentheses. 615
UselessParentheses Useless parentheses. 616
UselessParentheses Useless parentheses. 617
UselessParentheses Useless parentheses. 618
UselessParentheses Useless parentheses. 619
UselessParentheses Useless parentheses. 748
org/apache/johnzon/mapper/access/FieldAccessMode.java
Rule Violation Line
UselessParentheses Useless parentheses. 76
UselessParentheses Useless parentheses. 93
org/apache/johnzon/mapper/access/FieldAndMethodAccessMode.java
Rule Violation Line
UselessParentheses Useless parentheses. 242–243
org/apache/johnzon/mapper/map/LazyConverterMap.java
Rule Violation Line
UselessParentheses Useless parentheses. 607
UselessParentheses Useless parentheses. 608
org/apache/johnzon/mapper/number/Validator.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.ArithmeticException' due to existing implicit import 'java.lang.*' 32

Files

org/apache/johnzon/mapper/ExceptionMessages.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 17–109

org/apache/johnzon/mapper/JohnzonConverter.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19–34

org/apache/johnzon/mapper/JohnzonCores.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 44–46

org/apache/johnzon/mapper/Mapper.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 3 118
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 3 128
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'w': resource specifications are implicitly final 3 171
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 3 183
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 273
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 279
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 285–286
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 292
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 306
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 312
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 318
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 324
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 330
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 336
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 342
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 348
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 354
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 360

org/apache/johnzon/mapper/MappingGeneratorImpl.java

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 68–90
UselessParentheses Useless parentheses. 4 111
UselessParentheses Useless parentheses. 4 453
UselessParentheses Useless parentheses. 4 453
UselessParentheses Useless parentheses. 4 455
UselessParentheses Useless parentheses. 4 455
UselessParentheses Useless parentheses. 4 458
UselessParentheses Useless parentheses. 4 458
UselessParentheses Useless parentheses. 4 466
UselessParentheses Useless parentheses. 4 466
UselessParentheses Useless parentheses. 4 584
UselessParentheses Useless parentheses. 4 593
UnusedPrivateMethod Avoid unused private methods such as 'isInJsRange(Number)'. 3 749
UselessParentheses Useless parentheses. 4 751

org/apache/johnzon/mapper/MappingParserImpl.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19–1299
UnusedFormalParameter Avoid unused constructor parameters such as 'jsonPointers'. 3 89
UselessParentheses Useless parentheses. 4 152
CollapsibleIfStatements These nested if statements could be combined 3 362–365
EmptyCatchBlock Avoid empty catch blocks 3 425–427
CollapsibleIfStatements These nested if statements could be combined 3 558–562
CollapsibleIfStatements These nested if statements could be combined 3 559–561
CollapsibleIfStatements These nested if statements could be combined 3 565–581
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.NULL' due to existing static import 'jakarta.json.JsonValue.ValueType.NULL' 4 638
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.TRUE' due to existing static import 'jakarta.json.JsonValue.ValueType.TRUE' 4 643
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.FALSE' due to existing static import 'jakarta.json.JsonValue.ValueType.FALSE' 4 646
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.STRING' due to existing static import 'jakarta.json.JsonValue.ValueType.STRING' 4 654
UselessParentheses Useless parentheses. 4 654
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.STRING' due to existing static import 'jakarta.json.JsonValue.ValueType.STRING' 4 657
UselessParentheses Useless parentheses. 4 657
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.TRUE' due to existing static import 'jakarta.json.JsonValue.ValueType.TRUE' 4 662
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.FALSE' due to existing static import 'jakarta.json.JsonValue.ValueType.FALSE' 4 665
UselessParentheses Useless parentheses. 4 677
UselessParentheses Useless parentheses. 4 687
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.ArithmeticException' due to existing implicit import 'java.lang.*' 4 740
EmptyCatchBlock Avoid empty catch blocks 3 1189–1191
UselessParentheses Useless parentheses. 4 1293–1294

org/apache/johnzon/mapper/Mappings.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Generics.resolve' due to existing static import 'org.apache.johnzon.mapper.reflection.Generics.resolve' 4 368
UselessParentheses Useless parentheses. 4 538–539
UnusedFormalParameter Avoid unused method parameters such as 'value'. 3 572
UselessParentheses Useless parentheses. 4 591
UselessParentheses Useless parentheses. 4 615
UselessParentheses Useless parentheses. 4 616
UselessParentheses Useless parentheses. 4 617
UselessParentheses Useless parentheses. 4 618
UselessParentheses Useless parentheses. 4 619
UselessParentheses Useless parentheses. 4 748
EmptyControlStatement Empty if statement 3 941–945

org/apache/johnzon/mapper/access/BaseAccessMode.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19–382
CollapsibleIfStatements These nested if statements could be combined 3 288–296

org/apache/johnzon/mapper/access/FieldAccessMode.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 76
UselessParentheses Useless parentheses. 4 93

org/apache/johnzon/mapper/access/FieldAndMethodAccessMode.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 156–158
EmptyCatchBlock Avoid empty catch blocks 3 169–171
UselessParentheses Useless parentheses. 4 242–243

org/apache/johnzon/mapper/access/KnownNotOpenedJavaTypesAccessMode.java

Rule Violation Priority Line
UnusedFormalParameter Avoid unused method parameters such as 'clazz'. 3 53
UnusedFormalParameter Avoid unused method parameters such as 'clazz'. 3 61
UnusedFormalParameter Avoid unused method parameters such as 'clazz'. 3 69

org/apache/johnzon/mapper/access/MethodAccessMode.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 77–79

org/apache/johnzon/mapper/map/LazyConverterMap.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 607
UselessParentheses Useless parentheses. 4 608

org/apache/johnzon/mapper/number/Validator.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.ArithmeticException' due to existing implicit import 'java.lang.*' 4 32

org/apache/johnzon/mapper/reflection/Generics.java

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 95–100

org/apache/johnzon/mapper/reflection/Records.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 35–37