PMD Results

The following document contains the results of PMD 6.55.0.

Violations By Priority

Priority 3

org/apache/johnzon/core/JohnzonJsonParser.java
Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 55–56
org/apache/johnzon/core/JsonArrayImpl.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 170
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
org/apache/johnzon/core/JsonGeneratorImpl.java
Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 609–611
org/apache/johnzon/core/JsonObjectImpl.java
Rule Violation Line
UnnecessaryModifier Unnecessary modifier 'final' on resource specification 'generator': resource specifications are implicitly final 150
org/apache/johnzon/core/JsonStreamParserImpl.java
Rule Violation Line
EmptyControlStatement Empty while statement 665–667
EmptyControlStatement Empty while statement 822–824
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

Priority 4

org/apache/johnzon/core/JsonDoubleImpl.java
Rule Violation Line
UselessParentheses Useless parentheses. 121
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
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
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
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
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
org/apache/johnzon/core/RFC4627AwareInputStreamReader.java
Rule Violation Line
UselessParentheses Useless parentheses. 102
UselessParentheses Useless parentheses. 103
UselessParentheses Useless parentheses. 107
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

Files

org/apache/johnzon/core/JohnzonJsonParser.java

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

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

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

org/apache/johnzon/core/JsonDoubleImpl.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 121

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

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

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

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

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

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

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

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