Apache Commons logo Apache Commons JEXL

PMD Results

The following document contains the results of PMD 5.5.1.

Files

org/apache/commons/jexl3/JexlEngine.java

Violation Line
Possible God class (WMC=64, ATFD=7, TCC=0.0) 18617
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 175
Consider using varargs for methods or constructors which take an array the last parameter. 293
Consider using varargs for methods or constructors which take an array the last parameter. 370
Consider using varargs for methods or constructors which take an array the last parameter. 396
Consider using varargs for methods or constructors which take an array the last parameter. 411
Potential violation of Law of Demeter (method chain calls) 528
Potential violation of Law of Demeter (object not created locally) 531
Potential violation of Law of Demeter (object not created locally) 532
Potential violation of Law of Demeter (object not created locally) 534
Potential violation of Law of Demeter (object not created locally) 535
Potential violation of Law of Demeter (object not created locally) 543
Potential violation of Law of Demeter (object not created locally) 543
Potential violation of Law of Demeter (object not created locally) 543
Potential violation of Law of Demeter (object not created locally) 559
Potential violation of Law of Demeter (object not created locally) 561

org/apache/commons/jexl3/JexlException.java

Violation Line
Possible God class (WMC=58, ATFD=12, TCC=0.02857142857142857) 18716
Avoid if (x != y) ..; else ..; 66
Avoid if (x != y) ..; else ..; 6773
Avoid if (x != y) ..; else ..; 84
Avoid if (x != y) ..; else ..; 105
Avoid if (x != y) ..; else ..; 107111
Potential violation of Law of Demeter (object not created locally) 108
Potential violation of Law of Demeter (object not created locally) 159
Potential violation of Law of Demeter (object not created locally) 160
Avoid if (x != y) ..; else ..; 193
Potential violation of Law of Demeter (object not created locally) 199
Potential violation of Law of Demeter (object not created locally) 401
Potential violation of Law of Demeter (object not created locally) 403
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 405
Potential violation of Law of Demeter (object not created locally) 405
Potential violation of Law of Demeter (object not created locally) 406
Potential violation of Law of Demeter (object not created locally) 407
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 459
Potential violation of Law of Demeter (object not created locally) 459
Potential violation of Law of Demeter (object not created locally) 460
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 460
Potential violation of Law of Demeter (object not created locally) 461
Potential violation of Law of Demeter (object not created locally) 462
Potential violation of Law of Demeter (object not created locally) 514
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 514
Potential violation of Law of Demeter (object not created locally) 515
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 515
Potential violation of Law of Demeter (object not created locally) 516
Potential violation of Law of Demeter (object not created locally) 517
Potential violation of Law of Demeter (object not created locally) 559
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 559
Potential violation of Law of Demeter (object not created locally) 560
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 560
Potential violation of Law of Demeter (object not created locally) 561
Potential violation of Law of Demeter (object not created locally) 562
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 605
Potential violation of Law of Demeter (object not created locally) 605
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 606
Potential violation of Law of Demeter (object not created locally) 606
Potential violation of Law of Demeter (object not created locally) 607
Potential violation of Law of Demeter (object not created locally) 608
StringBuffer constructor is initialized with size 16, but has at least 26 characters appended. 702
Avoid if (x != y) ..; else ..; 703707
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 708

org/apache/commons/jexl3/JexlInfo.java

Violation Line
Avoid if (x != y) ..; else ..; 106
Avoid appending characters as strings in StringBuffer.append. 108
Avoid appending characters as strings in StringBuffer.append. 111
Potential violation of Law of Demeter (object not created locally) 118
Avoid appending characters as strings in StringBuffer.append. 119
Potential violation of Law of Demeter (object not created locally) 120
Potential violation of Law of Demeter (object not created locally) 122
Avoid appending characters as strings in StringBuffer.append. 123

org/apache/commons/jexl3/ObjectContext.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 57

org/apache/commons/jexl3/internal/ArrayBuilder.java

Violation Line
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 58
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 60
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 62
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 64
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 66
Potential violation of Law of Demeter (method chain calls) 79
Potential violation of Law of Demeter (method chain calls) 88
Potential violation of Law of Demeter (method chain calls) 91
Potential violation of Law of Demeter (object not created locally) 96
Deeply nested if..then statements are hard to read 97100
Avoid if (x != y) ..; else ..; 114140
Potential violation of Law of Demeter (object not created locally) 118
Potential violation of Law of Demeter (method chain calls) 118
Potential violation of Law of Demeter (method chain calls) 123
Avoid if (x != y) ..; else ..; 123137
Potential violation of Law of Demeter (method chain calls) 132

org/apache/commons/jexl3/internal/Closure.java

Violation Line
Avoid if (x != y) ..; else ..; 57
Avoid if (x != y) ..; else ..; 58
Avoid if (x != y) ..; else ..; 59
Avoid unnecessary if..then..else statements when returning booleans 7981
Potential violation of Law of Demeter (object not created locally) 95
Potential violation of Law of Demeter (object not created locally) 97
Deeply nested if..then statements are hard to read 98100
Potential violation of Law of Demeter (object not created locally) 123

org/apache/commons/jexl3/internal/Debugger.java

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 171007
Possible God class (WMC=157, ATFD=9, TCC=0.18095238095238095) 171007
StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 110
Document empty constructor 125126
Potential violation of Law of Demeter (method chain calls) 135
Potential violation of Law of Demeter (method chain calls) 148
Potential violation of Law of Demeter (object not created locally) 179
Potential violation of Law of Demeter (object not created locally) 180
StringBuffer constructor is initialized with size 16, but has at least 111 characters appended. 207
Use equals() to compare object references. 250
Use equals() to compare object references. 254
Use equals() to compare object references. 300
Avoid if (x != y) ..; else ..; 303307
Use equals() to compare object references. 308
Potential violation of Law of Demeter (method chain calls) 349
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 407
StringBuffer (or StringBuilder).append is called 3 consecutive times with literal Strings. Use a single append with a single combined String. 559
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 585586
Potential violation of Law of Demeter (method chain calls) 594
Potential violation of Law of Demeter (object not created locally) 604
Avoid appending characters as strings in StringBuffer.append. 611
Potential violation of Law of Demeter (object not created locally) 615
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 623
Avoid reassigning parameters such as 'data' 654
Potential violation of Law of Demeter (method chain calls) 666
Potential violation of Law of Demeter (method chain calls) 669
Avoid appending characters as strings in StringBuffer.append. 718
Avoid appending characters as strings in StringBuffer.append. 733
Avoid appending characters as strings in StringBuffer.append. 752
Avoid appending characters as strings in StringBuffer.append. 761
Avoid appending characters as strings in StringBuffer.append. 784
Avoid appending characters as strings in StringBuffer.append. 792
Avoid appending characters as strings in StringBuffer.append. 818
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 848
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 853
Avoid appending characters as strings in StringBuffer.append. 853
Avoid appending characters as strings in StringBuffer.append. 855
Potential violation of Law of Demeter (method chain calls) 883
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 891
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 923
Potential violation of Law of Demeter (method chain calls) 976
Avoid appending characters as strings in StringBuffer.append. 986
Avoid appending characters as strings in StringBuffer.append. 993

org/apache/commons/jexl3/internal/Engine.java

Violation Line
Possible God class (WMC=113, ATFD=38, TCC=0.024630541871921183) 17651
A high number of imports can indicate a high degree of coupling within an object. 17651
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 78
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 82
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 86
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 90
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 95
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 99
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 104
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 110
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 114
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 118
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 122
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 126
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 130
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 134
Avoid reassigning parameters such as 'context' 281
Potential violation of Law of Demeter (object not created locally) 287
Potential violation of Law of Demeter (object not created locally) 291
Potential violation of Law of Demeter (object not created locally) 292
Potential violation of Law of Demeter (object not created locally) 294
Potential violation of Law of Demeter (object not created locally) 297
Potential violation of Law of Demeter (object not created locally) 297
Potential violation of Law of Demeter (object not created locally) 300
Avoid reassigning parameters such as 'context' 310
Potential violation of Law of Demeter (object not created locally) 316
Potential violation of Law of Demeter (object not created locally) 320
Potential violation of Law of Demeter (object not created locally) 321
Potential violation of Law of Demeter (object not created locally) 323
Potential violation of Law of Demeter (object not created locally) 326
Potential violation of Law of Demeter (object not created locally) 326
Potential violation of Law of Demeter (object not created locally) 329
Avoid if (x != y) ..; else ..; 343347
Potential violation of Law of Demeter (object not created locally) 344
Potential violation of Law of Demeter (object not created locally) 355
Potential violation of Law of Demeter (object not created locally) 355
Potential violation of Law of Demeter (object not created locally) 358
Avoid if (x != y) ..; else ..; 390394
Potential violation of Law of Demeter (object not created locally) 502
Potential violation of Law of Demeter (object not created locally) 509
Potential violation of Law of Demeter (method chain calls) 520
Potential violation of Law of Demeter (method chain calls) 520
Potential violation of Law of Demeter (object not created locally) 528
Potential violation of Law of Demeter (object not created locally) 529
Potential violation of Law of Demeter (object not created locally) 583
Potential violation of Law of Demeter (object not created locally) 584
Potential violation of Law of Demeter (object not created locally) 602
Potential violation of Law of Demeter (method chain calls) 628

org/apache/commons/jexl3/internal/IntegerRange.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 75
Avoid unnecessary if..then..else statements when returning booleans 9597
Potential violation of Law of Demeter (method chain calls) 117
Potential violation of Law of Demeter (method chain calls) 137
Potential violation of Law of Demeter (object not created locally) 140
Perhaps 'min' could be replaced by a local variable. 241
Perhaps 'max' could be replaced by a local variable. 283

org/apache/commons/jexl3/internal/Interpreter.java

Violation Line
Possible God class (WMC=389, ATFD=160, TCC=0.02564102564102564) 171911
A high number of imports can indicate a high degree of coupling within an object. 171911
Potential violation of Law of Demeter (object not created locally) 188
Potential violation of Law of Demeter (object not created locally) 192
Potential violation of Law of Demeter (object not created locally) 196
Potential violation of Law of Demeter (object not created locally) 199
Potential violation of Law of Demeter (object not created locally) 199
Potential violation of Law of Demeter (method chain calls) 250
Avoid if (x != y) ..; else ..; 263273
Potential violation of Law of Demeter (method chain calls) 278
Potential violation of Law of Demeter (method chain calls) 279
Avoid if (x != y) ..; else ..; 282
Potential violation of Law of Demeter (method chain calls) 290
Potential violation of Law of Demeter (method chain calls) 291
Avoid if (x != y) ..; else ..; 294
Potential violation of Law of Demeter (method chain calls) 302
Potential violation of Law of Demeter (method chain calls) 303
Avoid if (x != y) ..; else ..; 306
Potential violation of Law of Demeter (method chain calls) 315
Potential violation of Law of Demeter (method chain calls) 316
Avoid if (x != y) ..; else ..; 319
Potential violation of Law of Demeter (method chain calls) 331
Potential violation of Law of Demeter (method chain calls) 332
Avoid if (x != y) ..; else ..; 335
Potential violation of Law of Demeter (method chain calls) 347
Potential violation of Law of Demeter (method chain calls) 348
Avoid if (x != y) ..; else ..; 351
Potential violation of Law of Demeter (method chain calls) 359
Potential violation of Law of Demeter (method chain calls) 360
Avoid if (x != y) ..; else ..; 363
Potential violation of Law of Demeter (method chain calls) 371
Potential violation of Law of Demeter (method chain calls) 372
Avoid if (x != y) ..; else ..; 375
Potential violation of Law of Demeter (method chain calls) 383
Potential violation of Law of Demeter (method chain calls) 384
Avoid if (x != y) ..; else ..; 387389
Potential violation of Law of Demeter (method chain calls) 397
Potential violation of Law of Demeter (method chain calls) 398
Avoid if (x != y) ..; else ..; 401403
Potential violation of Law of Demeter (method chain calls) 412
Potential violation of Law of Demeter (method chain calls) 413
Avoid if (x != y) ..; else ..; 416418
Potential violation of Law of Demeter (method chain calls) 426
Potential violation of Law of Demeter (method chain calls) 427
Avoid if (x != y) ..; else ..; 430432
Potential violation of Law of Demeter (method chain calls) 440
Potential violation of Law of Demeter (method chain calls) 441
Avoid if (x != y) ..; else ..; 444446
Potential violation of Law of Demeter (method chain calls) 454
Potential violation of Law of Demeter (method chain calls) 455
Avoid if (x != y) ..; else ..; 458460
Potential violation of Law of Demeter (method chain calls) 468
Potential violation of Law of Demeter (method chain calls) 469
Potential violation of Law of Demeter (method chain calls) 475
Potential violation of Law of Demeter (method chain calls) 476
Potential violation of Law of Demeter (method chain calls) 482
Potential violation of Law of Demeter (method chain calls) 483
Potential violation of Law of Demeter (method chain calls) 489
Potential violation of Law of Demeter (method chain calls) 490
Potential violation of Law of Demeter (method chain calls) 496
Potential violation of Law of Demeter (method chain calls) 497
Potential violation of Law of Demeter (method chain calls) 503
Potential violation of Law of Demeter (method chain calls) 504
Potential violation of Law of Demeter (method chain calls) 510
Potential violation of Law of Demeter (method chain calls) 511
Potential violation of Law of Demeter (object not created locally) 523
Potential violation of Law of Demeter (method chain calls) 532
Potential violation of Law of Demeter (method chain calls) 532
Potential violation of Law of Demeter (method chain calls) 542
Avoid if (x != y) ..; else ..; 545
Potential violation of Law of Demeter (method chain calls) 553
Avoid if (x != y) ..; else ..; 556
Potential violation of Law of Demeter (method chain calls) 568
Potential violation of Law of Demeter (method chain calls) 572
Potential violation of Law of Demeter (method chain calls) 578
Potential violation of Law of Demeter (method chain calls) 595
Potential violation of Law of Demeter (method chain calls) 602
Potential violation of Law of Demeter (object not created locally) 624
Potential violation of Law of Demeter (object not created locally) 625
Potential violation of Law of Demeter (method chain calls) 627
Potential violation of Law of Demeter (object not created locally) 647
Potential violation of Law of Demeter (object not created locally) 653
Potential violation of Law of Demeter (object not created locally) 674
Potential violation of Law of Demeter (method chain calls) 681
Potential violation of Law of Demeter (method chain calls) 699
The String literal "boolean coercion error" appears 4 times in this file; the first occurrence is on line 706 706
Potential violation of Law of Demeter (method chain calls) 708
Potential violation of Law of Demeter (method chain calls) 722
Potential violation of Law of Demeter (method chain calls) 731
Potential violation of Law of Demeter (method chain calls) 787
Potential violation of Law of Demeter (object not created locally) 788
Potential violation of Law of Demeter (object not created locally) 791
Potential violation of Law of Demeter (method chain calls) 807
Potential violation of Law of Demeter (object not created locally) 808
Potential violation of Law of Demeter (object not created locally) 810
Potential violation of Law of Demeter (method chain calls) 821
Potential violation of Law of Demeter (method chain calls) 822
Potential violation of Law of Demeter (object not created locally) 822
Potential violation of Law of Demeter (method chain calls) 822
Potential violation of Law of Demeter (object not created locally) 824
Potential violation of Law of Demeter (method chain calls) 829
Potential violation of Law of Demeter (method chain calls) 830
Potential violation of Law of Demeter (method chain calls) 836
Potential violation of Law of Demeter (method chain calls) 839
Potential violation of Law of Demeter (method chain calls) 841
Potential violation of Law of Demeter (method chain calls) 847
Potential violation of Law of Demeter (method chain calls) 854
Potential violation of Law of Demeter (method chain calls) 863
Potential violation of Law of Demeter (method chain calls) 870
Potential violation of Law of Demeter (method chain calls) 879
Potential violation of Law of Demeter (method chain calls) 885
Potential violation of Law of Demeter (object not created locally) 892
Potential violation of Law of Demeter (method chain calls) 908
Potential violation of Law of Demeter (object not created locally) 946
Potential violation of Law of Demeter (object not created locally) 966
Potential violation of Law of Demeter (method chain calls) 985
Avoid if (x != y) ..; else ..; 990
Potential violation of Law of Demeter (object not created locally) 1018
Avoid if (x != y) ..; else ..; 10221051
Potential violation of Law of Demeter (method chain calls) 1029
Potential violation of Law of Demeter (method chain calls) 1030
Potential violation of Law of Demeter (object not created locally) 1042
Potential violation of Law of Demeter (method chain calls) 1043
Potential violation of Law of Demeter (object not created locally) 1043
Potential violation of Law of Demeter (object not created locally) 1048
Potential violation of Law of Demeter (object not created locally) 1055
Potential violation of Law of Demeter (object not created locally) 1057
Potential violation of Law of Demeter (method chain calls) 1124
Potential violation of Law of Demeter (object not created locally) 1129
Potential violation of Law of Demeter (object not created locally) 1132
Potential violation of Law of Demeter (method chain calls) 1146
Potential violation of Law of Demeter (object not created locally) 1157
Potential violation of Law of Demeter (object not created locally) 1164
Potential violation of Law of Demeter (object not created locally) 1170
Potential violation of Law of Demeter (object not created locally) 1185
Potential violation of Law of Demeter (object not created locally) 1186
Avoid if (x != y) ..; else ..; 11871211
Potential violation of Law of Demeter (object not created locally) 1192
Potential violation of Law of Demeter (method chain calls) 1193
Potential violation of Law of Demeter (method chain calls) 1194
Potential violation of Law of Demeter (object not created locally) 1200
Potential violation of Law of Demeter (object not created locally) 1202
Potential violation of Law of Demeter (method chain calls) 1203
Potential violation of Law of Demeter (object not created locally) 1203
Potential violation of Law of Demeter (object not created locally) 1208
Potential violation of Law of Demeter (object not created locally) 1215
Potential violation of Law of Demeter (method chain calls) 1217
Potential violation of Law of Demeter (object not created locally) 1221
Potential violation of Law of Demeter (object not created locally) 1223
Potential violation of Law of Demeter (object not created locally) 1225
Potential violation of Law of Demeter (object not created locally) 1232
Potential violation of Law of Demeter (object not created locally) 1240
Potential violation of Law of Demeter (object not created locally) 1242
Potential violation of Law of Demeter (object not created locally) 1243
Potential violation of Law of Demeter (object not created locally) 1246
Potential violation of Law of Demeter (object not created locally) 1247
Potential violation of Law of Demeter (method chain calls) 1276
Potential violation of Law of Demeter (object not created locally) 1297
Consider using varargs for methods or constructors which take an array the last parameter. 1338
Potential violation of Law of Demeter (method chain calls) 1351
Consider using varargs for methods or constructors which take an array the last parameter. 1396
Avoid reassigning parameters such as 'functor' 1456
Avoid reassigning parameters such as 'functor' 1456
Avoid reassigning parameters such as 'functor' 1456
Avoid reassigning parameters such as 'target' 1456
Avoid reassigning parameters such as 'functor' 1456
Avoid reassigning parameters such as 'target' 1456
Avoid reassigning parameters such as 'target' 1456
Avoid reassigning parameters such as 'functor' 1456
Potential violation of Law of Demeter (object not created locally) 1467
Potential violation of Law of Demeter (object not created locally) 1468
Potential violation of Law of Demeter (method chain calls) 1471
Avoid if (x != y) ..; else ..; 14741479
Potential violation of Law of Demeter (method chain calls) 1508
Potential violation of Law of Demeter (object not created locally) 1524
Potential violation of Law of Demeter (object not created locally) 1545
Avoid if (x != y) ..; else ..; 15501591
Potential violation of Law of Demeter (method chain calls) 1553
Potential violation of Law of Demeter (method chain calls) 1556
Potential violation of Law of Demeter (object not created locally) 1561
Potential violation of Law of Demeter (object not created locally) 1571
Potential violation of Law of Demeter (object not created locally) 1580
Potential violation of Law of Demeter (object not created locally) 1598
Potential violation of Law of Demeter (method chain calls) 1619
Potential violation of Law of Demeter (method chain calls) 1624
Potential violation of Law of Demeter (object not created locally) 1633
Potential violation of Law of Demeter (object not created locally) 1634
Potential violation of Law of Demeter (object not created locally) 1646
Avoid if (x != y) ..; else ..; 1646
Potential violation of Law of Demeter (object not created locally) 1650
Potential violation of Law of Demeter (object not created locally) 1652
Potential violation of Law of Demeter (object not created locally) 1659
Avoid if (x != y) ..; else ..; 1659
Potential violation of Law of Demeter (object not created locally) 1703
Potential violation of Law of Demeter (object not created locally) 1704
Potential violation of Law of Demeter (object not created locally) 1713
Potential violation of Law of Demeter (object not created locally) 1715
Avoid if (x != y) ..; else ..; 17241733
Avoid if (x != y) ..; else ..; 1725
Potential violation of Law of Demeter (method chain calls) 1730
Potential violation of Law of Demeter (object not created locally) 1772
Potential violation of Law of Demeter (object not created locally) 1773
Potential violation of Law of Demeter (method chain calls) 1785
Potential violation of Law of Demeter (object not created locally) 1790
Potential violation of Law of Demeter (object not created locally) 1791
Avoid if (x != y) ..; else ..; 18001810
Avoid if (x != y) ..; else ..; 1801
Potential violation of Law of Demeter (method chain calls) 1806
Potential violation of Law of Demeter (method chain calls) 1808
Potential violation of Law of Demeter (object not created locally) 1818
Avoid if (x != y) ..; else ..; 1818
Potential violation of Law of Demeter (object not created locally) 1822
Potential violation of Law of Demeter (method chain calls) 1829
Avoid if (x != y) ..; else ..; 18511865
Potential violation of Law of Demeter (method chain calls) 1852
Potential violation of Law of Demeter (object not created locally) 1852
Potential violation of Law of Demeter (method chain calls) 18531855
Potential violation of Law of Demeter (method chain calls) 1853
Potential violation of Law of Demeter (method chain calls) 18531855
Potential violation of Law of Demeter (method chain calls) 1854
Potential violation of Law of Demeter (object not created locally) 1854
Potential violation of Law of Demeter (object not created locally) 1858
Potential violation of Law of Demeter (object not created locally) 1859
Potential violation of Law of Demeter (method chain calls) 1860
Potential violation of Law of Demeter (method chain calls) 1860
Potential violation of Law of Demeter (method chain calls) 1864
Potential violation of Law of Demeter (object not created locally) 1864
Potential violation of Law of Demeter (object not created locally) 1878
Potential violation of Law of Demeter (object not created locally) 1880
Potential violation of Law of Demeter (object not created locally) 1881
Avoid if (x != y) ..; else ..; 18861890
Potential violation of Law of Demeter (method chain calls) 1908

org/apache/commons/jexl3/internal/InterpreterBase.java

Violation Line
Avoid if (x != y) ..; else ..; 62
Use equals() to compare object references. 65
Avoid unused constructor parameters such as 'jexla'. 77
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 87
Potential violation of Law of Demeter (object not created locally) 109
Potential violation of Law of Demeter (object not created locally) 125
Potential violation of Law of Demeter (object not created locally) 127
Potential violation of Law of Demeter (object not created locally) 140
Potential violation of Law of Demeter (object not created locally) 142
Potential violation of Law of Demeter (object not created locally) 152
Potential violation of Law of Demeter (object not created locally) 154
Use block level rather than method level synchronization 282289
Use block level rather than method level synchronization 295300
Potential violation of Law of Demeter (method chain calls) 297

org/apache/commons/jexl3/internal/LongRange.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 77
Avoid unnecessary if..then..else statements when returning booleans 9799
Potential violation of Law of Demeter (method chain calls) 119
Potential violation of Law of Demeter (method chain calls) 139
Potential violation of Law of Demeter (object not created locally) 142
Perhaps 'min' could be replaced by a local variable. 243
Perhaps 'max' could be replaced by a local variable. 286

org/apache/commons/jexl3/internal/Operators.java

Violation Line
Possible God class (WMC=70, ATFD=57, TCC=0.03571428571428571) 17370
Potential violation of Law of Demeter (static property access) 56
Potential violation of Law of Demeter (method chain calls) 56
Deeply nested if..then statements are hard to read 7783
Potential violation of Law of Demeter (object not created locally) 79
Potential violation of Law of Demeter (object not created locally) 80
Potential violation of Law of Demeter (object not created locally) 87
Deeply nested if..then statements are hard to read 8890
Potential violation of Law of Demeter (object not created locally) 132
Deeply nested if..then statements are hard to read 133135
Potential violation of Law of Demeter (method chain calls) 144
Potential violation of Law of Demeter (method chain calls) 144
Potential violation of Law of Demeter (object not created locally) 144
Potential violation of Law of Demeter (method chain calls) 146
Potential violation of Law of Demeter (method chain calls) 146
Potential violation of Law of Demeter (object not created locally) 146
Potential violation of Law of Demeter (object not created locally) 148
Potential violation of Law of Demeter (method chain calls) 148
Potential violation of Law of Demeter (method chain calls) 148
Potential violation of Law of Demeter (object not created locally) 150
Potential violation of Law of Demeter (method chain calls) 150
Potential violation of Law of Demeter (method chain calls) 150
Potential violation of Law of Demeter (method chain calls) 152
Potential violation of Law of Demeter (object not created locally) 152
Potential violation of Law of Demeter (method chain calls) 152
Potential violation of Law of Demeter (method chain calls) 154
Potential violation of Law of Demeter (method chain calls) 154
Potential violation of Law of Demeter (object not created locally) 154
Potential violation of Law of Demeter (method chain calls) 156
Potential violation of Law of Demeter (method chain calls) 156
Potential violation of Law of Demeter (object not created locally) 156
Potential violation of Law of Demeter (object not created locally) 158
Potential violation of Law of Demeter (method chain calls) 158
Potential violation of Law of Demeter (method chain calls) 158
Potential violation of Law of Demeter (object not created locally) 182
Potential violation of Law of Demeter (object not created locally) 189
Potential violation of Law of Demeter (object not created locally) 191
Potential violation of Law of Demeter (object not created locally) 192
Potential violation of Law of Demeter (object not created locally) 193
Potential violation of Law of Demeter (object not created locally) 195
The String literal " error" appears 6 times in this file; the first occurrence is on line 199 199
Potential violation of Law of Demeter (object not created locally) 202
Potential violation of Law of Demeter (object not created locally) 226
Potential violation of Law of Demeter (object not created locally) 233
Potential violation of Law of Demeter (object not created locally) 235
Potential violation of Law of Demeter (object not created locally) 236
Potential violation of Law of Demeter (object not created locally) 237
Potential violation of Law of Demeter (object not created locally) 239
Potential violation of Law of Demeter (object not created locally) 246
Potential violation of Law of Demeter (object not created locally) 274
Potential violation of Law of Demeter (object not created locally) 281
Potential violation of Law of Demeter (object not created locally) 283
Potential violation of Law of Demeter (object not created locally) 284
Potential violation of Law of Demeter (object not created locally) 285
Potential violation of Law of Demeter (object not created locally) 287
Potential violation of Law of Demeter (object not created locally) 294
Potential violation of Law of Demeter (method chain calls) 315
Potential violation of Law of Demeter (method chain calls) 315
Potential violation of Law of Demeter (object not created locally) 319
Potential violation of Law of Demeter (object not created locally) 324
Potential violation of Law of Demeter (object not created locally) 327
Potential violation of Law of Demeter (method chain calls) 351
Potential violation of Law of Demeter (method chain calls) 351
Potential violation of Law of Demeter (object not created locally) 355
Potential violation of Law of Demeter (object not created locally) 359
Potential violation of Law of Demeter (object not created locally) 360
Potential violation of Law of Demeter (method chain calls) 360
Potential violation of Law of Demeter (static property access) 360
Potential violation of Law of Demeter (static property access) 360
Potential violation of Law of Demeter (object not created locally) 360
Potential violation of Law of Demeter (method chain calls) 360
Potential violation of Law of Demeter (object not created locally) 362

org/apache/commons/jexl3/internal/Scope.java

Violation Line
Possible God class (WMC=61, ATFD=19, TCC=0.2916666666666667) 17356
Private field 'parent' could be made final; it is only initialized in the declaration or constructor. 31
Avoid if (x != y) ..; else ..; 5765
Avoid if (x != y) ..; else ..; 110
Avoid if (x != y) ..; else ..; 186199
Potential violation of Law of Demeter (object not created locally) 190
Potential violation of Law of Demeter (object not created locally) 191
Potential violation of Law of Demeter (object not created locally) 192
Potential violation of Law of Demeter (object not created locally) 193
Potential violation of Law of Demeter (method chain calls) 193
Avoid if (x != y) ..; else ..; 232
Potential violation of Law of Demeter (object not created locally) 244
Potential violation of Law of Demeter (method chain calls) 244
Potential violation of Law of Demeter (object not created locally) 245
Potential violation of Law of Demeter (method chain calls) 263
Potential violation of Law of Demeter (object not created locally) 263
Potential violation of Law of Demeter (object not created locally) 265
Private field 'curried' could be made final; it is only initialized in the declaration or constructor. 284
Potential violation of Law of Demeter (method chain calls) 308
Potential violation of Law of Demeter (method chain calls) 320

org/apache/commons/jexl3/internal/Script.java

Violation Line
Possible God class (WMC=49, ATFD=18, TCC=0.03463203463203463) 17376
Potential violation of Law of Demeter (method chain calls) 75
Consider using varargs for methods or constructors which take an array the last parameter. 90
Avoid if (x != y) ..; else ..; 133
Avoid if (x != y) ..; else ..; 134
Avoid unnecessary if..then..else statements when returning booleans 151153
Potential violation of Law of Demeter (object not created locally) 162
Potential violation of Law of Demeter (object not created locally) 163
Potential violation of Law of Demeter (object not created locally) 165
Potential violation of Law of Demeter (object not created locally) 178
Potential violation of Law of Demeter (object not created locally) 186
Consider using varargs for methods or constructors which take an array the last parameter. 201
Avoid if (x != y) ..; else ..; 204208
Avoid if (x != y) ..; else ..; 213
Potential violation of Law of Demeter (object not created locally) 239
Use equals() to compare object references. 346

org/apache/commons/jexl3/internal/SoftCache.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 78
Potential violation of Law of Demeter (method chain calls) 82
Potential violation of Law of Demeter (method chain calls) 93
Avoid if (x != y) ..; else ..; 95
Avoid if (x != y) ..; else ..; 96
Potential violation of Law of Demeter (object not created locally) 96
Potential violation of Law of Demeter (method chain calls) 98
Potential violation of Law of Demeter (method chain calls) 109
Avoid if (x != y) ..; else ..; 111
Potential violation of Law of Demeter (method chain calls) 118
Potential violation of Law of Demeter (method chain calls) 130
Avoid if (x != y) ..; else ..; 132
Potential violation of Law of Demeter (object not created locally) 136
Potential violation of Law of Demeter (object not created locally) 137
Potential violation of Law of Demeter (method chain calls) 143

org/apache/commons/jexl3/internal/TemplateDebugger.java

Violation Line
Document empty constructor 4748
Potential violation of Law of Demeter (object not created locally) 73
Potential violation of Law of Demeter (object not created locally) 73
Potential violation of Law of Demeter (object not created locally) 74
Potential violation of Law of Demeter (object not created locally) 154
Potential violation of Law of Demeter (object not created locally) 156
Potential violation of Law of Demeter (object not created locally) 157
Potential violation of Law of Demeter (object not created locally) 158
Potential violation of Law of Demeter (object not created locally) 159
Potential violation of Law of Demeter (object not created locally) 160
Potential violation of Law of Demeter (object not created locally) 161
Potential violation of Law of Demeter (object not created locally) 162
Potential violation of Law of Demeter (object not created locally) 163
Potential violation of Law of Demeter (method chain calls) 164
Potential violation of Law of Demeter (object not created locally) 164
A switch statement does not contain a break 207225

org/apache/commons/jexl3/internal/TemplateEngine.java

Violation Line
Possible God class (WMC=159, ATFD=59, TCC=0.027093596059113302) 171140
Avoid using implementation types like 'ArrayList'; use the interface instead 121
Potential violation of Law of Demeter (method chain calls) 137
Potential violation of Law of Demeter (method chain calls) 137
Potential violation of Law of Demeter (method chain calls) 137
Avoid appending characters as strings in StringBuffer.append. 160
Potential violation of Law of Demeter (method chain calls) 177
Avoid if (x != y) ..; else ..; 219
An empty method in an abstract class should be abstract instead 239241
An empty method in an abstract class should be abstract instead 276278
Potential violation of Law of Demeter (object not created locally) 299
Potential violation of Law of Demeter (static property access) 299
Potential violation of Law of Demeter (object not created locally) 299
Potential violation of Law of Demeter (static property access) 335
Potential violation of Law of Demeter (object not created locally) 335
Potential violation of Law of Demeter (object not created locally) 335
Avoid reassigning parameters such as 'val' 366
Avoid appending characters as strings in StringBuffer.append. 418
Avoid appending characters as strings in StringBuffer.append. 420
Avoid if (x != y) ..; else ..; 468
Potential violation of Law of Demeter (method chain calls) 542
Potential violation of Law of Demeter (method chain calls) 549
Avoid using implementation types like 'ArrayList'; use the interface instead 566
Avoid instantiation through private constructors from outside of the constructors class. 620
Potential violation of Law of Demeter (object not created locally) 625
Use equals() to compare object references. 631
Potential violation of Law of Demeter (method chain calls) 633
Potential violation of Law of Demeter (method chain calls) 643
Potential violation of Law of Demeter (method chain calls) 643
Potential violation of Law of Demeter (object not created locally) 645
Potential violation of Law of Demeter (object not created locally) 645
Potential violation of Law of Demeter (object not created locally) 648
Avoid reassigning parameters such as 'info' 655
Potential violation of Law of Demeter (object not created locally) 668
Potential violation of Law of Demeter (object not created locally) 672
Potential violation of Law of Demeter (object not created locally) 672
Potential violation of Law of Demeter (static property access) 672
Avoid appending characters as strings in StringBuffer.append. 695
Potential violation of Law of Demeter (object not created locally) 699
Avoid instantiation through private constructors from outside of the constructors class. 734
A high ratio of statements to labels in a switch statement. Consider refactoring. 745879
A switch statement does not contain a break 745879
The default label should be the last label in a switch statement 745879
Potential violation of Law of Demeter (object not created locally) 758
Potential violation of Law of Demeter (object not created locally) 765
Potential violation of Law of Demeter (object not created locally) 766
Potential violation of Law of Demeter (object not created locally) 767
Potential violation of Law of Demeter (object not created locally) 768
Potential violation of Law of Demeter (object not created locally) 772
Potential violation of Law of Demeter (object not created locally) 773
Potential violation of Law of Demeter (object not created locally) 781
Potential violation of Law of Demeter (object not created locally) 782
Potential violation of Law of Demeter (object not created locally) 783
Potential violation of Law of Demeter (object not created locally) 784
Potential violation of Law of Demeter (object not created locally) 788
Potential violation of Law of Demeter (object not created locally) 789
Potential violation of Law of Demeter (object not created locally) 797
Potential violation of Law of Demeter (object not created locally) 800
Potential violation of Law of Demeter (object not created locally) 805
Potential violation of Law of Demeter (object not created locally) 806
Potential violation of Law of Demeter (object not created locally) 814
Potential violation of Law of Demeter (object not created locally) 820
Potential violation of Law of Demeter (object not created locally) 828
Potential violation of Law of Demeter (object not created locally) 828
Potential violation of Law of Demeter (object not created locally) 832
Potential violation of Law of Demeter (object not created locally) 841
Potential violation of Law of Demeter (object not created locally) 846
Potential violation of Law of Demeter (object not created locally) 855
Potential violation of Law of Demeter (object not created locally) 859
Potential violation of Law of Demeter (object not created locally) 860
Potential violation of Law of Demeter (object not created locally) 866
Potential violation of Law of Demeter (object not created locally) 871
Potential violation of Law of Demeter (object not created locally) 873
Potential violation of Law of Demeter (object not created locally) 875
Potential violation of Law of Demeter (object not created locally) 876
Potential violation of Law of Demeter (object not created locally) 889
Potential violation of Law of Demeter (object not created locally) 890
Potential violation of Law of Demeter (object not created locally) 891
Potential violation of Law of Demeter (object not created locally) 893
Potential violation of Law of Demeter (static property access) 952
Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. 971980
Potential violation of Law of Demeter (static property access) 972
Avoid reassigning parameters such as 'sequence' 992
Potential violation of Law of Demeter (method chain calls) 1000
Potential violation of Law of Demeter (object not created locally) 1032
Potential violation of Law of Demeter (object not created locally) 1038
Potential violation of Law of Demeter (object not created locally) 1091
Potential violation of Law of Demeter (object not created locally) 1091
Potential violation of Law of Demeter (object not created locally) 1091
Potential violation of Law of Demeter (object not created locally) 1094
Potential violation of Law of Demeter (object not created locally) 1094
Potential violation of Law of Demeter (object not created locally) 1094
Potential violation of Law of Demeter (object not created locally) 1101
Potential violation of Law of Demeter (object not created locally) 1102
Potential violation of Law of Demeter (object not created locally) 1103
Potential violation of Law of Demeter (object not created locally) 1105
Potential violation of Law of Demeter (object not created locally) 1105
Potential violation of Law of Demeter (object not created locally) 1105
Potential violation of Law of Demeter (object not created locally) 1109
Potential violation of Law of Demeter (object not created locally) 1109
Potential violation of Law of Demeter (object not created locally) 1109
Potential violation of Law of Demeter (object not created locally) 1115
Potential violation of Law of Demeter (object not created locally) 1116
Potential violation of Law of Demeter (object not created locally) 1117
Potential violation of Law of Demeter (object not created locally) 1119
Potential violation of Law of Demeter (object not created locally) 1119
Potential violation of Law of Demeter (object not created locally) 1119
Potential violation of Law of Demeter (object not created locally) 1122
Potential violation of Law of Demeter (object not created locally) 1122
Potential violation of Law of Demeter (object not created locally) 1122
Potential violation of Law of Demeter (object not created locally) 1128
Potential violation of Law of Demeter (object not created locally) 1129
Potential violation of Law of Demeter (object not created locally) 1130
Potential violation of Law of Demeter (object not created locally) 1132

org/apache/commons/jexl3/internal/TemplateInterpreter.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 78
Potential violation of Law of Demeter (object not created locally) 79
Potential violation of Law of Demeter (object not created locally) 84
Potential violation of Law of Demeter (object not created locally) 84
Potential violation of Law of Demeter (method chain calls) 97
Potential violation of Law of Demeter (method chain calls) 97
Potential violation of Law of Demeter (method chain calls) 98
Potential violation of Law of Demeter (method chain calls) 98
Potential violation of Law of Demeter (method chain calls) 98
Potential violation of Law of Demeter (method chain calls) 98
Potential violation of Law of Demeter (object not created locally) 119
Avoid if (x != y) ..; else ..; 120124
Potential violation of Law of Demeter (object not created locally) 121
Potential violation of Law of Demeter (object not created locally) 148
Potential violation of Law of Demeter (method chain calls) 152

org/apache/commons/jexl3/internal/TemplateScript.java

Violation Line
Avoid reassigning parameters such as 'info' 59
Consider using varargs for methods or constructors which take an array the last parameter. 129
Potential violation of Law of Demeter (method chain calls) 168
Potential violation of Law of Demeter (method chain calls) 168
Potential violation of Law of Demeter (method chain calls) 179
Potential violation of Law of Demeter (method chain calls) 179

org/apache/commons/jexl3/internal/introspection/AbstractExecutor.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 56
Potential violation of Law of Demeter (method chain calls) 56
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 78
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 80
Potential violation of Law of Demeter (object not created locally) 125
An empty method in an abstract class should be abstract instead 170172

org/apache/commons/jexl3/internal/introspection/ArrayIterator.java

Violation Line
Avoid if (x != y) ..; else ..; 5763

org/apache/commons/jexl3/internal/introspection/BooleanGetExecutor.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 40
Potential violation of Law of Demeter (object not created locally) 40
Potential violation of Law of Demeter (object not created locally) 40

org/apache/commons/jexl3/internal/introspection/ClassMap.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 53
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 61
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 76
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 80
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 84
Potential violation of Law of Demeter (object not created locally) 144
Use equals() to compare object references. 170
Avoid reassigning parameters such as 'classToReflect' 202
Potential violation of Law of Demeter (method chain calls) 217
Potential violation of Law of Demeter (static property access) 221
Potential violation of Law of Demeter (static property access) 222
Potential violation of Law of Demeter (static property access) 223
Potential violation of Law of Demeter (object not created locally) 224
Potential violation of Law of Demeter (method chain calls) 230
Potential violation of Law of Demeter (object not created locally) 235
Potential violation of Law of Demeter (method chain calls) 236
Potential violation of Law of Demeter (object not created locally) 236
Potential violation of Law of Demeter (object not created locally) 238
Potential violation of Law of Demeter (object not created locally) 239
Potential violation of Law of Demeter (method chain calls) 239
Potential violation of Law of Demeter (object not created locally) 240
Potential violation of Law of Demeter (static property access) 247
Potential violation of Law of Demeter (method chain calls) 265
Potential violation of Law of Demeter (object not created locally) 280

org/apache/commons/jexl3/internal/introspection/ConstructorMethod.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 43
Avoid if (x != y) ..; else ..; 4448
Avoid if (x != y) ..; else ..; 5054
Potential violation of Law of Demeter (object not created locally) 70
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (method chain calls) 72
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (object not created locally) 90
Potential violation of Law of Demeter (method chain calls) 90
Potential violation of Law of Demeter (method chain calls) 93
Potential violation of Law of Demeter (object not created locally) 93

org/apache/commons/jexl3/internal/introspection/FieldGetExecutor.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 64

org/apache/commons/jexl3/internal/introspection/FieldSetExecutor.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 46
Potential violation of Law of Demeter (object not created locally) 47
Potential violation of Law of Demeter (method chain calls) 70

org/apache/commons/jexl3/internal/introspection/IndexedType.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 58
Consider using varargs for methods or constructors which take an array the last parameter. 136
Avoid instantiation through private constructors from outside of the constructors class. 146
Avoid instantiation through private constructors from outside of the constructors class. 157
Potential violation of Law of Demeter (object not created locally) 185
Potential violation of Law of Demeter (method chain calls) 186
Potential violation of Law of Demeter (method chain calls) 186
Potential violation of Law of Demeter (object not created locally) 187
Potential violation of Law of Demeter (method chain calls) 191
Potential violation of Law of Demeter (method chain calls) 191
Potential violation of Law of Demeter (object not created locally) 193
Potential violation of Law of Demeter (object not created locally) 195
Potential violation of Law of Demeter (method chain calls) 201
Potential violation of Law of Demeter (object not created locally) 218
Potential violation of Law of Demeter (method chain calls) 219
Potential violation of Law of Demeter (method chain calls) 219
Potential violation of Law of Demeter (method chain calls) 221
Potential violation of Law of Demeter (method chain calls) 221
Potential violation of Law of Demeter (object not created locally) 222
Potential violation of Law of Demeter (method chain calls) 226
Potential violation of Law of Demeter (method chain calls) 226
Potential violation of Law of Demeter (object not created locally) 228
Potential violation of Law of Demeter (object not created locally) 230
Potential violation of Law of Demeter (method chain calls) 236

org/apache/commons/jexl3/internal/introspection/Introspector.java

Violation Line
Possible God class (WMC=48, ATFD=19, TCC=0.16363636363636364) 17379
Document empty constructor 5556
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 61
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 65
Avoid protected fields in a final class. Change to private or package access. 65
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 69
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 73
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 77
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 81
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 85
Consider using varargs for methods or constructors which take an array the last parameter. 118
Potential violation of Law of Demeter (method chain calls) 132
Potential violation of Law of Demeter (method chain calls) 152
Potential violation of Law of Demeter (object not created locally) 165
Potential violation of Law of Demeter (object not created locally) 178
Potential violation of Law of Demeter (object not created locally) 192
Potential violation of Law of Demeter (method chain calls) 216
Potential violation of Law of Demeter (method chain calls) 223
Potential violation of Law of Demeter (method chain calls) 227
Potential violation of Law of Demeter (method chain calls) 240
Potential violation of Law of Demeter (object not created locally) 249
Potential violation of Law of Demeter (object not created locally) 250
Potential violation of Law of Demeter (object not created locally) 251
Potential violation of Law of Demeter (object not created locally) 255
Avoid if (x != y) ..; else ..; 256260
Potential violation of Law of Demeter (method chain calls) 278
Potential violation of Law of Demeter (method chain calls) 290
Potential violation of Law of Demeter (method chain calls) 293
Potential violation of Law of Demeter (method chain calls) 297
Potential violation of Law of Demeter (method chain calls) 305
Avoid reassigning parameters such as 'cloader' 317
Potential violation of Law of Demeter (method chain calls) 320
Potential violation of Law of Demeter (method chain calls) 324
Potential violation of Law of Demeter (method chain calls) 326
Potential violation of Law of Demeter (method chain calls) 329
Potential violation of Law of Demeter (object not created locally) 329
Potential violation of Law of Demeter (object not created locally) 333
Potential violation of Law of Demeter (method chain calls) 333
Potential violation of Law of Demeter (method chain calls) 333
Potential violation of Law of Demeter (method chain calls) 337
Potential violation of Law of Demeter (object not created locally) 340
Potential violation of Law of Demeter (method chain calls) 347
Potential violation of Law of Demeter (object not created locally) 370
Potential violation of Law of Demeter (object not created locally) 373

org/apache/commons/jexl3/internal/introspection/ListGetExecutor.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 49
Potential violation of Law of Demeter (method chain calls) 77
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (object not created locally) 90
Potential violation of Law of Demeter (method chain calls) 90

org/apache/commons/jexl3/internal/introspection/ListSetExecutor.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 57
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (object not created locally) 100
Potential violation of Law of Demeter (object not created locally) 104
Potential violation of Law of Demeter (object not created locally) 104

org/apache/commons/jexl3/internal/introspection/MapGetExecutor.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 42
Potential violation of Law of Demeter (object not created locally) 69
Potential violation of Law of Demeter (method chain calls) 78
Potential violation of Law of Demeter (object not created locally) 81

org/apache/commons/jexl3/internal/introspection/MapSetExecutor.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 42
Potential violation of Law of Demeter (object not created locally) 69
Potential violation of Law of Demeter (method chain calls) 79
Potential violation of Law of Demeter (object not created locally) 82

org/apache/commons/jexl3/internal/introspection/MethodExecutor.java

Violation Line
Consider using varargs for methods or constructors which take an array the last parameter. 49
Potential violation of Law of Demeter (object not created locally) 53
Potential violation of Law of Demeter (method chain calls) 90
Consider using varargs for methods or constructors which take an array the last parameter. 124
Avoid reassigning parameters such as 'actual' 124
Potential violation of Law of Demeter (method chain calls) 135
Potential violation of Law of Demeter (method chain calls) 135
Potential violation of Law of Demeter (object not created locally) 136
Potential violation of Law of Demeter (object not created locally) 136
Potential violation of Law of Demeter (object not created locally) 136
Potential violation of Law of Demeter (method chain calls) 139

org/apache/commons/jexl3/internal/introspection/MethodKey.java

Violation Line
Possible God class (WMC=149, ATFD=142, TCC=0.13157894736842105) 17781
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 82
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 84
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 86
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 88
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 90
Consider using varargs for methods or constructors which take an array the last parameter. 97
Consider using varargs for methods or constructors which take an array the last parameter. 140
Potential violation of Law of Demeter (method chain calls) 210
Potential violation of Law of Demeter (method chain calls) 210
Potential violation of Law of Demeter (method chain calls) 234
Potential violation of Law of Demeter (method chain calls) 234
Potential violation of Law of Demeter (object not created locally) 242
Potential violation of Law of Demeter (object not created locally) 243
Potential violation of Law of Demeter (object not created locally) 249
Consider using varargs for methods or constructors which take an array the last parameter. 260
Consider using varargs for methods or constructors which take an array the last parameter. 270
Avoid reassigning parameters such as 'actual' 294
Avoid reassigning parameters such as 'actual' 376
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 426
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 430
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 434
Consider using varargs for methods or constructors which take an array the last parameter. 487
Potential violation of Law of Demeter (object not created locally) 490
Potential violation of Law of Demeter (object not created locally) 494
Potential violation of Law of Demeter (object not created locally) 495
Potential violation of Law of Demeter (object not created locally) 507
Potential violation of Law of Demeter (object not created locally) 535
Potential violation of Law of Demeter (object not created locally) 538
Potential violation of Law of Demeter (object not created locally) 542
Consider using varargs for methods or constructors which take an array the last parameter. 554
Potential violation of Law of Demeter (method chain calls) 575
Potential violation of Law of Demeter (method chain calls) 575
Potential violation of Law of Demeter (method chain calls) 576
Potential violation of Law of Demeter (method chain calls) 576
Potential violation of Law of Demeter (method chain calls) 595
Potential violation of Law of Demeter (method chain calls) 598
Potential violation of Law of Demeter (object not created locally) 626
Consider using varargs for methods or constructors which take an array the last parameter. 641
Avoid using implementation types like 'LinkedList'; use the interface instead 641
Consider using varargs for methods or constructors which take an array the last parameter. 659
Potential violation of Law of Demeter (method chain calls) 669
Potential violation of Law of Demeter (method chain calls) 669
Potential violation of Law of Demeter (method chain calls) 671
Potential violation of Law of Demeter (method chain calls) 671
Potential violation of Law of Demeter (method chain calls) 674
Potential violation of Law of Demeter (method chain calls) 674
Potential violation of Law of Demeter (method chain calls) 695
Potential violation of Law of Demeter (method chain calls) 695
Potential violation of Law of Demeter (method chain calls) 706
Potential violation of Law of Demeter (method chain calls) 706
Potential violation of Law of Demeter (method chain calls) 712
Potential violation of Law of Demeter (method chain calls) 712
Potential violation of Law of Demeter (method chain calls) 714

org/apache/commons/jexl3/internal/introspection/Permissions.java

Violation Line
A class which only has private constructors should be final 29199
Avoid unnecessary if..then..else statements when returning booleans 5961
Avoid unnecessary if..then..else statements when returning booleans 8082
Potential violation of Law of Demeter (object not created locally) 104
Potential violation of Law of Demeter (object not created locally) 109
Potential violation of Law of Demeter (object not created locally) 115
Potential violation of Law of Demeter (object not created locally) 121
Avoid reassigning parameters such as 'clazz' 133
Avoid reassigning parameters such as 'clazz' 133
Potential violation of Law of Demeter (object not created locally) 139
Potential violation of Law of Demeter (object not created locally) 146
Deeply nested if..then statements are hard to read 180182
Potential violation of Law of Demeter (object not created locally) 184
Deeply nested if..then statements are hard to read 185187

org/apache/commons/jexl3/internal/introspection/PropertyGetExecutor.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 102
Potential violation of Law of Demeter (object not created locally) 104
Potential violation of Law of Demeter (object not created locally) 105
Potential violation of Law of Demeter (object not created locally) 106
Potential violation of Law of Demeter (object not created locally) 109
Potential violation of Law of Demeter (object not created locally) 110

org/apache/commons/jexl3/internal/introspection/PropertySetExecutor.java

Violation Line
Avoid if (x != y) ..; else ..; 47
Avoid reassigning parameters such as 'arg' 67
Potential violation of Law of Demeter (method chain calls) 73
Potential violation of Law of Demeter (method chain calls) 73
Potential violation of Law of Demeter (object not created locally) 74
Potential violation of Law of Demeter (method chain calls) 74
Potential violation of Law of Demeter (method chain calls) 74
Deeply nested if..then statements are hard to read 7476
Potential violation of Law of Demeter (method chain calls) 109
Potential violation of Law of Demeter (object not created locally) 127
Potential violation of Law of Demeter (object not created locally) 129
Potential violation of Law of Demeter (object not created locally) 130
Potential violation of Law of Demeter (object not created locally) 131
Potential violation of Law of Demeter (object not created locally) 134
Potential violation of Law of Demeter (object not created locally) 135
Potential violation of Law of Demeter (object not created locally) 138
Potential violation of Law of Demeter (object not created locally) 139
Deeply nested if..then statements are hard to read 141144
Potential violation of Law of Demeter (object not created locally) 142
Potential violation of Law of Demeter (object not created locally) 143
Potential violation of Law of Demeter (object not created locally) 163
Potential violation of Law of Demeter (method chain calls) 164
Potential violation of Law of Demeter (method chain calls) 164
Deeply nested if..then statements are hard to read 165169

org/apache/commons/jexl3/internal/introspection/SandboxUberspect.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 71
Avoid if (x != y) ..; else ..; 7276
Potential violation of Law of Demeter (method chain calls) 86
Potential violation of Law of Demeter (method chain calls) 86
Potential violation of Law of Demeter (method chain calls) 110
Potential violation of Law of Demeter (method chain calls) 110
Potential violation of Law of Demeter (method chain calls) 129
Potential violation of Law of Demeter (method chain calls) 129

org/apache/commons/jexl3/internal/introspection/Uberspect.java

Violation Line
Possible God class (WMC=77, ATFD=27, TCC=0.022058823529411766) 17459
Avoid if (x != y) ..; else ..; 116121
Potential violation of Law of Demeter (method chain calls) 139
Potential violation of Law of Demeter (method chain calls) 152
Potential violation of Law of Demeter (method chain calls) 161
Consider using varargs for methods or constructors which take an array the last parameter. 178
Potential violation of Law of Demeter (method chain calls) 194
Potential violation of Law of Demeter (method chain calls) 203
Potential violation of Law of Demeter (method chain calls) 213
A switch statement does not contain a break 242283
Use equals() to compare object references. 264
Potential violation of Law of Demeter (object not created locally) 285
A switch statement does not contain a break 310341
Use equals() to compare object references. 330
Potential violation of Law of Demeter (object not created locally) 343
Potential violation of Law of Demeter (method chain calls) 358
Potential violation of Law of Demeter (method chain calls) 362
Potential violation of Law of Demeter (method chain calls) 362
Potential violation of Law of Demeter (method chain calls) 368
Potential violation of Law of Demeter (method chain calls) 375
Potential violation of Law of Demeter (object not created locally) 375
Potential violation of Law of Demeter (object not created locally) 376
Potential violation of Law of Demeter (method chain calls) 442
Potential violation of Law of Demeter (method chain calls) 442
Avoid instantiation through private constructors from outside of the constructors class. 455

org/apache/commons/jexl3/introspection/JexlSandbox.java

Violation Line
Possible God class (WMC=56, ATFD=11, TCC=0.022222222222222223) 18494
Potential violation of Law of Demeter (method chain calls) 114
Potential violation of Law of Demeter (method chain calls) 114
Potential violation of Law of Demeter (object not created locally) 142
Potential violation of Law of Demeter (method chain calls) 142
Potential violation of Law of Demeter (method chain calls) 169
Potential violation of Law of Demeter (object not created locally) 169
Potential violation of Law of Demeter (method chain calls) 196
Potential violation of Law of Demeter (object not created locally) 196
Avoid if (x != y) ..; else ..; 322
Avoid if (x != y) ..; else ..; 361
Avoid if (x != y) ..; else ..; 362
Avoid if (x != y) ..; else ..; 363
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 443

org/apache/commons/jexl3/introspection/JexlUberspect.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 101
Potential violation of Law of Demeter (method chain calls) 101
Potential violation of Law of Demeter (method chain calls) 106
Potential violation of Law of Demeter (method chain calls) 106
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 113120
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 125132

org/apache/commons/jexl3/parser/ASTArrayLiteral.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 53
Potential violation of Law of Demeter (object not created locally) 54

org/apache/commons/jexl3/parser/ASTIdentifierAccess.java

Violation Line
Avoid if (x != y) ..; else ..; 72

org/apache/commons/jexl3/parser/ASTJexlLambda.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 48
Potential violation of Law of Demeter (object not created locally) 50

org/apache/commons/jexl3/parser/ASTJexlScript.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 46
Potential violation of Law of Demeter (object not created locally) 102
Avoid if (x != y) ..; else ..; 113
Avoid if (x != y) ..; else ..; 121
Avoid if (x != y) ..; else ..; 129
Avoid if (x != y) ..; else ..; 137
Avoid if (x != y) ..; else ..; 146

org/apache/commons/jexl3/parser/ASTMapLiteral.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 50
Potential violation of Law of Demeter (object not created locally) 51

org/apache/commons/jexl3/parser/ASTSetLiteral.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 49

org/apache/commons/jexl3/parser/JexlNode.java

Violation Line
An empty method in an abstract class should be abstract instead 5557
Potential violation of Law of Demeter (object not created locally) 68
Potential violation of Law of Demeter (object not created locally) 69
Potential violation of Law of Demeter (object not created locally) 72
Avoid if (x != y) ..; else ..; 78
Potential violation of Law of Demeter (object not created locally) 78
Potential violation of Law of Demeter (method chain calls) 99
Potential violation of Law of Demeter (object not created locally) 118
Potential violation of Law of Demeter (object not created locally) 123
Potential violation of Law of Demeter (object not created locally) 127
Potential violation of Law of Demeter (object not created locally) 147
Avoid unnecessary if..then..else statements when returning booleans 149151

org/apache/commons/jexl3/parser/JexlParser.java

Violation Line
Avoid if (x != y) ..; else ..; 9599
Potential violation of Law of Demeter (object not created locally) 112
Potential violation of Law of Demeter (object not created locally) 129
An empty method in an abstract class should be abstract instead 161163
An empty method in an abstract class should be abstract instead 169171
An empty method in an abstract class should be abstract instead 173174
Document empty method body 173174
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 180191
Potential violation of Law of Demeter (object not created locally) 202
Potential violation of Law of Demeter (object not created locally) 203
Potential violation of Law of Demeter (object not created locally) 210
Avoid if (x != y) ..; else ..; 225229
Potential violation of Law of Demeter (object not created locally) 228
Potential violation of Law of Demeter (object not created locally) 230
Potential violation of Law of Demeter (object not created locally) 232
Avoid if (x != y) ..; else ..; 251255
Avoid if (x != y) ..; else ..; 258265
Potential violation of Law of Demeter (object not created locally) 260
Potential violation of Law of Demeter (object not created locally) 261
Potential violation of Law of Demeter (method chain calls) 269
Potential violation of Law of Demeter (method chain calls) 272

org/apache/commons/jexl3/parser/NumberParser.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 38
Potential violation of Law of Demeter (method chain calls) 42
Potential violation of Law of Demeter (method chain calls) 44
Potential violation of Law of Demeter (method chain calls) 46
Potential violation of Law of Demeter (method chain calls) 48
Potential violation of Law of Demeter (method chain calls) 50
Potential violation of Law of Demeter (method chain calls) 62
Avoid reassigning parameters such as 's' 86
A switch statement does not contain a break 102127

org/apache/commons/jexl3/parser/ParseException.java

Violation Line
Avoid unused constructor parameters such as 'expectedTokenSequences'. 56
Avoid unused constructor parameters such as 'tokenImage'. 56
Consider using varargs for methods or constructors which take an array the last parameter. 56

org/apache/commons/jexl3/parser/ParserVisitor.java

Violation Line
Potential violation of Law of Demeter (method chain calls) 30

org/apache/commons/jexl3/parser/SimpleNode.java

Violation Line
Avoid unused constructor parameters such as 'p'. 57
Document empty method body 6263
Document empty method body 6667
Consider using varargs for methods or constructors which take an array the last parameter. 104
Potential violation of Law of Demeter (method chain calls) 161
Potential violation of Law of Demeter (method chain calls) 161
Potential violation of Law of Demeter (object not created locally) 189

org/apache/commons/jexl3/parser/StringParser.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 36209
Document empty constructor 3839
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 69
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 112
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 114
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 145
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 147
A switch statement does not contain a break 163203
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 195
Potential violation of Law of Demeter (object not created locally) 198

org/apache/commons/jexl3/parser/TokenMgrError.java

Violation Line
Private field 'errorCode' could be made final; it is only initialized in the declaration or constructor. 53
Perhaps 'state' could be replaced by a local variable. 58
A switch statement does not contain a break 144180
Potential violation of Law of Demeter (object not created locally) 149
Potential violation of Law of Demeter (object not created locally) 152
Potential violation of Law of Demeter (object not created locally) 155
Potential violation of Law of Demeter (object not created locally) 158
Potential violation of Law of Demeter (object not created locally) 161
Potential violation of Law of Demeter (object not created locally) 164
Potential violation of Law of Demeter (object not created locally) 167
Potential violation of Law of Demeter (object not created locally) 170
Potential violation of Law of Demeter (object not created locally) 175
Potential violation of Law of Demeter (object not created locally) 175
Potential violation of Law of Demeter (object not created locally) 175
Potential violation of Law of Demeter (object not created locally) 175
Potential violation of Law of Demeter (object not created locally) 177
Potential violation of Law of Demeter (object not created locally) 182

org/apache/commons/jexl3/scripting/JexlScriptEngine.java

Violation Line
Avoid if (x != y) ..; else ..; 136140
Avoid if (x != y) ..; else ..; 152156
Avoid instantiation through private constructors from outside of the constructors class. 227
Potential violation of Law of Demeter (object not created locally) 228
New exception is thrown in catch block, original stack trace may be lost 230
Avoid instantiation through private constructors from outside of the constructors class. 247
New exception is thrown in catch block, original stack trace may be lost 249
Potential violation of Law of Demeter (object not created locally) 280
Potential violation of Law of Demeter (object not created locally) 281
Potential violation of Law of Demeter (object not created locally) 283
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 297
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 309
Potential violation of Law of Demeter (method chain calls) 348
Potential violation of Law of Demeter (object not created locally) 354
Avoid instantiation through private constructors from outside of the constructors class. 385
New exception is thrown in catch block, original stack trace may be lost 388

org/apache/commons/jexl3/scripting/JexlScriptEngineFactory.java

Violation Line
Potential violation of Law of Demeter (object not created locally) 68
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 68
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 69
Potential violation of Law of Demeter (object not created locally) 69
Potential violation of Law of Demeter (object not created locally) 70
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 70
Potential violation of Law of Demeter (object not created locally) 71
Potential violation of Law of Demeter (object not created locally) 75
Potential violation of Law of Demeter (object not created locally) 77
Potential violation of Law of Demeter (object not created locally) 80
Potential violation of Law of Demeter (object not created locally) 81
Position literals first in String comparisons 124

org/apache/commons/jexl3/scripting/Main.java

Violation Line
All methods are static. Consider using a utility class instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. 3491
Potential violation of Law of Demeter (object not created locally) 71
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (object not created locally) 74
Potential violation of Law of Demeter (method chain calls) 74
Potential violation of Law of Demeter (method chain calls) 74
Potential violation of Law of Demeter (object not created locally) 80
Potential violation of Law of Demeter (object not created locally) 82
Potential violation of Law of Demeter (object not created locally) 85