Apache Commons logo Apache Commons JEXL

PMD Results

The following document contains the results of PMD 5.3.2.

Files

org/apache/commons/jexl3/JexlArithmetic.java

Violation Line
Possible God class (WMC=305, ATFD=70, TCC=0.0018148820326678765) 181454
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. 63
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 66
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. 72
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 75
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. 81
Avoid if (x != y) ..; else ..; 123129
Potential violation of Law of Demeter (static property access) 270
Potential violation of Law of Demeter (static property access) 272
Potential violation of Law of Demeter (method chain calls) 313
Potential violation of Law of Demeter (method chain calls) 313
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 346
Potential violation of Law of Demeter (object not created locally) 361
Potential violation of Law of Demeter (object not created locally) 362
Potential violation of Law of Demeter (method chain calls) 365
Potential violation of Law of Demeter (object not created locally) 441
Potential violation of Law of Demeter (object not created locally) 442
Potential violation of Law of Demeter (object not created locally) 446
Potential violation of Law of Demeter (object not created locally) 465
Potential violation of Law of Demeter (object not created locally) 472
Potential violation of Law of Demeter (object not created locally) 473
Consider using varargs for methods or constructors which take an array the last parameter. 562
Potential violation of Law of Demeter (object not created locally) 569
Potential violation of Law of Demeter (object not created locally) 602
Potential violation of Law of Demeter (object not created locally) 614
Potential violation of Law of Demeter (method chain calls) 622
Potential violation of Law of Demeter (static property access) 641
Potential violation of Law of Demeter (object not created locally) 644
Potential violation of Law of Demeter (static property access) 659
Potential violation of Law of Demeter (object not created locally) 662
Potential violation of Law of Demeter (static property access) 682
Potential violation of Law of Demeter (object not created locally) 685
Potential violation of Law of Demeter (object not created locally) 700
Potential violation of Law of Demeter (static property access) 701
Potential violation of Law of Demeter (object not created locally) 722
Potential violation of Law of Demeter (object not created locally) 734
Potential violation of Law of Demeter (object not created locally) 753
Potential violation of Law of Demeter (object not created locally) 765
Potential violation of Law of Demeter (method chain calls) 783
Potential violation of Law of Demeter (method chain calls) 785
Unnecessary use of fully qualified name 'java.util.regex.Pattern' due to existing import 'java.util.regex.Pattern' 817
Unnecessary use of fully qualified name 'java.util.regex.Pattern' due to existing import 'java.util.regex.Pattern' 818
Potential violation of Law of Demeter (method chain calls) 818
Potential violation of Law of Demeter (method chain calls) 818
Potential violation of Law of Demeter (method chain calls) 821
Potential violation of Law of Demeter (method chain calls) 826
Potential violation of Law of Demeter (method chain calls) 826
Potential violation of Law of Demeter (method chain calls) 826
Potential violation of Law of Demeter (method chain calls) 826
Potential violation of Law of Demeter (method chain calls) 828
Potential violation of Law of Demeter (method chain calls) 833
Potential violation of Law of Demeter (method chain calls) 836
Potential violation of Law of Demeter (method chain calls) 858
Potential violation of Law of Demeter (method chain calls) 880
Potential violation of Law of Demeter (method chain calls) 893
Potential violation of Law of Demeter (method chain calls) 899
Potential violation of Law of Demeter (method chain calls) 903
Potential violation of Law of Demeter (method chain calls) 907
Potential violation of Law of Demeter (method chain calls) 920
Potential violation of Law of Demeter (method chain calls) 922
Potential violation of Law of Demeter (method chain calls) 926
Potential violation of Law of Demeter (method chain calls) 929
Consider simply returning the value vs storing it in local variable 'l' 981
Potential violation of Law of Demeter (object not created locally) 1008
Potential violation of Law of Demeter (object not created locally) 1012
Potential violation of Law of Demeter (method chain calls) 1043
Potential violation of Law of Demeter (object not created locally) 1049
Potential violation of Law of Demeter (object not created locally) 1053
Use equals() to compare object references. 1067
Use equals() to compare object references. 1086
Use equals() to compare object references. 1102
Use equals() to compare object references. 1117
Use equals() to compare object references. 1134
Potential violation of Law of Demeter (object not created locally) 1161
Potential violation of Law of Demeter (object not created locally) 1186
Potential violation of Law of Demeter (method chain calls) 1189
Potential violation of Law of Demeter (method chain calls) 1202
Potential violation of Law of Demeter (object not created locally) 1223
Potential violation of Law of Demeter (method chain calls) 1226
Potential violation of Law of Demeter (method chain calls) 1240
Potential violation of Law of Demeter (object not created locally) 1263
Potential violation of Law of Demeter (method chain calls) 1266
Potential violation of Law of Demeter (method chain calls) 1268
Potential violation of Law of Demeter (method chain calls) 1268
Potential violation of Law of Demeter (method chain calls) 1284
Potential violation of Law of Demeter (method chain calls) 1323
Consider simply returning the value vs storing it in local variable 'i' 1357
Potential violation of Law of Demeter (method chain calls) 1360
Potential violation of Law of Demeter (object not created locally) 1380

org/apache/commons/jexl3/JexlEngine.java

Violation Line
Possible God class (WMC=62, ATFD=8, TCC=0.0) 18604
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 168
Consider using varargs for methods or constructors which take an array the last parameter. 278
Consider using varargs for methods or constructors which take an array the last parameter. 355
Consider using varargs for methods or constructors which take an array the last parameter. 381
Consider using varargs for methods or constructors which take an array the last parameter. 396
Potential violation of Law of Demeter (object not created locally) 512
Potential violation of Law of Demeter (object not created locally) 513
Potential violation of Law of Demeter (method chain calls) 515
Potential violation of Law of Demeter (object not created locally) 518
Potential violation of Law of Demeter (object not created locally) 519
Potential violation of Law of Demeter (object not created locally) 521
Potential violation of Law of Demeter (object not created locally) 522
Potential violation of Law of Demeter (object not created locally) 530
Potential violation of Law of Demeter (object not created locally) 530
Potential violation of Law of Demeter (object not created locally) 530
Potential violation of Law of Demeter (object not created locally) 546
Potential violation of Law of Demeter (object not created locally) 548

org/apache/commons/jexl3/JexlException.java

Violation Line
Possible God class (WMC=55, ATFD=12, TCC=0.03508771929824561) 18670
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
Potential violation of Law of Demeter (object not created locally) 459
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 459
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 460
Potential violation of Law of Demeter (object not created locally) 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
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 515
Potential violation of Law of Demeter (object not created locally) 515
Potential violation of Law of Demeter (object not created locally) 516
Potential violation of Law of Demeter (object not created locally) 517
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 559
Potential violation of Law of Demeter (object not created locally) 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 constructor is initialized with size 16, but has at least 26 characters appended. 656
Avoid if (x != y) ..; else ..; 657661
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 662

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 ..; 58
Avoid if (x != y) ..; else ..; 59
Avoid if (x != y) ..; else ..; 60
Avoid unnecessary if..then..else statements when returning booleans 8082
Potential violation of Law of Demeter (object not created locally) 96
Potential violation of Law of Demeter (object not created locally) 98
Deeply nested if..then statements are hard to read 99101
Potential violation of Law of Demeter (object not created locally) 124

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

Violation Line
Possible God class (WMC=150, ATFD=8, TCC=0.2087912087912088) 17962
A high number of imports can indicate a high degree of coupling within an object. 17962
StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). 108
Document empty constructor 123124
Potential violation of Law of Demeter (method chain calls) 133
Potential violation of Law of Demeter (method chain calls) 146
Potential violation of Law of Demeter (object not created locally) 177
Potential violation of Law of Demeter (object not created locally) 178
StringBuffer constructor is initialized with size 16, but has at least 109 characters appended. 205
Use equals() to compare object references. 248
Use equals() to compare object references. 252
Use equals() to compare object references. 298
Avoid if (x != y) ..; else ..; 301305
Use equals() to compare object references. 306
Potential violation of Law of Demeter (method chain calls) 347
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 405
StringBuffer (or StringBuilder).append is called 3 consecutive times with literal Strings. Use a single append with a single combined String. 557
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 580
Potential violation of Law of Demeter (method chain calls) 585
Potential violation of Law of Demeter (object not created locally) 587
Avoid appending characters as strings in StringBuffer.append. 594
Potential violation of Law of Demeter (method chain calls) 596
Potential violation of Law of Demeter (object not created locally) 598
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 606
Avoid reassigning parameters such as 'data' 637
Potential violation of Law of Demeter (method chain calls) 649
Potential violation of Law of Demeter (method chain calls) 652
Avoid appending characters as strings in StringBuffer.append. 701
Avoid appending characters as strings in StringBuffer.append. 716
Avoid appending characters as strings in StringBuffer.append. 735
Avoid appending characters as strings in StringBuffer.append. 744
Avoid appending characters as strings in StringBuffer.append. 767
Avoid appending characters as strings in StringBuffer.append. 775
Avoid appending characters as strings in StringBuffer.append. 801
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 831
Avoid appending characters as strings in StringBuffer.append. 836
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 836
Avoid appending characters as strings in StringBuffer.append. 838
Potential violation of Law of Demeter (method chain calls) 866
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 874
StringBuffer (or StringBuilder).append is called 2 consecutive times with literal Strings. Use a single append with a single combined String. 906
Potential violation of Law of Demeter (method chain calls) 959

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

Violation Line
A high number of imports can indicate a high degree of coupling within an object. 17733
Possible God class (WMC=127, ATFD=41, TCC=0.047058823529411764) 17733
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 79
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 83
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 87
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 91
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. 100
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. 108
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. 116
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 120
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 124
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 128
Avoid if (x != y) ..; else ..; 281
Avoid if (x != y) ..; else ..; 282
Potential violation of Law of Demeter (object not created locally) 282
Potential violation of Law of Demeter (method chain calls) 282
Avoid if (x != y) ..; else ..; 291
Potential violation of Law of Demeter (object not created locally) 292
Avoid if (x != y) ..; else ..; 292
Avoid if (x != y) ..; else ..; 301
Consider using varargs for methods or constructors which take an array the last parameter. 349
Avoid reassigning parameters such as 'info' 349
Avoid reassigning parameters such as 'info' 363
Avoid reassigning parameters such as 'context' 381
Potential violation of Law of Demeter (object not created locally) 387
Potential violation of Law of Demeter (object not created locally) 392
Potential violation of Law of Demeter (object not created locally) 393
Potential violation of Law of Demeter (object not created locally) 395
Potential violation of Law of Demeter (object not created locally) 398
Potential violation of Law of Demeter (object not created locally) 398
Potential violation of Law of Demeter (object not created locally) 401
Avoid reassigning parameters such as 'context' 411
Potential violation of Law of Demeter (object not created locally) 417
Potential violation of Law of Demeter (object not created locally) 422
Potential violation of Law of Demeter (object not created locally) 423
Potential violation of Law of Demeter (object not created locally) 425
Potential violation of Law of Demeter (object not created locally) 428
Potential violation of Law of Demeter (object not created locally) 428
Potential violation of Law of Demeter (object not created locally) 431
Avoid if (x != y) ..; else ..; 445449
Potential violation of Law of Demeter (object not created locally) 446
Potential violation of Law of Demeter (object not created locally) 457
Potential violation of Law of Demeter (object not created locally) 457
Potential violation of Law of Demeter (object not created locally) 460
Avoid if (x != y) ..; else ..; 492496
Potential violation of Law of Demeter (object not created locally) 593
Potential violation of Law of Demeter (object not created locally) 600
Potential violation of Law of Demeter (method chain calls) 611
Potential violation of Law of Demeter (method chain calls) 611
Potential violation of Law of Demeter (object not created locally) 619
Potential violation of Law of Demeter (object not created locally) 620
Potential violation of Law of Demeter (object not created locally) 678
Potential violation of Law of Demeter (object not created locally) 679
Potential violation of Law of Demeter (method chain calls) 710

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
Consider using varargs for methods or constructors which take an array the last parameter. 136
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
A high number of imports can indicate a high degree of coupling within an object. 171897
Possible God class (WMC=383, ATFD=163, TCC=0.16374269005847952) 171897
Avoid if (x != y) ..; else ..; 160
Potential violation of Law of Demeter (object not created locally) 203
Consider simply returning the value vs storing it in local variable 'value' 204
Potential violation of Law of Demeter (object not created locally) 207
Potential violation of Law of Demeter (object not created locally) 207
Potential violation of Law of Demeter (object not created locally) 210
Potential violation of Law of Demeter (object not created locally) 214
Potential violation of Law of Demeter (object not created locally) 218
Potential violation of Law of Demeter (object not created locally) 218
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 231
Potential violation of Law of Demeter (method chain calls) 385
Avoid if (x != y) ..; else ..; 398406
Potential violation of Law of Demeter (method chain calls) 411
Potential violation of Law of Demeter (method chain calls) 412
Avoid if (x != y) ..; else ..; 415
Potential violation of Law of Demeter (method chain calls) 423
Potential violation of Law of Demeter (method chain calls) 424
Avoid if (x != y) ..; else ..; 427
Potential violation of Law of Demeter (method chain calls) 435
Potential violation of Law of Demeter (method chain calls) 436
Avoid if (x != y) ..; else ..; 439
Potential violation of Law of Demeter (method chain calls) 448
Potential violation of Law of Demeter (method chain calls) 449
Avoid if (x != y) ..; else ..; 452
Potential violation of Law of Demeter (method chain calls) 464
Potential violation of Law of Demeter (method chain calls) 465
Avoid if (x != y) ..; else ..; 468
Potential violation of Law of Demeter (method chain calls) 480
Potential violation of Law of Demeter (method chain calls) 481
Avoid if (x != y) ..; else ..; 484
Potential violation of Law of Demeter (method chain calls) 492
Potential violation of Law of Demeter (method chain calls) 493
Avoid if (x != y) ..; else ..; 496
Potential violation of Law of Demeter (method chain calls) 504
Potential violation of Law of Demeter (method chain calls) 505
Avoid if (x != y) ..; else ..; 508
Potential violation of Law of Demeter (method chain calls) 516
Potential violation of Law of Demeter (method chain calls) 517
Avoid if (x != y) ..; else ..; 520522
Potential violation of Law of Demeter (method chain calls) 530
Potential violation of Law of Demeter (method chain calls) 531
Avoid if (x != y) ..; else ..; 534536
Potential violation of Law of Demeter (method chain calls) 545
Potential violation of Law of Demeter (method chain calls) 546
Avoid if (x != y) ..; else ..; 549551
Potential violation of Law of Demeter (method chain calls) 559
Potential violation of Law of Demeter (method chain calls) 560
Avoid if (x != y) ..; else ..; 563565
Potential violation of Law of Demeter (method chain calls) 573
Potential violation of Law of Demeter (method chain calls) 574
Avoid if (x != y) ..; else ..; 577579
Potential violation of Law of Demeter (method chain calls) 587
Potential violation of Law of Demeter (method chain calls) 588
Avoid if (x != y) ..; else ..; 591593
Potential violation of Law of Demeter (method chain calls) 601
Potential violation of Law of Demeter (method chain calls) 602
Potential violation of Law of Demeter (method chain calls) 608
Potential violation of Law of Demeter (method chain calls) 609
Potential violation of Law of Demeter (method chain calls) 615
Potential violation of Law of Demeter (method chain calls) 616
Potential violation of Law of Demeter (method chain calls) 622
Potential violation of Law of Demeter (method chain calls) 623
Potential violation of Law of Demeter (method chain calls) 629
Potential violation of Law of Demeter (method chain calls) 630
Potential violation of Law of Demeter (method chain calls) 636
Potential violation of Law of Demeter (method chain calls) 637
Potential violation of Law of Demeter (method chain calls) 643
Potential violation of Law of Demeter (method chain calls) 644
Potential violation of Law of Demeter (object not created locally) 656
Potential violation of Law of Demeter (method chain calls) 665
Potential violation of Law of Demeter (method chain calls) 665
Potential violation of Law of Demeter (method chain calls) 675
Avoid if (x != y) ..; else ..; 678
Potential violation of Law of Demeter (method chain calls) 686
Avoid if (x != y) ..; else ..; 689
Potential violation of Law of Demeter (method chain calls) 701
Potential violation of Law of Demeter (method chain calls) 705
Potential violation of Law of Demeter (method chain calls) 711
Potential violation of Law of Demeter (method chain calls) 725
Potential violation of Law of Demeter (method chain calls) 732
Potential violation of Law of Demeter (object not created locally) 751
Potential violation of Law of Demeter (object not created locally) 752
Potential violation of Law of Demeter (method chain calls) 754
Potential violation of Law of Demeter (object not created locally) 770
Potential violation of Law of Demeter (object not created locally) 776
Potential violation of Law of Demeter (object not created locally) 793
Potential violation of Law of Demeter (method chain calls) 800
Potential violation of Law of Demeter (method chain calls) 818
The String literal "boolean coercion error" appears 4 times in this file; the first occurrence is on line 825 825
Potential violation of Law of Demeter (method chain calls) 827
Potential violation of Law of Demeter (method chain calls) 841
Potential violation of Law of Demeter (method chain calls) 850
Avoid if (x != y) ..; else ..; 897911
Potential violation of Law of Demeter (method chain calls) 904
Potential violation of Law of Demeter (object not created locally) 905
Potential violation of Law of Demeter (object not created locally) 908
Avoid if (x != y) ..; else ..; 923931
Potential violation of Law of Demeter (method chain calls) 925
Potential violation of Law of Demeter (object not created locally) 926
Potential violation of Law of Demeter (object not created locally) 928
Avoid if (x != y) ..; else ..; 938946
Potential violation of Law of Demeter (method chain calls) 940
Potential violation of Law of Demeter (method chain calls) 941
Potential violation of Law of Demeter (method chain calls) 941
Potential violation of Law of Demeter (object not created locally) 941
Potential violation of Law of Demeter (object not created locally) 943
Potential violation of Law of Demeter (method chain calls) 951
Potential violation of Law of Demeter (method chain calls) 952
Potential violation of Law of Demeter (method chain calls) 958
Potential violation of Law of Demeter (method chain calls) 961
Potential violation of Law of Demeter (method chain calls) 963
Potential violation of Law of Demeter (method chain calls) 969
Potential violation of Law of Demeter (method chain calls) 978
Potential violation of Law of Demeter (method chain calls) 987
Potential violation of Law of Demeter (method chain calls) 996
Potential violation of Law of Demeter (method chain calls) 1005
Potential violation of Law of Demeter (method chain calls) 1011
Potential violation of Law of Demeter (object not created locally) 1018
Potential violation of Law of Demeter (method chain calls) 1031
Potential violation of Law of Demeter (object not created locally) 1069
Potential violation of Law of Demeter (object not created locally) 1086
Potential violation of Law of Demeter (method chain calls) 1105
Avoid if (x != y) ..; else ..; 1110
Potential violation of Law of Demeter (object not created locally) 1133
Avoid if (x != y) ..; else ..; 11341158
Potential violation of Law of Demeter (method chain calls) 1140
Potential violation of Law of Demeter (method chain calls) 1141
Potential violation of Law of Demeter (object not created locally) 1149
Potential violation of Law of Demeter (object not created locally) 1150
Potential violation of Law of Demeter (method chain calls) 1150
Potential violation of Law of Demeter (object not created locally) 1155
Potential violation of Law of Demeter (object not created locally) 1161
Potential violation of Law of Demeter (object not created locally) 1163
Potential violation of Law of Demeter (method chain calls) 1227
Potential violation of Law of Demeter (object not created locally) 1232
Potential violation of Law of Demeter (object not created locally) 1235
Potential violation of Law of Demeter (method chain calls) 1249
Potential violation of Law of Demeter (object not created locally) 1260
Potential violation of Law of Demeter (object not created locally) 1267
Potential violation of Law of Demeter (object not created locally) 1273
Potential violation of Law of Demeter (object not created locally) 1288
Potential violation of Law of Demeter (object not created locally) 1289
Avoid if (x != y) ..; else ..; 12901314
Potential violation of Law of Demeter (object not created locally) 1295
Potential violation of Law of Demeter (method chain calls) 1296
Potential violation of Law of Demeter (method chain calls) 1297
Potential violation of Law of Demeter (object not created locally) 1303
Potential violation of Law of Demeter (object not created locally) 1305
Potential violation of Law of Demeter (object not created locally) 1306
Potential violation of Law of Demeter (method chain calls) 1306
Potential violation of Law of Demeter (object not created locally) 1311
Potential violation of Law of Demeter (object not created locally) 1318
Potential violation of Law of Demeter (method chain calls) 1320
Potential violation of Law of Demeter (object not created locally) 1324
Potential violation of Law of Demeter (object not created locally) 1326
Potential violation of Law of Demeter (object not created locally) 1328
Potential violation of Law of Demeter (object not created locally) 1335
Potential violation of Law of Demeter (object not created locally) 1343
Potential violation of Law of Demeter (object not created locally) 1345
Potential violation of Law of Demeter (object not created locally) 1346
Potential violation of Law of Demeter (object not created locally) 1349
Potential violation of Law of Demeter (object not created locally) 1350
Potential violation of Law of Demeter (method chain calls) 1379
Potential violation of Law of Demeter (object not created locally) 1400
Consider using varargs for methods or constructors which take an array the last parameter. 1444
Use equals() to compare object references. 1448
Consider using varargs for methods or constructors which take an array the last parameter. 1463
Consider using varargs for methods or constructors which take an array the last parameter. 1496
Consider using varargs for methods or constructors which take an array the last parameter. 1515
Consider using varargs for methods or constructors which take an array the last parameter. 1534
Avoid reassigning parameters such as 'functor' 1557
Avoid reassigning parameters such as 'functor' 1557
Avoid reassigning parameters such as 'functor' 1557
Avoid reassigning parameters such as 'functor' 1557
Avoid reassigning parameters such as 'target' 1557
Avoid reassigning parameters such as 'target' 1557
Potential violation of Law of Demeter (method chain calls) 1573
Potential violation of Law of Demeter (method chain calls) 1582
Potential violation of Law of Demeter (method chain calls) 1619
Potential violation of Law of Demeter (method chain calls) 1622
Potential violation of Law of Demeter (method chain calls) 1687
Potential violation of Law of Demeter (method chain calls) 1692
Avoid if (x != y) ..; else ..; 1715
Avoid if (x != y) ..; else ..; 1728
Potential violation of Law of Demeter (object not created locally) 1771
Potential violation of Law of Demeter (object not created locally) 1772
Potential violation of Law of Demeter (object not created locally) 1783
Potential violation of Law of Demeter (object not created locally) 1785
Avoid if (x != y) ..; else ..; 17941803
Avoid if (x != y) ..; else ..; 1795
Potential violation of Law of Demeter (method chain calls) 1800
Potential violation of Law of Demeter (object not created locally) 1840
Potential violation of Law of Demeter (object not created locally) 1841
Potential violation of Law of Demeter (method chain calls) 1854
Potential violation of Law of Demeter (object not created locally) 1860
Potential violation of Law of Demeter (object not created locally) 1861
Avoid if (x != y) ..; else ..; 18701880
Avoid if (x != y) ..; else ..; 1871
Potential violation of Law of Demeter (method chain calls) 1876
Potential violation of Law of Demeter (method chain calls) 1878
Avoid if (x != y) ..; else ..; 1888
Potential violation of Law of Demeter (object not created locally) 1888
Potential violation of Law of Demeter (object not created locally) 1892

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
Consider using varargs for methods or constructors which take an array the last parameter. 138
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 (method chain calls) 56
Potential violation of Law of Demeter (static property access) 56
Deeply nested if..then statements are hard to read 7682
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) 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 (object not created locally) 146
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) 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 (method chain calls) 150
Potential violation of Law of Demeter (method chain calls) 150
Potential violation of Law of Demeter (object not created locally) 150
Potential violation of Law of Demeter (method chain calls) 152
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) 154
Potential violation of Law of Demeter (object not created locally) 154
Potential violation of Law of Demeter (method chain calls) 154
Potential violation of Law of Demeter (object not created locally) 156
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 (method chain calls) 158
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 (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 (method chain calls) 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 (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 (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 (object not created locally) 263
Potential violation of Law of Demeter (method chain calls) 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
Potential violation of Law of Demeter (method chain calls) 76
Consider using varargs for methods or constructors which take an array the last parameter. 88
Avoid if (x != y) ..; else ..; 140
Avoid if (x != y) ..; else ..; 141
Avoid unnecessary if..then..else statements when returning booleans 158160
Potential violation of Law of Demeter (object not created locally) 169
Potential violation of Law of Demeter (object not created locally) 170
Potential violation of Law of Demeter (object not created locally) 172
Potential violation of Law of Demeter (object not created locally) 186
Potential violation of Law of Demeter (object not created locally) 197
Potential violation of Law of Demeter (object not created locally) 208
Consider using varargs for methods or constructors which take an array the last parameter. 223
Avoid if (x != y) ..; else ..; 226230
Consider using varargs for methods or constructors which take an array the last parameter. 234
Avoid if (x != y) ..; else ..; 235
Potential violation of Law of Demeter (object not created locally) 261

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=161, ATFD=60, TCC=0.029556650246305417) 171146
Perhaps 'index' could be replaced by a local variable. 102
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 (static property access) 299
Potential violation of Law of Demeter (object not created locally) 299
Potential violation of Law of Demeter (object not created locally) 299
Potential violation of Law of Demeter (object not created locally) 335
Potential violation of Law of Demeter (object not created locally) 335
Potential violation of Law of Demeter (static property access) 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) 674
Potential violation of Law of Demeter (static property access) 678
Potential violation of Law of Demeter (object not created locally) 678
Potential violation of Law of Demeter (object not created locally) 678
Avoid appending characters as strings in StringBuffer.append. 701
Potential violation of Law of Demeter (object not created locally) 705
Avoid instantiation through private constructors from outside of the constructors class. 740
The default label should be the last label in a switch statement 751885
A switch statement does not contain a break 751885
A high ratio of statements to labels in a switch statement. Consider refactoring. 751885
Potential violation of Law of Demeter (object not created locally) 764
Potential violation of Law of Demeter (object not created locally) 771
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) 774
Potential violation of Law of Demeter (object not created locally) 778
Potential violation of Law of Demeter (object not created locally) 779
Potential violation of Law of Demeter (object not created locally) 787
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) 790
Potential violation of Law of Demeter (object not created locally) 794
Potential violation of Law of Demeter (object not created locally) 795
Potential violation of Law of Demeter (object not created locally) 803
Potential violation of Law of Demeter (object not created locally) 806
Potential violation of Law of Demeter (object not created locally) 811
Potential violation of Law of Demeter (object not created locally) 812
Potential violation of Law of Demeter (object not created locally) 820
Potential violation of Law of Demeter (object not created locally) 826
Potential violation of Law of Demeter (object not created locally) 834
Potential violation of Law of Demeter (object not created locally) 834
Potential violation of Law of Demeter (object not created locally) 838
Potential violation of Law of Demeter (object not created locally) 847
Potential violation of Law of Demeter (object not created locally) 852
Potential violation of Law of Demeter (object not created locally) 861
Potential violation of Law of Demeter (object not created locally) 865
Potential violation of Law of Demeter (object not created locally) 866
Potential violation of Law of Demeter (object not created locally) 872
Potential violation of Law of Demeter (object not created locally) 877
Potential violation of Law of Demeter (object not created locally) 879
Potential violation of Law of Demeter (object not created locally) 881
Potential violation of Law of Demeter (object not created locally) 882
Potential violation of Law of Demeter (object not created locally) 895
Potential violation of Law of Demeter (object not created locally) 896
Potential violation of Law of Demeter (object not created locally) 897
Potential violation of Law of Demeter (object not created locally) 899
Potential violation of Law of Demeter (static property access) 958
Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. 977986
Potential violation of Law of Demeter (static property access) 978
Avoid reassigning parameters such as 'sequence' 998
Potential violation of Law of Demeter (method chain calls) 1006
Potential violation of Law of Demeter (object not created locally) 1038
Potential violation of Law of Demeter (object not created locally) 1044
Potential violation of Law of Demeter (object not created locally) 1097
Potential violation of Law of Demeter (object not created locally) 1097
Potential violation of Law of Demeter (object not created locally) 1097
Potential violation of Law of Demeter (object not created locally) 1100
Potential violation of Law of Demeter (object not created locally) 1100
Potential violation of Law of Demeter (object not created locally) 1100
Potential violation of Law of Demeter (object not created locally) 1107
Potential violation of Law of Demeter (object not created locally) 1108
Potential violation of Law of Demeter (object not created locally) 1109
Potential violation of Law of Demeter (object not created locally) 1111
Potential violation of Law of Demeter (object not created locally) 1111
Potential violation of Law of Demeter (object not created locally) 1111
Potential violation of Law of Demeter (object not created locally) 1115
Potential violation of Law of Demeter (object not created locally) 1115
Potential violation of Law of Demeter (object not created locally) 1115
Potential violation of Law of Demeter (object not created locally) 1121
Potential violation of Law of Demeter (object not created locally) 1122
Potential violation of Law of Demeter (object not created locally) 1123
Potential violation of Law of Demeter (object not created locally) 1125
Potential violation of Law of Demeter (object not created locally) 1125
Potential violation of Law of Demeter (object not created locally) 1125
Potential violation of Law of Demeter (object not created locally) 1128
Potential violation of Law of Demeter (object not created locally) 1128
Potential violation of Law of Demeter (object not created locally) 1128
Potential violation of Law of Demeter (object not created locally) 1134
Potential violation of Law of Demeter (object not created locally) 1135
Potential violation of Law of Demeter (object not created locally) 1136
Potential violation of Law of Demeter (object not created locally) 1138

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' 58
Consider using varargs for methods or constructors which take an array the last parameter. 128
Potential violation of Law of Demeter (object not created locally) 165
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) 127
An empty method in an abstract class should be abstract instead 172174

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) 39
Potential violation of Law of Demeter (object not created locally) 39
Potential violation of Law of Demeter (object not created locally) 39

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 (object not created locally) 236
Potential violation of Law of Demeter (method chain calls) 236
Potential violation of Law of Demeter (object not created locally) 238
Potential violation of Law of Demeter (method chain calls) 239
Potential violation of Law of Demeter (object not created locally) 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 (method chain calls) 72
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (method chain calls) 90
Potential violation of Law of Demeter (object not created locally) 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) 53
Consider using varargs for methods or constructors which take an array the last parameter. 115
Avoid instantiation through private constructors from outside of the constructors class. 125
Avoid instantiation through private constructors from outside of the constructors class. 134
Potential violation of Law of Demeter (method chain calls) 164
Potential violation of Law of Demeter (method chain calls) 164
Potential violation of Law of Demeter (method chain calls) 170
Potential violation of Law of Demeter (method chain calls) 188
Potential violation of Law of Demeter (method chain calls) 188
Potential violation of Law of Demeter (method chain calls) 194

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 (object not created locally) 329
Potential violation of Law of Demeter (method chain calls) 329
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 (object not created locally) 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 (static property access) 75
Unnecessary use of fully qualified name 'java.lang.reflect.Array.get' due to existing import 'java.lang.reflect.Array' 75
Potential violation of Law of Demeter (method chain calls) 77
Unnecessary use of fully qualified name 'java.lang.reflect.Array.get' due to existing import 'java.lang.reflect.Array' 88
Potential violation of Law of Demeter (static property access) 88
Potential violation of Law of Demeter (object not created locally) 88
Potential violation of Law of Demeter (method chain calls) 90
Potential violation of Law of Demeter (object not created locally) 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 (static property access) 84
Unnecessary use of fully qualified name 'java.lang.reflect.Array.set' due to existing import 'java.lang.reflect.Array' 84
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) 70
Potential violation of Law of Demeter (method chain calls) 77
Potential violation of Law of Demeter (object not created locally) 80

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) 77
Potential violation of Law of Demeter (object not created locally) 80

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) 17784
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) 213
Potential violation of Law of Demeter (method chain calls) 213
Potential violation of Law of Demeter (method chain calls) 237
Potential violation of Law of Demeter (method chain calls) 237
Potential violation of Law of Demeter (object not created locally) 245
Potential violation of Law of Demeter (object not created locally) 246
Potential violation of Law of Demeter (object not created locally) 252
Consider using varargs for methods or constructors which take an array the last parameter. 263
Consider using varargs for methods or constructors which take an array the last parameter. 273
Avoid reassigning parameters such as 'actual' 297
Avoid reassigning parameters such as 'actual' 379
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 429
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 433
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 437
Consider using varargs for methods or constructors which take an array the last parameter. 490
Potential violation of Law of Demeter (object not created locally) 493
Potential violation of Law of Demeter (object not created locally) 497
Potential violation of Law of Demeter (object not created locally) 498
Potential violation of Law of Demeter (object not created locally) 510
Potential violation of Law of Demeter (object not created locally) 538
Potential violation of Law of Demeter (object not created locally) 541
Potential violation of Law of Demeter (object not created locally) 545
Consider using varargs for methods or constructors which take an array the last parameter. 557
Potential violation of Law of Demeter (method chain calls) 578
Potential violation of Law of Demeter (method chain calls) 578
Potential violation of Law of Demeter (method chain calls) 579
Potential violation of Law of Demeter (method chain calls) 579
Potential violation of Law of Demeter (method chain calls) 598
Potential violation of Law of Demeter (method chain calls) 601
Potential violation of Law of Demeter (object not created locally) 629
Consider using varargs for methods or constructors which take an array the last parameter. 644
Avoid using implementation types like 'LinkedList'; use the interface instead 644
Consider using varargs for methods or constructors which take an array the last parameter. 662
Potential violation of Law of Demeter (method chain calls) 672
Potential violation of Law of Demeter (method chain calls) 672
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) 677
Potential violation of Law of Demeter (method chain calls) 677
Potential violation of Law of Demeter (method chain calls) 698
Potential violation of Law of Demeter (method chain calls) 698
Potential violation of Law of Demeter (method chain calls) 709
Potential violation of Law of Demeter (method chain calls) 709
Potential violation of Law of Demeter (method chain calls) 715
Potential violation of Law of Demeter (method chain calls) 715
Potential violation of Law of Demeter (method chain calls) 717

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 (method chain calls) 74
Potential violation of Law of Demeter (method chain calls) 74
Potential violation of Law of Demeter (object not created locally) 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) 80
Avoid if (x != y) ..; else ..; 8185
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) 131
Potential violation of Law of Demeter (method chain calls) 131
Potential violation of Law of Demeter (method chain calls) 156
Potential violation of Law of Demeter (method chain calls) 156

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

Violation Line
Possible God class (WMC=77, ATFD=28, TCC=0.022058823529411766) 17488
Avoid if (x != y) ..; else ..; 119124
Potential violation of Law of Demeter (method chain calls) 145
Potential violation of Law of Demeter (method chain calls) 158
Potential violation of Law of Demeter (method chain calls) 167
Consider using varargs for methods or constructors which take an array the last parameter. 184
Potential violation of Law of Demeter (method chain calls) 200
Potential violation of Law of Demeter (method chain calls) 209
Potential violation of Law of Demeter (method chain calls) 219
A switch statement does not contain a break 260297
Use equals() to compare object references. 282
Potential violation of Law of Demeter (object not created locally) 299
A switch statement does not contain a break 329360
Use equals() to compare object references. 349
Potential violation of Law of Demeter (object not created locally) 362
Potential violation of Law of Demeter (method chain calls) 380
Potential violation of Law of Demeter (method chain calls) 384
Potential violation of Law of Demeter (method chain calls) 384
Potential violation of Law of Demeter (method chain calls) 390
Potential violation of Law of Demeter (object not created locally) 397
Potential violation of Law of Demeter (method chain calls) 397
Potential violation of Law of Demeter (object not created locally) 398
Potential violation of Law of Demeter (method chain calls) 471
Potential violation of Law of Demeter (method chain calls) 471
Avoid instantiation through private constructors from outside of the constructors class. 483

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

Violation Line
Possible God class (WMC=53, ATFD=11, TCC=0.022222222222222223) 18467
Potential violation of Law of Demeter (method chain calls) 87
Potential violation of Law of Demeter (method chain calls) 87
Potential violation of Law of Demeter (method chain calls) 115
Potential violation of Law of Demeter (object not created locally) 115
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 (object not created locally) 169
Potential violation of Law of Demeter (method chain calls) 169
Avoid if (x != y) ..; else ..; 295
Avoid if (x != y) ..; else ..; 334
Avoid if (x != y) ..; else ..; 335
Avoid if (x != y) ..; else ..; 336
Fields should be declared at the top of the class, before any method declarations, constructors, initializers or inner classes. 416

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) 54
Potential violation of Law of Demeter (object not created locally) 55

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) 51
Potential violation of Law of Demeter (object not created locally) 52

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

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

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) 67
Potential violation of Law of Demeter (object not created locally) 68
Potential violation of Law of Demeter (object not created locally) 72
Potential violation of Law of Demeter (object not created locally) 78
Potential violation of Law of Demeter (method chain calls) 97
Potential violation of Law of Demeter (object not created locally) 116
Potential violation of Law of Demeter (object not created locally) 121
Potential violation of Law of Demeter (object not created locally) 125
Potential violation of Law of Demeter (object not created locally) 145
Avoid unnecessary if..then..else statements when returning booleans 147149

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

Violation Line
Avoid if (x != y) ..; else ..; 9296
Potential violation of Law of Demeter (object not created locally) 109
Potential violation of Law of Demeter (object not created locally) 126
An empty method in an abstract class should be abstract instead 158160
An empty method in an abstract class should be abstract instead 166168
An empty method in an abstract class should be abstract instead 170171
Document empty method body 170171
Potential violation of Law of Demeter (object not created locally) 183
Potential violation of Law of Demeter (object not created locally) 184
Potential violation of Law of Demeter (object not created locally) 191
Avoid if (x != y) ..; else ..; 206210
Potential violation of Law of Demeter (object not created locally) 209
Potential violation of Law of Demeter (object not created locally) 211
Potential violation of Law of Demeter (object not created locally) 213
Avoid if (x != y) ..; else ..; 232236
Avoid if (x != y) ..; else ..; 239246
Potential violation of Law of Demeter (object not created locally) 241
Potential violation of Law of Demeter (object not created locally) 242
Potential violation of Law of Demeter (method chain calls) 250
Potential violation of Law of Demeter (method chain calls) 253

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) 43
Potential violation of Law of Demeter (method chain calls) 45
Potential violation of Law of Demeter (method chain calls) 47
Potential violation of Law of Demeter (method chain calls) 49
Potential violation of Law of Demeter (method chain calls) 51
Potential violation of Law of Demeter (method chain calls) 64
Avoid reassigning parameters such as 's' 88
A switch statement does not contain a break 104129

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

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

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
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 68
Potential violation of Law of Demeter (object not created locally) 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
StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. 70
Potential violation of Law of Demeter (object not created locally) 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
Consider using varargs for methods or constructors which take an array the last parameter. 69
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 (method chain calls) 74
Potential violation of Law of Demeter (method chain calls) 74
Potential violation of Law of Demeter (object not created locally) 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