PMD Results

The following document contains the results of PMD 4.3.

Files

openr66/client/AbstractBusinessRequest.java

ViolationLine
Possible unsafe assignment to a non-final static field in a constructor.56
Avoid empty catch blocks88 - 89
Singleton is not thread safe129 - 131

openr66/client/AbstractTransfer.java

ViolationLine
Possible unsafe assignment to a non-final static field in a constructor.52
Avoid if (x != y) ..; else ..;120 - 148
When instantiating a SimpleDateFormat object, specify a Locale160
Static DateFormatter objects should be accessed in a synchronized manner236
Avoid empty catch blocks238 - 239
Singleton is not thread safe250 - 252
Avoid if (x != y) ..; else ..;253 - 267
Singleton is not thread safe253 - 267
Singleton is not thread safe255 - 267

openr66/client/DirectTransfer.java

ViolationLine
Avoid empty catch blocks91 - 92
Avoid empty catch blocks117 - 118
Avoid if (x != y) ..; else ..;158
Avoid if (x != y) ..; else ..;164

openr66/client/Message.java

ViolationLine
Possible unsafe assignment to a non-final static field in a constructor.57
Singleton is not thread safe186 - 188

openr66/client/ProgressBarTransfer.java

ViolationLine
Avoid empty catch blocks144 - 145
Avoid empty catch blocks173 - 174

openr66/client/RecvThroughClient.java

ViolationLine
These nested if statements could be combined148 - 153
Avoid empty catch blocks151 - 152

openr66/client/RequestInformation.java

ViolationLine
Singleton is not thread safe201 - 203

openr66/client/RequestTransfer.java

ViolationLine
Avoid empty catch blocks287 - 288
Singleton is not thread safe356 - 358

openr66/client/SendThroughClient.java

ViolationLine
These nested if statements could be combined229 - 234
Avoid empty catch blocks232 - 233
Avoid empty catch blocks274 - 275
These nested if statements could be combined289 - 294
Avoid empty catch blocks292 - 293
Avoid empty catch blocks312 - 313

openr66/client/SubmitTransfer.java

ViolationLine
Avoid if (x != y) ..; else ..;105 - 110

openr66/commander/ClientRunner.java

ViolationLine
Avoid empty catch blocks123 - 124
Avoid if (x != y) ..; else ..;162 - 186
Avoid if (x != y) ..; else ..;168
Avoid if (x != y) ..; else ..;172 - 173
Avoid if (x != y) ..; else ..;176 - 177
Avoid empty catch blocks385 - 386
These nested if statements could be combined431 - 434
Avoid empty catch blocks573 - 574

openr66/commander/Commander.java

ViolationLine
Avoid empty catch blocks156 - 157
Avoid empty catch blocks157 - 158
Avoid empty catch blocks203 - 204
Avoid empty catch blocks210 - 211
Avoid if (x != y) ..; else ..;224 - 237
Avoid empty catch blocks244 - 245
Avoid empty catch blocks251 - 252
Avoid empty catch blocks258 - 259
Avoid if (x != y) ..; else ..;273 - 294
Avoid empty catch blocks300 - 301
Avoid empty catch blocks307 - 308
Avoid empty catch blocks314 - 315
Avoid if (x != y) ..; else ..;328 - 348
Avoid empty catch blocks354 - 355
Avoid empty catch blocks361 - 362
Avoid empty catch blocks368 - 369
Avoid empty catch blocks375 - 376
Avoid empty catch blocks417 - 418
Avoid empty catch blocks424 - 425
Avoid empty catch blocks431 - 432
Avoid empty catch blocks449 - 450

openr66/commander/InternalRunner.java

ViolationLine
Perhaps 'workQueue' could be replaced by a local variable.61
Avoid empty catch blocks99 - 100

openr66/configuration/AuthenticationFileBasedConfiguration.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.57 - 298
Avoid if (x != y) ..; else ..;219 - 223

openr66/configuration/FileBasedConfiguration.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.78 - 1872
Avoid if (x != y) ..; else ..;614 - 619
Avoid if (x != y) ..; else ..;621 - 628
Avoid if (x != y) ..; else ..;636 - 645
Avoid if (x != y) ..; else ..;670 - 686
Avoid if (x != y) ..; else ..;689 - 693
Avoid if (x != y) ..; else ..;706 - 711
These nested if statements could be combined713 - 716
Avoid if (x != y) ..; else ..;720 - 725
Avoid if (x != y) ..; else ..;824 - 832
Avoid empty catch blocks982 - 983
Avoid if (x != y) ..; else ..;1066 - 1089
Avoid if (x != y) ..; else ..;1208 - 1212
Avoid if (x != y) ..; else ..;1216 - 1220
These nested if statements could be combined1491 - 1494
These nested if statements could be combined1539 - 1542
These nested if statements could be combined1610 - 1613
These nested if statements could be combined1621 - 1624
These nested if statements could be combined1691 - 1694
These nested if statements could be combined1706 - 1709
These nested if statements could be combined1779 - 1782
These nested if statements could be combined1790 - 1793

openr66/configuration/RuleFileBasedConfiguration.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.62 - 629
Avoid if (x != y) ..; else ..;425 - 434

openr66/context/authentication/R66Auth.java

ViolationLine
Avoid if (x != y) ..; else ..;221 - 222
Avoid empty catch blocks255 - 256

openr66/context/filesystem/R66Dir.java

ViolationLine
Use block level rather than method level synchronization76 - 94
New exception is thrown in catch block, original stack trace may be lost89 - 90

openr66/context/filesystem/R66File.java

ViolationLine
Avoid empty catch blocks488 - 489
Avoid empty catch blocks541 - 542

openr66/context/filesystem/R66Restart.java

ViolationLine
New exception is thrown in catch block, original stack trace may be lost54 - 55

openr66/context/R66DefaultBusinessFactory.java

ViolationLine
Document empty method50 - 51

openr66/context/R66Result.java

ViolationLine
Avoid if (x != y) ..; else ..;97
Avoid if (x != y) ..; else ..;98
Avoid if (x != y) ..; else ..;99
Avoid if (x != y) ..; else ..;107 - 111

openr66/context/R66Session.java

ViolationLine
Private field 'extendedProtocol' could be made final; it is only initialized in the declaration or constructor.118
These nested if statements could be combined182 - 194
These nested if statements could be combined183 - 193
Deeply nested if..then statements are hard to read183 - 193
Avoid empty catch blocks190 - 191
Avoid empty catch blocks191 - 192
Avoid empty catch blocks208 - 209
Avoid if (x != y) ..; else ..;319 - 324
Avoid empty catch blocks359 - 360
Avoid if (x != y) ..; else ..;364 - 368
Avoid empty catch blocks533 - 534
Avoid empty catch blocks539 - 540
Avoid empty catch blocks545 - 546
Avoid empty catch blocks551 - 552
Avoid empty catch blocks576 - 578
Avoid empty catch blocks593 - 594
Avoid if (x != y) ..; else ..;630 - 673
Avoid empty if statements632 - 634
Avoid empty catch blocks658 - 660
Avoid empty catch blocks665 - 666
These nested if statements could be combined729 - 735
Avoid if (x != y) ..; else ..;765 - 772
Avoid empty catch blocks823 - 824
Avoid empty catch blocks842 - 843
Avoid empty catch blocks851 - 852
Avoid if (x != y) ..; else ..;870
Avoid if (x != y) ..; else ..;871
Avoid if (x != y) ..; else ..;872
Avoid if (x != y) ..; else ..;873

openr66/context/task/AbstractExecJavaTask.java

ViolationLine
Avoid empty catch blocks76 - 77
Avoid empty catch blocks113 - 114
These nested if statements could be combined124 - 128

openr66/context/task/AbstractTask.java

ViolationLine
Avoid if (x != y) ..; else ..;286 - 295
When instantiating a SimpleDateFormat object, specify a Locale302
When instantiating a SimpleDateFormat object, specify a Locale305
Avoid if (x != y) ..; else ..;318 - 324
Avoid empty catch blocks342 - 343
Avoid empty catch blocks348 - 349
Avoid empty catch blocks354 - 355
Avoid empty catch blocks360 - 361
Avoid empty catch blocks366 - 367
Avoid empty catch blocks372 - 373
Avoid empty catch blocks378 - 379
Avoid empty catch blocks384 - 385

openr66/context/task/AllLineReader.java

ViolationLine
Avoid empty catch blocks60 - 64
Avoid empty catch blocks67 - 68

openr66/context/task/ExecJavaTask.java

ViolationLine
Avoid if (x != y) ..; else ..;115 - 121
Avoid empty while statements123
Avoid empty while statements127

openr66/context/task/ExecMoveTask.java

ViolationLine
These nested if statements could be combined109 - 116
Avoid empty catch blocks130 - 131
Avoid empty catch blocks168 - 169
Avoid empty catch blocks173 - 174
Avoid empty catch blocks183 - 184
Avoid empty catch blocks188 - 189
Avoid empty catch blocks199 - 200
Avoid empty catch blocks204 - 205
Avoid empty catch blocks215 - 216
Avoid empty catch blocks220 - 221
Avoid empty catch blocks230 - 231
Avoid empty catch blocks234 - 235
Avoid empty catch blocks248 - 249

openr66/context/task/ExecOutputTask.java

ViolationLine
These nested if statements could be combined114 - 121
Avoid empty catch blocks135 - 136
Avoid empty catch blocks181 - 182
Avoid empty catch blocks185 - 186
Avoid empty catch blocks190 - 191
Avoid empty catch blocks211 - 212
Avoid empty catch blocks216 - 217
Avoid empty catch blocks226 - 227
Avoid empty catch blocks230 - 231
Avoid empty catch blocks244 - 245
Avoid empty catch blocks312 - 313
Avoid empty catch blocks320 - 321
Avoid empty catch blocks325 - 326

openr66/context/task/ExecTask.java

ViolationLine
These nested if statements could be combined98 - 105

openr66/context/task/LastLineReader.java

ViolationLine
Avoid empty catch blocks60 - 64
Avoid empty catch blocks67 - 68

openr66/context/task/localexec/LocalExecClient.java

ViolationLine
Document empty constructor88 - 90

openr66/context/task/LogTask.java

ViolationLine
Avoid empty catch blocks109 - 110
Avoid empty catch blocks119 - 120

openr66/context/task/RescheduleTransferTask.java

ViolationLine
Deeply nested if..then statements are hard to read199 - 202
Avoid if (x != y) ..; else ..;228 - 232
Avoid if (x != y) ..; else ..;236 - 240
Avoid if (x != y) ..; else ..;253 - 263
These nested if statements could be combined259 - 262
Avoid if (x != y) ..; else ..;271 - 275
Avoid if (x != y) ..; else ..;279 - 283
Avoid if (x != y) ..; else ..;296 - 306
These nested if statements could be combined302 - 305
Switch statements should have a default label362 - 411

openr66/context/task/TaskType.java

ViolationLine
New exception is thrown in catch block, original stack trace may be lost139
New exception is thrown in catch block, original stack trace may be lost142

openr66/context/task/TransferTask.java

ViolationLine
When instantiating a SimpleDateFormat object, specify a Locale122
Avoid empty catch blocks127 - 128
Avoid if (x != y) ..; else ..;155 - 170

openr66/database/data/DbConfiguration.java

ViolationLine
Overridable method 'setToArray' called during object construction234
Overridable method 'select' called during object construction247
Consider simply returning the value vs storing it in local variable 'prep'372

openr66/database/data/DbHostAuth.java

ViolationLine
Overridable method 'setToArray' called during object construction225
Overridable method 'select' called during object construction238
Consider simply returning the value vs storing it in local variable 'prep'475
Avoid if (x != y) ..; else ..;497 - 501
Avoid if (x != y) ..; else ..;504 - 508
Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 !583
Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 !590
Avoid if (x != y) ..; else ..;631

openr66/database/data/DbMultipleMonitor.java

ViolationLine
Overridable method 'setToArray' called during object construction193
Overridable method 'select' called during object construction206
Consider simply returning the value vs storing it in local variable 'prep'323
Document empty method376 - 377

openr66/database/data/DbRule.java

ViolationLine
Overridable method 'setToArray' called during object construction492
Overridable method 'select' called during object construction505
Overridable method 'setToArray' called during object construction560
These nested if statements could be combined666 - 668
Consider simply returning the value vs storing it in local variable 'prep'760
Avoid if (x != y) ..; else ..;1060 - 1064

openr66/database/data/DbTaskRunner.java

ViolationLine
Avoid if (x != y) ..; else ..;506 - 510
Overridable method 'setToArray' called during object construction511
Overridable method 'checkThroughMode' called during object construction524
Overridable method 'create' called during object construction525
Overridable method 'setToArray' called during object construction561
Overridable method 'checkThroughMode' called during object construction574
Overridable method 'insert' called during object construction575
Overridable method 'select' called during object construction607
These nested if statements could be combined609 - 612
Overridable method 'select' called during object construction638
Document empty method665 - 666
Avoid empty catch blocks691 - 692
Avoid empty catch blocks722 - 724
Avoid empty catch blocks760 - 762
New exception is thrown in catch block, original stack trace may be lost806
New exception is thrown in catch block, original stack trace may be lost815
New exception is thrown in catch block, original stack trace may be lost818
New exception is thrown in catch block, original stack trace may be lost859
Avoid empty catch blocks893 - 895
These nested if statements could be combined905 - 908
Avoid if (x != y) ..; else ..;1002 - 1007
Avoid if (x != y) ..; else ..;1026 - 1038
Avoid if (x != y) ..; else ..;1094 - 1102
Avoid if (x != y) ..; else ..;1224 - 1232
Consider simply returning the value vs storing it in local variable 'pstt'1320
Avoid empty catch blocks1357 - 1358
Avoid empty catch blocks1358 - 1359
Avoid empty catch blocks1359 - 1360
Avoid if (x != y) ..; else ..;1378 - 1384
Avoid empty catch blocks1422 - 1423
Avoid empty catch blocks1423 - 1424
Avoid empty catch blocks1424 - 1425
Avoid if (x != y) ..; else ..;1442 - 1447
Avoid if (x != y) ..; else ..;1477 - 1481
Avoid if (x != y) ..; else ..;1514 - 1518
Avoid empty catch blocks1540 - 1541
Avoid empty catch blocks1541 - 1542
Avoid empty catch blocks1542 - 1543
Avoid if (x != y) ..; else ..;1599 - 1625
Avoid if (x != y) ..; else ..;1610 - 1625
Avoid if (x != y) ..; else ..;1660 - 1680
Avoid if (x != y) ..; else ..;1669 - 1680
Avoid if (x != y) ..; else ..;1830 - 1856
Switch statements should have a default label1832 - 1849
These nested if statements could be combined1888 - 1890
Avoid empty catch blocks1915 - 1916
Avoid if (x != y) ..; else ..;1928 - 1944
Avoid empty if statements1942 - 1944
Avoid empty catch blocks1945 - 1946
Use equals() to compare object references.1965
These nested if statements could be combined2141 - 2146
Avoid empty catch blocks2144 - 2145
These nested if statements could be combined2330 - 2331
A switch statement does not contain a break2429 - 2468
Avoid if (x != y) ..; else ..;2509 - 2513
Avoid if (x != y) ..; else ..;2520 - 2526
These nested if statements could be combined2560 - 2593
Avoid empty catch blocks2591 - 2592
Avoid empty if statements2597 - 2599
Avoid if (x != y) ..; else ..;2640
Avoid if (x != y) ..; else ..;2664 - 2668
Avoid empty catch blocks2703 - 2705
Document empty method2772 - 2774
Avoid if (x != y) ..; else ..;2796
Avoid if (x != y) ..; else ..;2866 - 2867
Avoid empty catch blocks2868 - 2869
These nested if statements could be combined2874 - 2900
Avoid if (x != y) ..; else ..;2984
Avoid if (x != y) ..; else ..;3031 - 3032
When doing a String.toLowerCase()/toUpperCase() call, use a Locale3152
When doing a String.toLowerCase()/toUpperCase() call, use a Locale3170
New exception is thrown in catch block, original stack trace may be lost3209
New exception is thrown in catch block, original stack trace may be lost3238
New exception is thrown in catch block, original stack trace may be lost3241
Avoid if (x != y) ..; else ..;3243 - 3274
Avoid empty catch blocks3251 - 3252
New exception is thrown in catch block, original stack trace may be lost3256
Avoid empty catch blocks3260 - 3261
New exception is thrown in catch block, original stack trace may be lost3265
Avoid empty catch blocks3270 - 3271
New exception is thrown in catch block, original stack trace may be lost3338
New exception is thrown in catch block, original stack trace may be lost3341
New exception is thrown in catch block, original stack trace may be lost3345
New exception is thrown in catch block, original stack trace may be lost3348
Avoid if (x != y) ..; else ..;3350 - 3381
Avoid empty catch blocks3358 - 3359
New exception is thrown in catch block, original stack trace may be lost3363
Avoid empty catch blocks3367 - 3368
New exception is thrown in catch block, original stack trace may be lost3372
Avoid empty catch blocks3377 - 3378
New exception is thrown in catch block, original stack trace may be lost3400
New exception is thrown in catch block, original stack trace may be lost3406

openr66/database/model/DbModelFactory.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.34 - 69

openr66/database/model/DbModelMysql.java

ViolationLine
Use block level rather than method level synchronization297 - 345
Avoid empty catch blocks309 - 310
Avoid empty catch blocks341 - 342

openr66/protocol/configuration/Configuration.java

ViolationLine
This final field could be made static210
This final field could be made static215
Private field 'timerCloseOperations' could be made final; it is only initialized in the declaration or constructor.447
Private field 'timerTrafficCounter' could be made final; it is only initialized in the declaration or constructor.453
Overridable method 'computeNbThreads' called during object construction540
Avoid if (x != y) ..; else ..;744 - 749
Avoid empty catch blocks813 - 814
Avoid empty catch blocks814 - 815

openr66/protocol/exception/OpenR66ExceptionTrappedFactory.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.46 - 168

openr66/protocol/exception/OpenR66ProtocolNoDataException.java

ViolationLine
Document empty constructor38 - 39

openr66/protocol/http/adminssl/HttpSslHandler.java

ViolationLine
Perhaps 'queryStringDecoder' could be replaced by a local variable.132
Avoid if (x != y) ..; else ..;376 - 460
Avoid if (x != y) ..; else ..;433
Avoid if (x != y) ..; else ..;480 - 750
Avoid if (x != y) ..; else ..;537
Avoid if (x != y) ..; else ..;619
Avoid if (x != y) ..; else ..;638 - 642
Avoid empty catch blocks660 - 661
Avoid if (x != y) ..; else ..;672 - 693
Avoid empty catch blocks681 - 682
These nested if statements could be combined689 - 691
Avoid if (x != y) ..; else ..;697
Avoid if (x != y) ..; else ..;728
Avoid empty catch blocks798 - 800
Avoid empty catch blocks845 - 846
Avoid empty catch blocks846 - 847
Avoid if (x != y) ..; else ..;874 - 1078
Switch statements should have a default label1110 - 1135
Avoid if (x != y) ..; else ..;1158 - 1375
Position literals first in String comparisons1184
Position literals first in String comparisons1187
Position literals first in String comparisons1190
Position literals first in String comparisons1193
Position literals first in String comparisons1196
Position literals first in String comparisons1199
Position literals first in String comparisons1202
Position literals first in String comparisons1205
Position literals first in String comparisons1235
Position literals first in String comparisons1237
Position literals first in String comparisons1239
Avoid empty catch blocks1410 - 1411
Avoid empty catch blocks1411 - 1412
Avoid empty catch blocks1412 - 1413
Avoid empty catch blocks1421 - 1422
Avoid empty catch blocks1422 - 1423
Avoid empty catch blocks1423 - 1424
Avoid if (x != y) ..; else ..;1552 - 1583
Avoid if (x != y) ..; else ..;1568 - 1577
Avoid if (x != y) ..; else ..;1719 - 1731
Avoid if (x != y) ..; else ..;1735 - 1772
These nested if statements could be combined1760 - 1764
Avoid if (x != y) ..; else ..;1839 - 1853
Avoid if (x != y) ..; else ..;1866 - 1887

openr66/protocol/http/HttpFormattedHandler.java

ViolationLine
Perhaps 'uriRequest' could be replaced by a local variable.150
Avoid if (x != y) ..; else ..;281 - 286
These nested if statements could be combined296 - 297
Avoid if (x != y) ..; else ..;362
Avoid if (x != y) ..; else ..;673 - 696

openr66/protocol/http/HttpWriteCacheEnable.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.50 - 132
Avoid empty if statements121 - 122

openr66/protocol/localhandler/LocalChannelReference.java

ViolationLine
Private field 'futureValidRequest' could be made final; it is only initialized in the declaration or constructor.102
Avoid if (x != y) ..; else ..;356 - 372
Avoid if (x != y) ..; else ..;400 - 409
Avoid if (x != y) ..; else ..;471 - 475
Avoid if (x != y) ..; else ..;479 - 483
Avoid if (x != y) ..; else ..;487 - 503
Avoid if (x != y) ..; else ..;488 - 499
Avoid if (x != y) ..; else ..;491 - 495
These nested if statements could be combined507 - 509
Avoid if (x != y) ..; else ..;530 - 544
Avoid if (x != y) ..; else ..;550
Avoid if (x != y) ..; else ..;551
Avoid if (x != y) ..; else ..;552
Avoid if (x != y) ..; else ..;553
Avoid if (x != y) ..; else ..;554

openr66/protocol/localhandler/LocalClientHandler.java

ViolationLine
Avoid if (x != y) ..; else ..;164 - 192

openr66/protocol/localhandler/LocalServerHandler.java

ViolationLine
Avoid if (x != y) ..; else ..;146 - 147
Avoid if (x != y) ..; else ..;147 - 148
Avoid empty if statements153 - 155
These nested if statements could be combined163 - 169
Deeply nested if..then statements are hard to read163 - 169
These nested if statements could be combined165 - 168
Avoid empty catch blocks179 - 180
These nested if statements could be combined185 - 196
Avoid if (x != y) ..; else ..;191
Avoid if (x != y) ..; else ..;194
Avoid if (x != y) ..; else ..;202 - 228
Avoid if (x != y) ..; else ..;414 - 578
Avoid empty catch blocks425 - 426
Avoid empty catch blocks426 - 427
These nested if statements could be combined448 - 454
Avoid empty catch blocks479 - 480
Avoid empty catch blocks480 - 481
Avoid empty catch blocks504 - 505
Avoid if (x != y) ..; else ..;515 - 528
A switch statement does not contain a break516 - 525
Avoid empty catch blocks542 - 544
Avoid if (x != y) ..; else ..;606 - 610
Avoid if (x != y) ..; else ..;732 - 733
Private field 'localChannelReference' could be made final; it is only initialized in the declaration or constructor.766
Private field 'result' could be made final; it is only initialized in the declaration or constructor.767
Avoid empty catch blocks819 - 820
Avoid empty catch blocks842 - 843
Avoid if (x != y) ..; else ..;897
Avoid if (x != y) ..; else ..;897
Avoid reassigning parameters such as 'packet'941
Avoid if (x != y) ..; else ..;1012 - 1120
Avoid empty catch blocks1049 - 1050
Avoid empty catch blocks1079 - 1080
Avoid empty catch blocks1165 - 1166
Avoid empty catch blocks1166 - 1167
Avoid empty catch blocks1271 - 1272
Avoid empty catch blocks1272 - 1273
Avoid empty catch blocks1299 - 1300
Avoid empty catch blocks1300 - 1301
Avoid empty catch blocks1321 - 1322
Avoid empty catch blocks1322 - 1323
These nested if statements could be combined1335 - 1354
Avoid empty catch blocks1344 - 1345
Avoid empty catch blocks1345 - 1346
Avoid empty catch blocks1370 - 1371
Avoid empty catch blocks1371 - 1372
Avoid if (x != y) ..; else ..;1431 - 1452
Avoid empty catch blocks1442 - 1444
Avoid empty catch blocks1572 - 1573
A high ratio of statements to labels in a switch statement. Consider refactoring.1595 - 2158
Avoid empty catch blocks1613 - 1615
Avoid if (x != y) ..; else ..;1617 - 1632
Avoid empty catch blocks1623 - 1624
Avoid empty catch blocks1628 - 1629
Avoid if (x != y) ..; else ..;1674 - 1705
Avoid empty catch blocks1689 - 1690
Avoid empty catch blocks1714 - 1715
Avoid empty catch blocks1810 - 1811
Avoid empty catch blocks1878 - 1879
Avoid empty catch blocks1903 - 1905
These nested if statements could be combined1917 - 1927
Avoid empty catch blocks1923 - 1925
Avoid empty catch blocks1936 - 1938
These nested if statements could be combined1963 - 1973
Avoid empty catch blocks1969 - 1971
Avoid empty catch blocks1989 - 1990
Avoid empty catch blocks2023 - 2024
Avoid empty catch blocks2058 - 2059
Avoid empty catch blocks2083 - 2084
Avoid empty catch blocks2090 - 2091
Avoid empty catch blocks2091 - 2092
Avoid empty catch blocks2141 - 2142
Avoid empty catch blocks2178 - 2180
Avoid empty catch blocks2220 - 2221

openr66/protocol/localhandler/LocalTransaction.java

ViolationLine
These nested if statements could be combined304 - 307
Avoid empty catch blocks375 - 376
Avoid empty catch blocks376 - 377
Avoid if (x != y) ..; else ..;444 - 445
Avoid empty catch blocks476 - 477
Avoid empty catch blocks484 - 485
Avoid empty catch blocks499 - 500
Avoid empty catch blocks500 - 501
Avoid empty catch blocks508 - 509

openr66/protocol/localhandler/Monitoring.java

ViolationLine
Private field 'startMonitor' could be made final; it is only initialized in the declaration or constructor.73
Private field 'pastLimit' could be made final; it is only initialized in the declaration or constructor.74
Private field 'minimalDelay' could be made final; it is only initialized in the declaration or constructor.76
Private field 'trafficCounter' could be made final; it is only initialized in the declaration or constructor.79
Avoid if (x != y) ..; else ..;183 - 187
Overridable method 'initialize' called during object construction188
Avoid empty catch blocks245 - 246
Avoid empty catch blocks246 - 247
Avoid empty catch blocks288 - 289
Avoid empty catch blocks496 - 497
Avoid empty catch blocks497 - 498
Switch statements should have a default label736 - 749
Switch statements should have a default label785 - 874
Switch statements should have a default label879 - 992
Avoid empty catch blocks993 - 994
Avoid empty catch blocks994 - 995
Switch statements should have a default label1007 - 1048
Switch statements should have a default label1053 - 1119
Avoid empty catch blocks1124 - 1125
Avoid empty catch blocks1130 - 1131
Switch statements should have a default label1147 - 1268

openr66/protocol/localhandler/packet/AbstractLocalPacket.java

ViolationLine
Avoid if (x != y) ..; else ..;91 - 92
Avoid if (x != y) ..; else ..;97 - 98
Avoid if (x != y) ..; else ..;103 - 104

openr66/protocol/localhandler/packet/BusinessRequestPacket.java

ViolationLine
Private field 'sheader' could be made final; it is only initialized in the declaration or constructor.44

openr66/protocol/localhandler/packet/EndRequestPacket.java

ViolationLine
Avoid if (x != y) ..; else ..;156

openr66/protocol/localhandler/packet/InformationPacket.java

ViolationLine
Avoid if (x != y) ..; else ..;161 - 165

openr66/protocol/localhandler/packet/LocalPacketFactory.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.32 - 155
A switch statement does not contain a break94 - 153

openr66/protocol/localhandler/packet/LocalPacketSizeEstimator.java

ViolationLine
Private field 'internal' could be made final; it is only initialized in the declaration or constructor.33

openr66/protocol/localhandler/packet/RequestPacket.java

ViolationLine
Switch statements should have a default label72 - 78
A switch statement does not contain a break72 - 78

openr66/protocol/localhandler/RetrieveRunner.java

ViolationLine
Avoid empty catch blocks146 - 147
Avoid empty catch blocks154 - 156
These nested if statements could be combined166 - 175
Avoid empty catch blocks173 - 174
Avoid empty catch blocks202 - 203
Avoid empty catch blocks208 - 210
Avoid empty catch blocks225 - 226
Avoid empty catch blocks250 - 251

openr66/protocol/networkhandler/ChannelTrafficHandler.java

ViolationLine
Do not use if statements that are always true or always false61

openr66/protocol/networkhandler/GlobalTrafficHandler.java

ViolationLine
Do not use if statements that are always true or always false63

openr66/protocol/networkhandler/NetworkChannel.java

ViolationLine
Use block level rather than method level synchronization65 - 72
Use block level rather than method level synchronization74 - 79
Use block level rather than method level synchronization81 - 89

openr66/protocol/networkhandler/NetworkServerHandler.java

ViolationLine
Perhaps 'networkChannel' could be replaced by a local variable.76
Avoid empty catch blocks235 - 236
Avoid if (x != y) ..; else ..;355 - 384
Avoid empty catch blocks399 - 400

openr66/protocol/networkhandler/NetworkServerPipelineFactory.java

ViolationLine
Private field 'server' could be made final; it is only initialized in the declaration or constructor.53
Avoid empty catch blocks74 - 75

openr66/protocol/networkhandler/NetworkTransaction.java

ViolationLine
These nested if statements could be combined290 - 292
Avoid if (x != y) ..; else ..;345 - 349
These nested if statements could be combined360 - 365
Avoid empty catch blocks474 - 475
Avoid empty catch blocks496 - 497
Avoid empty catch blocks517 - 518
New exception is thrown in catch block, original stack trace may be lost608 - 609
Avoid if (x != y) ..; else ..;658 - 665
Avoid if (x != y) ..; else ..;785 - 797
Private field 'networkChannel' could be made final; it is only initialized in the declaration or constructor.816
Private field 'requester' could be made final; it is only initialized in the declaration or constructor.817
Private field 'address' could be made final; it is only initialized in the declaration or constructor.818
Avoid if (x != y) ..; else ..;881 - 903
Avoid empty catch blocks893 - 894

openr66/protocol/networkhandler/packet/NetworkPacketSizeEstimator.java

ViolationLine
Private field 'internal' could be made final; it is only initialized in the declaration or constructor.33
Consider simply returning the value vs storing it in local variable 'size'48

openr66/protocol/networkhandler/R66ConstraintLimitHandler.java

ViolationLine
Avoid if (x != y) ..; else ..;70 - 71

openr66/protocol/networkhandler/ssl/NetworkSslServerHandler.java

ViolationLine
Avoid if (x != y) ..; else ..;155 - 180
Avoid if (x != y) ..; else ..;168 - 169

openr66/protocol/networkhandler/ssl/NetworkSslServerPipelineFactory.java

ViolationLine
Avoid empty catch blocks97 - 98

openr66/protocol/snmp/R66Counter32.java

ViolationLine
Private field 'type' could be made final; it is only initialized in the declaration or constructor.35
Private field 'entry' could be made final; it is only initialized in the declaration or constructor.36
Overridable method 'setInternalValue' called during object construction44
Overridable method 'setInternalValue' called during object construction49

openr66/protocol/snmp/R66Gauge32.java

ViolationLine
Private field 'type' could be made final; it is only initialized in the declaration or constructor.35
Private field 'entry' could be made final; it is only initialized in the declaration or constructor.36
Overridable method 'setInternalValue' called during object construction44
Overridable method 'setInternalValue' called during object construction49

openr66/protocol/snmp/R66PrivateMib.java

ViolationLine
Document empty method322 - 323
Document empty method329 - 330

openr66/protocol/snmp/R66TimeTicks.java

ViolationLine
Private field 'type' could be made final; it is only initialized in the declaration or constructor.35
Private field 'entry' could be made final; it is only initialized in the declaration or constructor.36
Overridable method 'setInternalValue' called during object construction44
Overridable method 'setInternalValue' called during object construction49

openr66/protocol/test/TestBusinessRequest.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.45 - 108
Singleton is not thread safe59 - 61

openr66/protocol/test/TestExecJavaTask.java

ViolationLine
Avoid empty catch blocks62 - 63

openr66/protocol/test/TestProgressBarTransfer.java

ViolationLine
Avoid if (x != y) ..; else ..;123
Avoid if (x != y) ..; else ..;129

openr66/protocol/test/TestRecvThroughClient.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.44 - 145
Avoid if (x != y) ..; else ..;113
Avoid if (x != y) ..; else ..;118

openr66/protocol/test/TestSendThroughClient.java

ViolationLine
Avoid if (x != y) ..; else ..;183
Avoid if (x != y) ..; else ..;188

openr66/protocol/test/TestSendThroughForward.java

ViolationLine
These nested if statements could be combined251 - 257
Avoid empty catch blocks255 - 256
Overriding method merely calls super277 - 279

openr66/protocol/test/TestSubmitTransfer.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.42 - 114
Avoid empty if statements54 - 55

openr66/protocol/test/TestTransaction.java

ViolationLine
Possible unsafe assignment to a non-final static field in a constructor.58
Singleton is not thread safe122 - 124

openr66/protocol/test/TestTransferNoDb.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.46 - 151
Avoid empty if statements58 - 59
Avoid if (x != y) ..; else ..;134
Avoid if (x != y) ..; else ..;136
Avoid empty catch blocks137 - 138

openr66/protocol/utils/ChannelCloseTimer.java

ViolationLine
Private field 'channel' could be made final; it is only initialized in the declaration or constructor.39

openr66/protocol/utils/ChannelUtils.java

ViolationLine
Deeply nested if..then statements are hard to read339 - 341

openr66/protocol/utils/FileUtils.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.46 - 523
Avoid empty catch blocks109 - 110
Avoid empty catch blocks187 - 188
Avoid empty catch blocks385 - 386
Avoid empty catch blocks478 - 479
Avoid empty catch blocks486 - 487
Avoid empty catch blocks506 - 507
Avoid empty catch blocks514 - 515

openr66/protocol/utils/OpenR66SignalHandler.java

ViolationLine
A switch with less than 3 branches is inefficient, use a if statement instead.132 - 144
When doing a String.toLowerCase()/toUpperCase() call, use a Locale202
Avoid empty catch blocks224 - 225

openr66/protocol/utils/R66Future.java

ViolationLine
Document empty constructor44 - 45
Avoid if (x != y) ..; else ..;72
Avoid if (x != y) ..; else ..;73

openr66/protocol/utils/TransferUtils.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.55 - 311
Avoid if (x != y) ..; else ..;70 - 145
Do not use if statements that are always true or always false76
These nested if statements could be combined76 - 80
Avoid if (x != y) ..; else ..;156 - 182
Avoid empty catch blocks165 - 166
These nested if statements could be combined177 - 179
Avoid if (x != y) ..; else ..;187
Avoid empty catch blocks289 - 290
Avoid empty catch blocks306 - 307

openr66/server/ChangeBandwidthLimits.java

ViolationLine
Singleton is not thread safe177 - 179
Avoid if (x != y) ..; else ..;204 - 205
Avoid if (x != y) ..; else ..;209 - 210

openr66/server/ConfigExport.java

ViolationLine
Singleton is not thread safe152 - 154
Avoid if (x != y) ..; else ..;179 - 180
Avoid if (x != y) ..; else ..;184 - 185

openr66/server/ConfigImport.java

ViolationLine
Singleton is not thread safe176 - 178
Avoid if (x != y) ..; else ..;203 - 204
Avoid if (x != y) ..; else ..;208 - 209

openr66/server/LogExport.java

ViolationLine
Avoid if (x != y) ..; else ..;92
Avoid if (x != y) ..; else ..;93
When instantiating a SimpleDateFormat object, specify a Locale148
Static DateFormatter objects should be accessed in a synchronized manner158
Static DateFormatter objects should be accessed in a synchronized manner175
Deeply nested if..then statements are hard to read178 - 180
Singleton is not thread safe254 - 256
Avoid if (x != y) ..; else ..;281 - 282
Avoid if (x != y) ..; else ..;286 - 287

openr66/server/R66Server.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.39 - 72

openr66/server/ServerExportConfiguration.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.49 - 153
Singleton is not thread safe61 - 63

openr66/server/ServerInitDatabase.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.48 - 180
Singleton is not thread safe94 - 96
These nested if statements could be combined143 - 145
These nested if statements could be combined149 - 152

openr66/server/ServerShutdown.java

ViolationLine
All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning.52 - 118