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
CollapsibleIfStatements These nested if statements could be combined 609–611
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'. 45
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'b': resource specifications are implicitly final 73
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–1291
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)'. 921
UnusedPrivateMethod Avoid unused private methods such as 'isTransient(DecoratedType,PropertyVisibilityStrategy,Class,boolean)'. 926
CollapsibleIfStatements These nested if statements could be combined 987–997
CollapsibleIfStatements These nested if statements could be combined 1107–1118
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 116
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 126
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'w': resource specifications are implicitly final 169
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 181
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 271
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 277
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 283–284
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 290
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 304
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 310
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 316
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 322
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 328
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 334
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 340
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 346
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 352
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 358
Johnzon :: Mapper - org/apache/johnzon/mapper/MappingGeneratorImpl.java
Rule Violation Line
EmptyControlStatement Empty if statement 74–95
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–1256
UnusedFormalParameter Avoid unused constructor parameters such as 'jsonPointers'. 89
CollapsibleIfStatements These nested if statements could be combined 333–336
EmptyCatchBlock Avoid empty catch blocks 396–398
CollapsibleIfStatements These nested if statements could be combined 525–529
CollapsibleIfStatements These nested if statements could be combined 526–528
CollapsibleIfStatements These nested if statements could be combined 532–548
EmptyCatchBlock Avoid empty catch blocks 1152–1154
Johnzon :: Mapper - org/apache/johnzon/mapper/Mappings.java
Rule Violation Line
UnusedFormalParameter Avoid unused method parameters such as 'value'. 572
EmptyControlStatement Empty if statement 935–939
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 75–77
Johnzon :: Mapper - org/apache/johnzon/mapper/map/LazyConverterMap.java
Rule Violation Line
TooManyStaticImports Too many static imports may lead to messy code 19–647
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 31–33
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. 538
UselessParentheses Useless parentheses. 538
UselessParentheses Useless parentheses. 572
UselessParentheses Useless parentheses. 573
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. 932
UselessParentheses Useless parentheses. 1229–1230
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' 201
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. 116
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. 467
UselessParentheses Useless parentheses. 467
UselessParentheses Useless parentheses. 586
UselessParentheses Useless parentheses. 595
UselessParentheses Useless parentheses. 751
Johnzon :: Mapper - org/apache/johnzon/mapper/MappingParserImpl.java
Rule Violation Line
UselessParentheses Useless parentheses. 123
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.NULL' due to existing static import 'jakarta.json.JsonValue.ValueType.NULL' 618
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.TRUE' due to existing static import 'jakarta.json.JsonValue.ValueType.TRUE' 623
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.FALSE' due to existing static import 'jakarta.json.JsonValue.ValueType.FALSE' 626
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.STRING' due to existing static import 'jakarta.json.JsonValue.ValueType.STRING' 634
UselessParentheses Useless parentheses. 634
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.STRING' due to existing static import 'jakarta.json.JsonValue.ValueType.STRING' 637
UselessParentheses Useless parentheses. 637
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.TRUE' due to existing static import 'jakarta.json.JsonValue.ValueType.TRUE' 642
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.FALSE' due to existing static import 'jakarta.json.JsonValue.ValueType.FALSE' 645
UselessParentheses Useless parentheses. 657
UselessParentheses Useless parentheses. 667
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.ArithmeticException' due to existing implicit import 'java.lang.*' 720
UselessParentheses Useless parentheses. 1250–1251
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. 742
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. 625
UselessParentheses Useless parentheses. 626
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 538
UselessParentheses Useless parentheses. 4 538
UselessParentheses Useless parentheses. 4 572
UselessParentheses Useless parentheses. 4 573
CollapsibleIfStatements These nested if statements could be combined 3 609–611

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 45
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'b': resource specifications are implicitly final 3 73

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–1291
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 921
UnusedPrivateMethod Avoid unused private methods such as 'isTransient(DecoratedType,PropertyVisibilityStrategy,Class,boolean)'. 3 926
UselessParentheses Useless parentheses. 4 932
CollapsibleIfStatements These nested if statements could be combined 3 987–997
CollapsibleIfStatements These nested if statements could be combined 3 1107–1118
UselessParentheses Useless parentheses. 4 1229–1230

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 201

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 116
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 3 126
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'w': resource specifications are implicitly final 3 169
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 3 181
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 271
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 277
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 283–284
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 290
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 304
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 310
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 316
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 322
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 328
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 334
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 340
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 346
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 352
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'reader': resource specifications are implicitly final 3 358

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

Rule Violation Priority Line
EmptyControlStatement Empty if statement 3 74–95
UselessParentheses Useless parentheses. 4 116
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 467
UselessParentheses Useless parentheses. 4 467
UselessParentheses Useless parentheses. 4 586
UselessParentheses Useless parentheses. 4 595
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–1256
UnusedFormalParameter Avoid unused constructor parameters such as 'jsonPointers'. 3 89
UselessParentheses Useless parentheses. 4 123
CollapsibleIfStatements These nested if statements could be combined 3 333–336
EmptyCatchBlock Avoid empty catch blocks 3 396–398
CollapsibleIfStatements These nested if statements could be combined 3 525–529
CollapsibleIfStatements These nested if statements could be combined 3 526–528
CollapsibleIfStatements These nested if statements could be combined 3 532–548
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.NULL' due to existing static import 'jakarta.json.JsonValue.ValueType.NULL' 4 618
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.TRUE' due to existing static import 'jakarta.json.JsonValue.ValueType.TRUE' 4 623
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.FALSE' due to existing static import 'jakarta.json.JsonValue.ValueType.FALSE' 4 626
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.STRING' due to existing static import 'jakarta.json.JsonValue.ValueType.STRING' 4 634
UselessParentheses Useless parentheses. 4 634
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.STRING' due to existing static import 'jakarta.json.JsonValue.ValueType.STRING' 4 637
UselessParentheses Useless parentheses. 4 637
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.TRUE' due to existing static import 'jakarta.json.JsonValue.ValueType.TRUE' 4 642
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'JsonValue.ValueType.FALSE' due to existing static import 'jakarta.json.JsonValue.ValueType.FALSE' 4 645
UselessParentheses Useless parentheses. 4 657
UselessParentheses Useless parentheses. 4 667
UnnecessaryFullyQualifiedName Unnecessary use of fully qualified name 'java.lang.ArithmeticException' due to existing implicit import 'java.lang.*' 4 720
EmptyCatchBlock Avoid empty catch blocks 3 1152–1154
UselessParentheses Useless parentheses. 4 1250–1251

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 742
EmptyControlStatement Empty if statement 3 935–939

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 75–77

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

Rule Violation Priority Line
TooManyStaticImports Too many static imports may lead to messy code 3 19–647
UselessParentheses Useless parentheses. 4 625
UselessParentheses Useless parentheses. 4 626

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 31–33

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