PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

Johnzon :: Core - org/apache/johnzon/core/JohnzonJsonParser.java
Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 55–56
Johnzon :: Core - org/apache/johnzon/core/JsonArrayImpl.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 170
Johnzon :: Core - org/apache/johnzon/core/JsonChars.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'START_ARRAY': the field is declared in an interface type 66
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'START_OBJECT': the field is declared in an interface type 67
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'KEY_NAME': the field is declared in an interface type 68
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'VALUE_STRING': the field is declared in an interface type 69
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'VALUE_NUMBER': the field is declared in an interface type 70
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'VALUE_TRUE': the field is declared in an interface type 71
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'VALUE_FALSE': the field is declared in an interface type 72
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'VALUE_NULL': the field is declared in an interface type 73
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'END_OBJECT': the field is declared in an interface type 74
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'END_ARRAY': the field is declared in an interface type 75
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'COMMA_EVENT': the field is declared in an interface type 77
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'KEY_SEPARATOR_EVENT': the field is declared in an interface type 78
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'EVT_MAP': the field is declared in an interface type 80
Johnzon :: Core - org/apache/johnzon/core/JsonGeneratorImpl.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'UNICODE_PREFIX'. 549
UnusedPrivateField Avoid unused private fields such as 'UNICODE_PREFIX_HELPER'. 550
CollapsibleIfStatements These nested if statements could be combined 606–608
Johnzon :: Core - org/apache/johnzon/core/JsonObjectImpl.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 150
Johnzon :: Core - org/apache/johnzon/core/JsonStreamParserImpl.java
Rule Violation Line
EmptyControlStatement Empty while statement 665–667
EmptyControlStatement Empty while statement 822–824
Johnzon :: Core - org/apache/johnzon/core/Snippet.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'max'. 46
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'b': resource specifications are implicitly final 74
Johnzon :: JSON-B Extensions - org/apache/johnzon/jsonb/extras/polymorphism/Polymorphic.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–206
Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/DefaultPropertyVisibilityStrategy.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 131–133
Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/JohnzonBuilder.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–492
Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/JohnzonJsonb.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'jsonObjectGenerator': resource specifications are implicitly final 542
Johnzon :: JSON-B Implementation - 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
Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/adapter/JsonbEnumAdapter.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 85–87
Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/extension/JsonValueWriter.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 60
Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/factory/CdiJohnzonAdapterFactory.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 46–48
Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/order/PerHierarchyAndLexicographicalOrderFieldComparator.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 58–60
EmptyCatchBlock Avoid empty catch blocks 65–67
EmptyCatchBlock Avoid empty catch blocks 71–73
Johnzon :: JSON Logic - org/apache/johnzon/jsonlogic/JohnzonJsonLogic.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'cacheJsonMergePatches'. 61
Johnzon :: JSON Schema - org/apache/johnzon/jsonschema/generator/PojoGenerator.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–782
Johnzon :: JSON Schema - org/apache/johnzon/jsonschema/generator/SchemaProcessor.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–726
EmptyCatchBlock Avoid empty catch blocks 87–89
EmptyCatchBlock Avoid empty catch blocks 361–363
EmptyCatchBlock Avoid empty catch blocks 688–691
EmptyCatchBlock Avoid empty catch blocks 699–702
Johnzon :: Mapper - org/apache/johnzon/mapper/ExceptionMessages.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 17–109
Johnzon :: Mapper - org/apache/johnzon/mapper/JohnzonConverter.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–34
Johnzon :: Mapper - org/apache/johnzon/mapper/JohnzonCores.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 44–46
Johnzon :: Mapper - 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
Johnzon :: Mapper - 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
Johnzon :: Mapper - 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
Johnzon :: Mapper - org/apache/johnzon/mapper/Mappings.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'value'. 572
EmptyControlStatement Empty if statement 941–945
Johnzon :: Mapper - 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
Johnzon :: Mapper - org/apache/johnzon/mapper/access/FieldAndMethodAccessMode.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 156–158
EmptyCatchBlock Avoid empty catch blocks 169–171
Johnzon :: Mapper - 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
Johnzon :: Mapper - org/apache/johnzon/mapper/access/MethodAccessMode.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 77–79
Johnzon :: Mapper - org/apache/johnzon/mapper/reflection/Generics.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 95–100
Johnzon :: Mapper - org/apache/johnzon/mapper/reflection/Records.java
Rule Violation Line
EmptyCatchBlock Avoid empty catch blocks 35–37
Johnzon :: Maven Plugin - org/apache/johnzon/maven/plugin/ExampleToModelMojo.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 106
UnusedPrivateMethod Avoid unused private methods such as 'visit(JsonStructure,Visitor)'. 331
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'writer': resource specifications are implicitly final 347
Johnzon :: Maven Plugin - org/apache/johnzon/maven/plugin/JsonSchemaToPojoMojo.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 110
Johnzon :: Maven Plugin - org/apache/johnzon/maven/plugin/PojoToJsonSchemaMojo.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'loader': resource specifications are implicitly final 81
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'jsonb': resource specifications are implicitly final 82–84
Johnzon :: Support for OSGI Jaxrs Whiteboard - org/apache/johnzon/osgi/Activator.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 20–189
Johnzon :: Support for OSGI Jaxrs Whiteboard - org/apache/johnzon/osgi/Config.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'CONFIG_PID': the field is declared in an annotation type 33
Johnzon :: Support for OSGI Jaxrs Whiteboard - org/apache/johnzon/osgi/cdi/package-info.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 20–41
Johnzon :: WebSocket - org/apache/johnzon/websocket/jsr/JsrObjectDecoder.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'factory'. 28
Johnzon :: WebSocket - org/apache/johnzon/websocket/jsr/JsrStructureDecoder.java
Rule Violation Line
UnusedPrivateField Avoid unused private fields such as 'factory'. 28

Priority 4

Johnzon :: Core - org/apache/johnzon/core/JsonDoubleImpl.java
Rule Violation Line
UselessParentheses Useless parentheses. 121
Johnzon :: Core - org/apache/johnzon/core/JsonGeneratorImpl.java
Rule Violation Line
UselessParentheses Useless parentheses. 540
UselessParentheses Useless parentheses. 540
UselessParentheses Useless parentheses. 569
UselessParentheses Useless parentheses. 570
Johnzon :: Core - org/apache/johnzon/core/JsonLongImpl.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.ArithmeticException' due to existing implicit import 'java.lang.*' 53
Johnzon :: Core - org/apache/johnzon/core/JsonObjectImpl.java
Rule Violation Line
UselessParentheses Useless parentheses. 160–161
UselessParentheses Useless parentheses. 162
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Map.Entry' due to existing import 'java.util.Map' 176
Johnzon :: Core - org/apache/johnzon/core/JsonProviderImpl.java
Rule Violation Line
UselessParentheses Useless parentheses. 89
UselessParentheses Useless parentheses. 94
UselessParentheses Useless parentheses. 109
UselessParentheses Useless parentheses. 124
UselessParentheses Useless parentheses. 195
Johnzon :: Core - org/apache/johnzon/core/JsonStreamParserImpl.java
Rule Violation Line
UselessParentheses Useless parentheses. 278
UselessParentheses Useless parentheses. 279
UselessParentheses Useless parentheses. 280
UselessParentheses Useless parentheses. 713
UselessParentheses Useless parentheses. 724–727
UselessParentheses Useless parentheses. 748
UselessParentheses Useless parentheses. 844
UselessParentheses Useless parentheses. 1036–1037
UselessParentheses Useless parentheses. 1037
Johnzon :: Core - org/apache/johnzon/core/RFC4627AwareInputStreamReader.java
Rule Violation Line
UselessParentheses Useless parentheses. 102
UselessParentheses Useless parentheses. 103
UselessParentheses Useless parentheses. 107
Johnzon :: Core - org/apache/johnzon/core/util/ArrayUtil.java
Rule Violation Line
UselessParentheses Useless parentheses. 157
UselessParentheses Useless parentheses. 164
UselessParentheses Useless parentheses. 169
UselessParentheses Useless parentheses. 174
UselessParentheses Useless parentheses. 179
UselessParentheses Useless parentheses. 184
UselessParentheses Useless parentheses. 189
UselessParentheses Useless parentheses. 194
UselessParentheses Useless parentheses. 199
Johnzon :: JSON-B Implementation - 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
Johnzon :: JSON-B Implementation - 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
Johnzon :: JSON-B Implementation - 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
Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/converter/JsonbDateConverterBase.java
Rule Violation Line
UselessParentheses Useless parentheses. 32–33
Johnzon :: JSON Logic - org/apache/johnzon/jsonlogic/JohnzonJsonLogic.java
Rule Violation Line
UselessParentheses Useless parentheses. 689
Johnzon :: JSON Schema - org/apache/johnzon/jsonschema/JsonSchemaValidatorFactory.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Optional.ofNullable' due to existing static import 'java.util.Optional.ofNullable' 202
Johnzon :: JSON Schema - org/apache/johnzon/jsonschema/generator/PojoGenerator.java
Rule Violation Line
UselessParentheses Useless parentheses. 88–97
UselessParentheses Useless parentheses. 98–162
Johnzon :: JSON Schema - org/apache/johnzon/jsonschema/generator/SchemaProcessor.java
Rule Violation Line
UselessParentheses Useless parentheses. 457–458
Johnzon :: Mapper - 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
Johnzon :: Mapper - 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
Johnzon :: Mapper - 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
Johnzon :: Mapper - org/apache/johnzon/mapper/access/FieldAccessMode.java
Rule Violation Line
UselessParentheses Useless parentheses. 76
UselessParentheses Useless parentheses. 93
Johnzon :: Mapper - org/apache/johnzon/mapper/access/FieldAndMethodAccessMode.java
Rule Violation Line
UselessParentheses Useless parentheses. 242–243
Johnzon :: Mapper - org/apache/johnzon/mapper/map/LazyConverterMap.java
Rule Violation Line
UselessParentheses Useless parentheses. 607
UselessParentheses Useless parentheses. 608
Johnzon :: Mapper - 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
Johnzon :: Maven Plugin - org/apache/johnzon/maven/plugin/ExampleToModelMojo.java
Rule Violation Line
UselessParentheses Useless parentheses. 310
Johnzon :: Support for OSGI Jaxrs Whiteboard - org/apache/johnzon/osgi/cdi/RegisterCdiExtension.java
Rule Violation Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.johnzon.osgi.cdi.CdiExtensionFactory' due to existing same package import 'org.apache.johnzon.osgi.cdi.*' 45

Files

Johnzon :: Core - org/apache/johnzon/core/JohnzonJsonParser.java

Rule Violation Priority Line
SimplifiedTernary Ternary operators that can be simplified with || or && 3 55–56

Johnzon :: Core - org/apache/johnzon/core/JsonArrayImpl.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 3 170

Johnzon :: Core - org/apache/johnzon/core/JsonChars.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'START_ARRAY': the field is declared in an interface type 3 66
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'START_OBJECT': the field is declared in an interface type 3 67
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'KEY_NAME': the field is declared in an interface type 3 68
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'VALUE_STRING': the field is declared in an interface type 3 69
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'VALUE_NUMBER': the field is declared in an interface type 3 70
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'VALUE_TRUE': the field is declared in an interface type 3 71
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'VALUE_FALSE': the field is declared in an interface type 3 72
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'VALUE_NULL': the field is declared in an interface type 3 73
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'END_OBJECT': the field is declared in an interface type 3 74
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'END_ARRAY': the field is declared in an interface type 3 75
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'COMMA_EVENT': the field is declared in an interface type 3 77
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'KEY_SEPARATOR_EVENT': the field is declared in an interface type 3 78
UnnecessaryModifier Unnecessary modifiers 'static final' on field 'EVT_MAP': the field is declared in an interface type 3 80

Johnzon :: Core - org/apache/johnzon/core/JsonDoubleImpl.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 121

Johnzon :: Core - org/apache/johnzon/core/JsonGeneratorImpl.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 540
UselessParentheses Useless parentheses. 4 540
UnusedPrivateField Avoid unused private fields such as 'UNICODE_PREFIX'. 3 549
UnusedPrivateField Avoid unused private fields such as 'UNICODE_PREFIX_HELPER'. 3 550
UselessParentheses Useless parentheses. 4 569
UselessParentheses Useless parentheses. 4 570
CollapsibleIfStatements These nested if statements could be combined 3 606–608

Johnzon :: Core - org/apache/johnzon/core/JsonLongImpl.java

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

Johnzon :: Core - org/apache/johnzon/core/JsonObjectImpl.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 3 150
UselessParentheses Useless parentheses. 4 160–161
UselessParentheses Useless parentheses. 4 162
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.util.Map.Entry' due to existing import 'java.util.Map' 4 176

Johnzon :: Core - org/apache/johnzon/core/JsonProviderImpl.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 89
UselessParentheses Useless parentheses. 4 94
UselessParentheses Useless parentheses. 4 109
UselessParentheses Useless parentheses. 4 124
UselessParentheses Useless parentheses. 4 195

Johnzon :: Core - org/apache/johnzon/core/JsonStreamParserImpl.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 278
UselessParentheses Useless parentheses. 4 279
UselessParentheses Useless parentheses. 4 280
EmptyControlStatement Empty while statement 3 665–667
UselessParentheses Useless parentheses. 4 713
UselessParentheses Useless parentheses. 4 724–727
UselessParentheses Useless parentheses. 4 748
EmptyControlStatement Empty while statement 3 822–824
UselessParentheses Useless parentheses. 4 844
UselessParentheses Useless parentheses. 4 1036–1037
UselessParentheses Useless parentheses. 4 1037

Johnzon :: Core - org/apache/johnzon/core/RFC4627AwareInputStreamReader.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 102
UselessParentheses Useless parentheses. 4 103
UselessParentheses Useless parentheses. 4 107

Johnzon :: Core - org/apache/johnzon/core/Snippet.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'max'. 3 46
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'b': resource specifications are implicitly final 3 74

Johnzon :: Core - org/apache/johnzon/core/util/ArrayUtil.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 157
UselessParentheses Useless parentheses. 4 164
UselessParentheses Useless parentheses. 4 169
UselessParentheses Useless parentheses. 4 174
UselessParentheses Useless parentheses. 4 179
UselessParentheses Useless parentheses. 4 184
UselessParentheses Useless parentheses. 4 189
UselessParentheses Useless parentheses. 4 194
UselessParentheses Useless parentheses. 4 199

Johnzon :: JSON-B Extensions - org/apache/johnzon/jsonb/extras/polymorphism/Polymorphic.java

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

Johnzon :: JSON-B Implementation - 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

Johnzon :: JSON-B Implementation - 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

Johnzon :: JSON-B Implementation - 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

Johnzon :: JSON-B Implementation - 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

Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/adapter/JsonbEnumAdapter.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 85–87

Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/converter/JsonbDateConverterBase.java

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

Johnzon :: JSON-B Implementation - 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

Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/factory/CdiJohnzonAdapterFactory.java

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

Johnzon :: JSON-B Implementation - org/apache/johnzon/jsonb/order/PerHierarchyAndLexicographicalOrderFieldComparator.java

Rule Violation Priority Line
EmptyCatchBlock Avoid empty catch blocks 3 58–60
EmptyCatchBlock Avoid empty catch blocks 3 65–67
EmptyCatchBlock Avoid empty catch blocks 3 71–73

Johnzon :: JSON Logic - org/apache/johnzon/jsonlogic/JohnzonJsonLogic.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'cacheJsonMergePatches'. 3 61
UselessParentheses Useless parentheses. 4 689

Johnzon :: JSON Schema - org/apache/johnzon/jsonschema/JsonSchemaValidatorFactory.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'Optional.ofNullable' due to existing static import 'java.util.Optional.ofNullable' 4 202

Johnzon :: JSON Schema - org/apache/johnzon/jsonschema/generator/PojoGenerator.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19–782
UselessParentheses Useless parentheses. 4 88–97
UselessParentheses Useless parentheses. 4 98–162

Johnzon :: JSON Schema - org/apache/johnzon/jsonschema/generator/SchemaProcessor.java

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19–726
EmptyCatchBlock Avoid empty catch blocks 3 87–89
EmptyCatchBlock Avoid empty catch blocks 3 361–363
UselessParentheses Useless parentheses. 4 457–458
EmptyCatchBlock Avoid empty catch blocks 3 688–691
EmptyCatchBlock Avoid empty catch blocks 3 699–702

Johnzon :: Mapper - org/apache/johnzon/mapper/ExceptionMessages.java

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

Johnzon :: Mapper - org/apache/johnzon/mapper/JohnzonConverter.java

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

Johnzon :: Mapper - org/apache/johnzon/mapper/JohnzonCores.java

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

Johnzon :: Mapper - 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

Johnzon :: Mapper - 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

Johnzon :: Mapper - 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

Johnzon :: Mapper - 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

Johnzon :: Mapper - 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

Johnzon :: Mapper - org/apache/johnzon/mapper/access/FieldAccessMode.java

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

Johnzon :: Mapper - 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

Johnzon :: Mapper - 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

Johnzon :: Mapper - org/apache/johnzon/mapper/access/MethodAccessMode.java

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

Johnzon :: Mapper - org/apache/johnzon/mapper/map/LazyConverterMap.java

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

Johnzon :: Mapper - 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

Johnzon :: Mapper - org/apache/johnzon/mapper/reflection/Generics.java

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

Johnzon :: Mapper - org/apache/johnzon/mapper/reflection/Records.java

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

Johnzon :: Maven Plugin - org/apache/johnzon/maven/plugin/ExampleToModelMojo.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 106
UselessParentheses Useless parentheses. 4 310
UnusedPrivateMethod Avoid unused private methods such as 'visit(JsonStructure,Visitor)'. 3 331
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'writer': resource specifications are implicitly final 3 347

Johnzon :: Maven Plugin - org/apache/johnzon/maven/plugin/JsonSchemaToPojoMojo.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 110

Johnzon :: Maven Plugin - org/apache/johnzon/maven/plugin/PojoToJsonSchemaMojo.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'loader': resource specifications are implicitly final 3 81
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'jsonb': resource specifications are implicitly final 3 82–84

Johnzon :: Support for OSGI Jaxrs Whiteboard - org/apache/johnzon/osgi/Activator.java

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

Johnzon :: Support for OSGI Jaxrs Whiteboard - org/apache/johnzon/osgi/Config.java

Rule Violation Priority Line
UnnecessaryModifier Unnecessary modifiers 'public static final' on field 'CONFIG_PID': the field is declared in an annotation type 3 33

Johnzon :: Support for OSGI Jaxrs Whiteboard - org/apache/johnzon/osgi/cdi/RegisterCdiExtension.java

Rule Violation Priority Line
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'org.apache.johnzon.osgi.cdi.CdiExtensionFactory' due to existing same package import 'org.apache.johnzon.osgi.cdi.*' 4 45

Johnzon :: Support for OSGI Jaxrs Whiteboard - org/apache/johnzon/osgi/cdi/package-info.java

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

Johnzon :: WebSocket - org/apache/johnzon/websocket/jsr/JsrObjectDecoder.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'factory'. 3 28

Johnzon :: WebSocket - org/apache/johnzon/websocket/jsr/JsrStructureDecoder.java

Rule Violation Priority Line
UnusedPrivateField Avoid unused private fields such as 'factory'. 3 28