PMD Results
The following document contains the results of PMD 6.29.0.
Violations By Priority
Priority 1
org/apache/fulcrum/json/gson/GSONBuilderService.java
Rule | Violation | Line |
---|---|---|
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 137 |
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 176 |
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 197 |
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 203 |
Priority 3
org/apache/fulcrum/json/gson/DateTypeAdapter.java
Rule | Violation | Line |
---|---|---|
AtLeastOneConstructor | Each class should declare at least one constructor | 42–88 |
MethodArgumentCouldBeFinal | Parameter 'typeToken' is not assigned and could be declared final | 46 |
MethodArgumentCouldBeFinal | Parameter 'gson' is not assigned and could be declared final | 46 |
ShortVariable | Avoid variables with short names like df | 54 |
MethodArgumentCouldBeFinal | Parameter 'df' is not assigned and could be declared final | 54 |
ShortVariable | Avoid variables with short names like in | 63 |
MethodArgumentCouldBeFinal | Parameter 'in' is not assigned and could be declared final | 63 |
OnlyOneReturn | A method should have only one exit point, and that should be the last statement in the method | 66 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 71–77 |
MethodArgumentCouldBeFinal | Parameter 'json' is not assigned and could be declared final | 71 |
MethodArgumentCouldBeFinal | Parameter 'value' is not assigned and could be declared final | 79 |
MethodArgumentCouldBeFinal | Parameter 'out' is not assigned and could be declared final | 79 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 79–86 |
LocalVariableCouldBeFinal | Local variable 'dateFormatAsString' could be declared final | 84 |
LongVariable | Avoid excessively long variable names like dateFormatAsString | 84 |
org/apache/fulcrum/json/gson/GSONBuilderService.java
Rule | Violation | Line |
---|---|---|
AtLeastOneConstructor | Each class should declare at least one constructor | 63–438 |
StdCyclomaticComplexity | The class 'GSONBuilderService' has a Standard Cyclomatic Complexity of 2 (Highest = 11). | 63–438 |
ModifiedCyclomaticComplexity | The class 'GSONBuilderService' has a Modified Cyclomatic Complexity of 2 (Highest = 11). | 63–438 |
TooManyMethods | This class has too many methods, consider refactoring it. | 64–438 |
BeanMembersShouldSerialize | Found non-transient, non-static member. Please mark as transient or provide accessors. | 72 |
ReplaceHashtableWithMap | Consider replacing this Hashtable with the newer java.util.Map | 74 |
LooseCoupling | Avoid using implementation types like 'Hashtable'; use the interface instead | 74 |
RedundantFieldInitializer | Avoid using redundant field initializer for 'adapters' | 74 |
BeanMembersShouldSerialize | Found non-transient, non-static member. Please mark as transient or provide accessors. | 74 |
RedundantFieldInitializer | Avoid using redundant field initializer for 'useJsonPath' | 76 |
BeanMembersShouldSerialize | Found non-transient, non-static member. Please mark as transient or provide accessors. | 76 |
DefaultPackage | Use explicit scoping instead of the default package private level | 78 |
BeanMembersShouldSerialize | Found non-transient, non-static member. Please mark as transient or provide accessors. | 78 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the gson field if you want a default access modifier | 78 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 81 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 82 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 83 |
MethodArgumentCouldBeFinal | Parameter 'type' is not assigned and could be declared final | 87 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 87 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 88 |
LocalVariableCouldBeFinal | Local variable 'collectionType' could be declared final | 90–91 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 92 |
MethodArgumentCouldBeFinal | Parameter 'json' is not assigned and could be declared final | 96 |
MethodArgumentCouldBeFinal | Parameter 'type' is not assigned and could be declared final | 96 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 98 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 99 |
MethodArgumentCouldBeFinal | Parameter 'json' is not assigned and could be declared final | 103 |
MethodArgumentCouldBeFinal | Parameter 'collectionType' is not assigned and could be declared final | 103 |
MethodArgumentCouldBeFinal | Parameter 'elementType' is not assigned and could be declared final | 104 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 105 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 106 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 111 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 111 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 113–115 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 113–115 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 119 |
MethodArgumentCouldBeFinal | Parameter 'notused' is not assigned and could be declared final | 119 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 120 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 121–123 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 121–123 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 127 |
MethodArgumentCouldBeFinal | Parameter 'filterClass' is not assigned and could be declared final | 127 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 128 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 129–131 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 129–131 |
MethodArgumentCouldBeFinal | Parameter 'arg1' is not assigned and could be declared final | 135 |
MethodArgumentCouldBeFinal | Parameter 'arg0' is not assigned and could be declared final | 135 |
MethodArgumentCouldBeFinal | Parameter 'arg3' is not assigned and could be declared final | 136 |
MethodArgumentCouldBeFinal | Parameter 'arg2' is not assigned and could be declared final | 136 |
MethodArgumentCouldBeFinal | Parameter 'adapter' is not assigned and could be declared final | 146 |
MethodArgumentCouldBeFinal | Parameter 'target' is not assigned and could be declared final | 146 |
MethodArgumentCouldBeFinal | Parameter 'name' is not assigned and could be declared final | 146 |
MethodArgumentCouldBeFinal | Parameter 'target' is not assigned and could be declared final | 159 |
MethodArgumentCouldBeFinal | Parameter 'adapter' is not assigned and could be declared final | 159 |
MethodArgumentCouldBeFinal | Parameter 'name' is not assigned and could be declared final | 159 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 161 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 166 |
MethodArgumentCouldBeFinal | Parameter 'filterClass' is not assigned and could be declared final | 167 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 167 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 168–170 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 168–170 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 174 |
MethodArgumentCouldBeFinal | Parameter 'filterClass' is not assigned and could be declared final | 174 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 175 |
MethodArgumentCouldBeFinal | Parameter 'clearCache' is not assigned and could be declared final | 175 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 180 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 180 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 182–184 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 182–184 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 188 |
MethodArgumentCouldBeFinal | Parameter 'notused' is not assigned and could be declared final | 188 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 189 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 190–192 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 190–192 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 196 |
MethodArgumentCouldBeFinal | Parameter 'refreshCache' is not assigned and could be declared final | 196 |
MethodArgumentCouldBeFinal | Parameter 'refreshCache' is not assigned and could be declared final | 201 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 201 |
MethodArgumentCouldBeFinal | Parameter 'type' is not assigned and could be declared final | 201 |
MethodArgumentCouldBeFinal | Parameter 'serdeser' is not assigned and could be declared final | 206 |
MethodArgumentCouldBeFinal | Parameter 'type' is not assigned and could be declared final | 206 |
ShortVariable | Avoid variables with short names like df | 226 |
LocalVariableCouldBeFinal | Local variable 'dateTypeAdapter' could be declared final | 227 |
LinguisticNaming | Linguistics Antipattern - The getter 'getJsonService' should not return void linguistically | 232–237 |
MethodArgumentCouldBeFinal | Parameter 'conf' is not assigned and could be declared final | 243 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 245 |
LongVariable | Avoid excessively long variable names like configuredDateFormat | 246 |
LongVariable | Avoid excessively long variable names like configuredAdapters | 251 |
LocalVariableCouldBeFinal | Local variable 'nameVal' could be declared final | 254 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 255–263 |
LocalVariableCouldBeFinal | Local variable 'key' could be declared final | 256 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 257 |
LawOfDemeter | Potential violation of Law of Demeter (object not created locally) | 258 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 258 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 258 |
LocalVariableCouldBeFinal | Local variable 'forClass' could be declared final | 259 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 260 |
AvoidInstantiatingObjectsInLoops | Avoid instantiating new objects inside loops | 260 |
LongVariable | Avoid excessively long variable names like configuredjsonPath | 266 |
ModifiedCyclomaticComplexity | The method 'initialize' has a Modified Cyclomatic Complexity of 11. | 277–340 |
StdCyclomaticComplexity | The method 'initialize' has a Standard Cyclomatic Complexity of 11. | 277–340 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 279 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 281 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 282 |
LocalVariableCouldBeFinal | Local variable 'enumKey' could be declared final | 287 |
LawOfDemeter | Potential violation of Law of Demeter (object not created locally) | 288 |
LawOfDemeter | Potential violation of Law of Demeter (object not created locally) | 289 |
LocalVariableCouldBeFinal | Local variable 'forClass' could be declared final | 289 |
LocalVariableCouldBeFinal | Local variable 'avClass' could be declared final | 290 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 293–295 |
LocalVariableCouldBeFinal | Local variable 'adapterForClass' could be declared final | 296 |
LocalVariableCouldBeFinal | Local variable 'adapterClass' could be declared final | 297 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 301 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 302–304 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 317 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 317 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 317 |
AvoidFieldNameMatchingMethodName | Field jsonProvider has the same name as a method | 321 |
AvoidFieldNameMatchingMethodName | Field mappingProvider has the same name as a method | 322 |
MethodArgumentCouldBeFinal | Parameter 'filterAttrs' is not assigned and could be declared final | 352 |
MethodArgumentCouldBeFinal | Parameter 'clazz' is not assigned and could be declared final | 352 |
LongVariable | Avoid excessively long variable names like excludedAttributes | 356 |
LooseCoupling | Avoid using implementation types like 'HashSet'; use the interface instead | 356 |
MethodArgumentCouldBeFinal | Parameter 'excludedThisClass' is not assigned and could be declared final | 358 |
MethodArgumentCouldBeFinal | Parameter 'filterAttrs' is not assigned and could be declared final | 359 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 361–366 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 362–363 |
IfElseStmtsMustUseBraces | Avoid using if...else statements without curly braces | 366 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 366 |
ControlStatementBraces | This statement should have braces | 366 |
MethodArgumentCouldBeFinal | Parameter 'clazz' is not assigned and could be declared final | 372 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 373–374 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 373–374 |
MethodArgumentCouldBeFinal | Parameter 'paramFieldAttributes' is not assigned and could be declared final | 378 |
LongVariable | Avoid excessively long variable names like paramFieldAttributes | 378 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 382–383 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 382–383 |
MethodArgumentCouldBeFinal | Parameter 'clazz' is not assigned and could be declared final | 393 |
MethodArgumentCouldBeFinal | Parameter 'filterAttrs' is not assigned and could be declared final | 393 |
LongVariable | Avoid excessively long variable names like includedAttributes | 397 |
LooseCoupling | Avoid using implementation types like 'HashSet'; use the interface instead | 397 |
MethodArgumentCouldBeFinal | Parameter 'includeThisClass' is not assigned and could be declared final | 399 |
MethodArgumentCouldBeFinal | Parameter 'filterAttrs' is not assigned and could be declared final | 400 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 402–411 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 403–404 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 405 |
LocalVariableCouldBeFinal | Local variable 'includedAttribute' could be declared final | 407 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 408 |
IfElseStmtsMustUseBraces | Avoid using if...else statements without curly braces | 411 |
ControlStatementBraces | This statement should have braces | 411 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 411 |
MethodArgumentCouldBeFinal | Parameter 'clazz' is not assigned and could be declared final | 420 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 421 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 422–423 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 422–423 |
MethodArgumentCouldBeFinal | Parameter 'paramFieldAttributes' is not assigned and could be declared final | 430 |
LongVariable | Avoid excessively long variable names like paramFieldAttributes | 430 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 431–432 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 431–432 |
Priority 4
org/apache/fulcrum/json/gson/DateTypeAdapter.java
Rule | Violation | Line |
---|---|---|
AvoidPrefixingMethodParameters | Avoid prefixing parameters by in, out or inOut. Uses Javadoc to document this behavior. | 63 |
AvoidPrefixingMethodParameters | Avoid prefixing parameters by in, out or inOut. Uses Javadoc to document this behavior. | 79 |
Priority 5
org/apache/fulcrum/json/gson/GSONBuilderService.java
Rule | Violation | Line |
---|---|---|
DataflowAnomalyAnalysis | Found 'DU'-anomaly for variable 'gsonFuture' (lines '314'-'340'). | 314–340 |
DataflowAnomalyAnalysis | Found 'DU'-anomaly for variable 'gsonFuture' (lines '314'-'340'). | 314–340 |
DataflowAnomalyAnalysis | Found 'DU'-anomaly for variable 'gsonFuture' (lines '314'-'340'). | 314–340 |
DataflowAnomalyAnalysis | Found 'DU'-anomaly for variable 'gsonFuture' (lines '314'-'340'). | 314–340 |
DataflowAnomalyAnalysis | Found 'DU'-anomaly for variable 'gsonFuture' (lines '314'-'340'). | 314–340 |
Files
org/apache/fulcrum/json/gson/DateTypeAdapter.java
Rule | Violation | Priority | Line |
---|---|---|---|
AtLeastOneConstructor | Each class should declare at least one constructor | 3 | 42–88 |
MethodArgumentCouldBeFinal | Parameter 'typeToken' is not assigned and could be declared final | 3 | 46 |
MethodArgumentCouldBeFinal | Parameter 'gson' is not assigned and could be declared final | 3 | 46 |
ShortVariable | Avoid variables with short names like df | 3 | 54 |
MethodArgumentCouldBeFinal | Parameter 'df' is not assigned and could be declared final | 3 | 54 |
ShortVariable | Avoid variables with short names like in | 3 | 63 |
AvoidPrefixingMethodParameters | Avoid prefixing parameters by in, out or inOut. Uses Javadoc to document this behavior. | 4 | 63 |
MethodArgumentCouldBeFinal | Parameter 'in' is not assigned and could be declared final | 3 | 63 |
OnlyOneReturn | A method should have only one exit point, and that should be the last statement in the method | 3 | 66 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 71–77 |
MethodArgumentCouldBeFinal | Parameter 'json' is not assigned and could be declared final | 3 | 71 |
MethodArgumentCouldBeFinal | Parameter 'value' is not assigned and could be declared final | 3 | 79 |
MethodArgumentCouldBeFinal | Parameter 'out' is not assigned and could be declared final | 3 | 79 |
AvoidPrefixingMethodParameters | Avoid prefixing parameters by in, out or inOut. Uses Javadoc to document this behavior. | 4 | 79 |
AvoidSynchronizedAtMethodLevel | Use block level rather than method level synchronization | 3 | 79–86 |
LocalVariableCouldBeFinal | Local variable 'dateFormatAsString' could be declared final | 3 | 84 |
LongVariable | Avoid excessively long variable names like dateFormatAsString | 3 | 84 |
org/apache/fulcrum/json/gson/GSONBuilderService.java
Rule | Violation | Priority | Line |
---|---|---|---|
AtLeastOneConstructor | Each class should declare at least one constructor | 3 | 63–438 |
StdCyclomaticComplexity | The class 'GSONBuilderService' has a Standard Cyclomatic Complexity of 2 (Highest = 11). | 3 | 63–438 |
ModifiedCyclomaticComplexity | The class 'GSONBuilderService' has a Modified Cyclomatic Complexity of 2 (Highest = 11). | 3 | 63–438 |
TooManyMethods | This class has too many methods, consider refactoring it. | 3 | 64–438 |
BeanMembersShouldSerialize | Found non-transient, non-static member. Please mark as transient or provide accessors. | 3 | 72 |
ReplaceHashtableWithMap | Consider replacing this Hashtable with the newer java.util.Map | 3 | 74 |
LooseCoupling | Avoid using implementation types like 'Hashtable'; use the interface instead | 3 | 74 |
RedundantFieldInitializer | Avoid using redundant field initializer for 'adapters' | 3 | 74 |
BeanMembersShouldSerialize | Found non-transient, non-static member. Please mark as transient or provide accessors. | 3 | 74 |
RedundantFieldInitializer | Avoid using redundant field initializer for 'useJsonPath' | 3 | 76 |
BeanMembersShouldSerialize | Found non-transient, non-static member. Please mark as transient or provide accessors. | 3 | 76 |
DefaultPackage | Use explicit scoping instead of the default package private level | 3 | 78 |
BeanMembersShouldSerialize | Found non-transient, non-static member. Please mark as transient or provide accessors. | 3 | 78 |
CommentDefaultAccessModifier | To avoid mistakes add a comment at the beginning of the gson field if you want a default access modifier | 3 | 78 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 81 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 82 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 83 |
MethodArgumentCouldBeFinal | Parameter 'type' is not assigned and could be declared final | 3 | 87 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 87 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 88 |
LocalVariableCouldBeFinal | Local variable 'collectionType' could be declared final | 3 | 90–91 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 92 |
MethodArgumentCouldBeFinal | Parameter 'json' is not assigned and could be declared final | 3 | 96 |
MethodArgumentCouldBeFinal | Parameter 'type' is not assigned and could be declared final | 3 | 96 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 98 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 99 |
MethodArgumentCouldBeFinal | Parameter 'json' is not assigned and could be declared final | 3 | 103 |
MethodArgumentCouldBeFinal | Parameter 'collectionType' is not assigned and could be declared final | 3 | 103 |
MethodArgumentCouldBeFinal | Parameter 'elementType' is not assigned and could be declared final | 3 | 104 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 105 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 106 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 111 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 3 | 111 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 113–115 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 113–115 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 119 |
MethodArgumentCouldBeFinal | Parameter 'notused' is not assigned and could be declared final | 3 | 119 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 3 | 120 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 121–123 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 121–123 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 127 |
MethodArgumentCouldBeFinal | Parameter 'filterClass' is not assigned and could be declared final | 3 | 127 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 3 | 128 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 129–131 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 129–131 |
MethodArgumentCouldBeFinal | Parameter 'arg1' is not assigned and could be declared final | 3 | 135 |
MethodArgumentCouldBeFinal | Parameter 'arg0' is not assigned and could be declared final | 3 | 135 |
MethodArgumentCouldBeFinal | Parameter 'arg3' is not assigned and could be declared final | 3 | 136 |
MethodArgumentCouldBeFinal | Parameter 'arg2' is not assigned and could be declared final | 3 | 136 |
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 1 | 137 |
MethodArgumentCouldBeFinal | Parameter 'adapter' is not assigned and could be declared final | 3 | 146 |
MethodArgumentCouldBeFinal | Parameter 'target' is not assigned and could be declared final | 3 | 146 |
MethodArgumentCouldBeFinal | Parameter 'name' is not assigned and could be declared final | 3 | 146 |
MethodArgumentCouldBeFinal | Parameter 'target' is not assigned and could be declared final | 3 | 159 |
MethodArgumentCouldBeFinal | Parameter 'adapter' is not assigned and could be declared final | 3 | 159 |
MethodArgumentCouldBeFinal | Parameter 'name' is not assigned and could be declared final | 3 | 159 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 161 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 166 |
MethodArgumentCouldBeFinal | Parameter 'filterClass' is not assigned and could be declared final | 3 | 167 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 3 | 167 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 168–170 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 168–170 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 174 |
MethodArgumentCouldBeFinal | Parameter 'filterClass' is not assigned and could be declared final | 3 | 174 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 3 | 175 |
MethodArgumentCouldBeFinal | Parameter 'clearCache' is not assigned and could be declared final | 3 | 175 |
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 1 | 176 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 3 | 180 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 180 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 182–184 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 182–184 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 188 |
MethodArgumentCouldBeFinal | Parameter 'notused' is not assigned and could be declared final | 3 | 188 |
MethodArgumentCouldBeFinal | Parameter 'filterAttr' is not assigned and could be declared final | 3 | 189 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 190–192 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 190–192 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 196 |
MethodArgumentCouldBeFinal | Parameter 'refreshCache' is not assigned and could be declared final | 3 | 196 |
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 1 | 197 |
MethodArgumentCouldBeFinal | Parameter 'refreshCache' is not assigned and could be declared final | 3 | 201 |
MethodArgumentCouldBeFinal | Parameter 'src' is not assigned and could be declared final | 3 | 201 |
MethodArgumentCouldBeFinal | Parameter 'type' is not assigned and could be declared final | 3 | 201 |
AvoidThrowingRawExceptionTypes | Avoid throwing raw exception types. | 1 | 203 |
MethodArgumentCouldBeFinal | Parameter 'serdeser' is not assigned and could be declared final | 3 | 206 |
MethodArgumentCouldBeFinal | Parameter 'type' is not assigned and could be declared final | 3 | 206 |
ShortVariable | Avoid variables with short names like df | 3 | 226 |
LocalVariableCouldBeFinal | Local variable 'dateTypeAdapter' could be declared final | 3 | 227 |
LinguisticNaming | Linguistics Antipattern - The getter 'getJsonService' should not return void linguistically | 3 | 232–237 |
MethodArgumentCouldBeFinal | Parameter 'conf' is not assigned and could be declared final | 3 | 243 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 245 |
LongVariable | Avoid excessively long variable names like configuredDateFormat | 3 | 246 |
LongVariable | Avoid excessively long variable names like configuredAdapters | 3 | 251 |
LocalVariableCouldBeFinal | Local variable 'nameVal' could be declared final | 3 | 254 |
ForLoopCanBeForeach | This for loop can be replaced by a foreach loop | 3 | 255–263 |
LocalVariableCouldBeFinal | Local variable 'key' could be declared final | 3 | 256 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 257 |
LawOfDemeter | Potential violation of Law of Demeter (object not created locally) | 3 | 258 |
LiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 258 |
PositionLiteralsFirstInComparisons | Position literals first in String comparisons | 3 | 258 |
LocalVariableCouldBeFinal | Local variable 'forClass' could be declared final | 3 | 259 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 260 |
AvoidInstantiatingObjectsInLoops | Avoid instantiating new objects inside loops | 3 | 260 |
LongVariable | Avoid excessively long variable names like configuredjsonPath | 3 | 266 |
ModifiedCyclomaticComplexity | The method 'initialize' has a Modified Cyclomatic Complexity of 11. | 3 | 277–340 |
StdCyclomaticComplexity | The method 'initialize' has a Standard Cyclomatic Complexity of 11. | 3 | 277–340 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 279 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 281 |
SimpleDateFormatNeedsLocale | When instantiating a SimpleDateFormat object, specify a Locale | 3 | 282 |
LocalVariableCouldBeFinal | Local variable 'enumKey' could be declared final | 3 | 287 |
LawOfDemeter | Potential violation of Law of Demeter (object not created locally) | 3 | 288 |
LawOfDemeter | Potential violation of Law of Demeter (object not created locally) | 3 | 289 |
LocalVariableCouldBeFinal | Local variable 'forClass' could be declared final | 3 | 289 |
LocalVariableCouldBeFinal | Local variable 'avClass' could be declared final | 3 | 290 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 293–295 |
LocalVariableCouldBeFinal | Local variable 'adapterForClass' could be declared final | 3 | 296 |
LocalVariableCouldBeFinal | Local variable 'adapterClass' could be declared final | 3 | 297 |
AvoidCatchingGenericException | Avoid catching generic exceptions such as NullPointerException, RuntimeException, Exception in try-catch block | 3 | 301 |
PreserveStackTrace | New exception is thrown in catch block, original stack trace may be lost | 3 | 302–304 |
DataflowAnomalyAnalysis | Found 'DU'-anomaly for variable 'gsonFuture' (lines '314'-'340'). | 5 | 314–340 |
DataflowAnomalyAnalysis | Found 'DU'-anomaly for variable 'gsonFuture' (lines '314'-'340'). | 5 | 314–340 |
DataflowAnomalyAnalysis | Found 'DU'-anomaly for variable 'gsonFuture' (lines '314'-'340'). | 5 | 314–340 |
DataflowAnomalyAnalysis | Found 'DU'-anomaly for variable 'gsonFuture' (lines '314'-'340'). | 5 | 314–340 |
DataflowAnomalyAnalysis | Found 'DU'-anomaly for variable 'gsonFuture' (lines '314'-'340'). | 5 | 314–340 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 317 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 317 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 317 |
AvoidFieldNameMatchingMethodName | Field jsonProvider has the same name as a method | 3 | 321 |
AvoidFieldNameMatchingMethodName | Field mappingProvider has the same name as a method | 3 | 322 |
MethodArgumentCouldBeFinal | Parameter 'filterAttrs' is not assigned and could be declared final | 3 | 352 |
MethodArgumentCouldBeFinal | Parameter 'clazz' is not assigned and could be declared final | 3 | 352 |
LongVariable | Avoid excessively long variable names like excludedAttributes | 3 | 356 |
LooseCoupling | Avoid using implementation types like 'HashSet'; use the interface instead | 3 | 356 |
MethodArgumentCouldBeFinal | Parameter 'excludedThisClass' is not assigned and could be declared final | 3 | 358 |
MethodArgumentCouldBeFinal | Parameter 'filterAttrs' is not assigned and could be declared final | 3 | 359 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 361–366 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 362–363 |
IfElseStmtsMustUseBraces | Avoid using if...else statements without curly braces | 3 | 366 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 366 |
ControlStatementBraces | This statement should have braces | 3 | 366 |
MethodArgumentCouldBeFinal | Parameter 'clazz' is not assigned and could be declared final | 3 | 372 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 373–374 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 373–374 |
MethodArgumentCouldBeFinal | Parameter 'paramFieldAttributes' is not assigned and could be declared final | 3 | 378 |
LongVariable | Avoid excessively long variable names like paramFieldAttributes | 3 | 378 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 382–383 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 382–383 |
MethodArgumentCouldBeFinal | Parameter 'clazz' is not assigned and could be declared final | 3 | 393 |
MethodArgumentCouldBeFinal | Parameter 'filterAttrs' is not assigned and could be declared final | 3 | 393 |
LongVariable | Avoid excessively long variable names like includedAttributes | 3 | 397 |
LooseCoupling | Avoid using implementation types like 'HashSet'; use the interface instead | 3 | 397 |
MethodArgumentCouldBeFinal | Parameter 'includeThisClass' is not assigned and could be declared final | 3 | 399 |
MethodArgumentCouldBeFinal | Parameter 'filterAttrs' is not assigned and could be declared final | 3 | 400 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 402–411 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 403–404 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 405 |
LocalVariableCouldBeFinal | Local variable 'includedAttribute' could be declared final | 3 | 407 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 408 |
IfElseStmtsMustUseBraces | Avoid using if...else statements without curly braces | 3 | 411 |
ControlStatementBraces | This statement should have braces | 3 | 411 |
UseDiamondOperator | Explicit type arguments can be replaced by Diamond Operator | 3 | 411 |
MethodArgumentCouldBeFinal | Parameter 'clazz' is not assigned and could be declared final | 3 | 420 |
LawOfDemeter | Potential violation of Law of Demeter (method chain calls) | 3 | 421 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 422–423 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 422–423 |
MethodArgumentCouldBeFinal | Parameter 'paramFieldAttributes' is not assigned and could be declared final | 3 | 430 |
LongVariable | Avoid excessively long variable names like paramFieldAttributes | 3 | 430 |
ConfusingTernary | Avoid if (x != y) ..; else ..; | 3 | 431–432 |
SimplifiedTernary | Ternary operators that can be simplified with || or && | 3 | 431–432 |