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
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
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
org/apache/johnzon/core/JsonGeneratorImpl.java
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
org/apache/johnzon/core/JsonProviderImpl.java
org/apache/johnzon/core/JsonStreamParserImpl.java
org/apache/johnzon/core/RFC4627AwareInputStreamReader.java
org/apache/johnzon/core/util/ArrayUtil.java
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
org/apache/johnzon/core/JsonGeneratorImpl.java
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
org/apache/johnzon/core/JsonProviderImpl.java
org/apache/johnzon/core/JsonStreamParserImpl.java
org/apache/johnzon/core/RFC4627AwareInputStreamReader.java
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