The following document contains the results of PMD 4.2.5.
| Violation | Line |
|---|---|
| Avoid if (x != y) ..; else ..; | 91 |
| Singleton is not thread safe | 100 - 106 |
| Violation | Line |
|---|---|
| Avoid if (x != y) ..; else ..; | 114 |
| Singleton is not thread safe | 123 - 129 |
| Violation | Line |
|---|---|
| Avoid if (x != y) ..; else ..; | 163 |
| Overridable method 'getKey' called during object construction | 173 |
| Overridable method 'getValue' called during object construction | 174 |
| Avoid if (x != y) ..; else ..; | 183 |
| Use block level rather than method level synchronization | 236 - 250 |
| Avoid if (x != y) ..; else ..; | 241 - 248 |
| Avoid if (x != y) ..; else ..; | 264 |
| Avoid if (x != y) ..; else ..; | 300 |
| Avoid if (x != y) ..; else ..; | 302 - 310 |
| Avoid if (x != y) ..; else ..; | 323 - 327 |
| Use block level rather than method level synchronization | 347 - 355 |
| Use block level rather than method level synchronization | 363 - 371 |
| Avoid if (x != y) ..; else ..; | 365 - 369 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 374 |
| Avoid if (x != y) ..; else ..; | 374 |
| Use block level rather than method level synchronization | 383 - 397 |
| Use block level rather than method level synchronization | 407 - 419 |
| Use block level rather than method level synchronization | 429 - 443 |
| Avoid if (x != y) ..; else ..; | 431 - 441 |
| Use block level rather than method level synchronization | 451 - 473 |
| Avoid if (x != y) ..; else ..; | 457 - 461 |
| Avoid if (x != y) ..; else ..; | 464 - 468 |
| Use block level rather than method level synchronization | 481 - 494 |
| Use block level rather than method level synchronization | 504 - 527 |
| Avoid if (x != y) ..; else ..; | 510 - 514 |
| Avoid if (x != y) ..; else ..; | 518 - 522 |
| Use block level rather than method level synchronization | 533 - 541 |
| Violation | Line |
|---|---|
| Overridable method 'getName' called during object construction | 47 |
| Avoid if (x != y) ..; else ..; | 97 |
| Avoid if (x != y) ..; else ..; | 106 |
| Avoid if (x != y) ..; else ..; | 113 |
| Avoid if (x != y) ..; else ..; | 122 |
| Avoid if (x != y) ..; else ..; | 129 |
| Avoid if (x != y) ..; else ..; | 136 |
| New exception is thrown in catch block, original stack trace may be lost | 241 |
| An empty method in an abstract class should be abstract instead | 292 - 294 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 29 |
| The Logger variable declaration does not contain the static and final modifiers | 36 |
| Use block level rather than method level synchronization | 110 - 112 |
| New exception is thrown in catch block, original stack trace may be lost | 241 |
| Avoid if (x != y) ..; else ..; | 404 |
| Avoid if (x != y) ..; else ..; | 404 |
| The String literal "\n\t" appears 4 times in this file; the first occurrence is on line 498 | 498 |
| Violation | Line |
|---|---|
| This abstract class does not have any abstract methods | 19 - 307 |
| Avoid appending characters as strings in StringBuffer.append. | 226 |
| Avoid appending characters as strings in StringBuffer.append. | 230 |
| Avoid appending characters as strings in StringBuffer.append. | 235 |
| Avoid appending characters as strings in StringBuffer.append. | 240 |
| Avoid appending characters as strings in StringBuffer.append. | 245 |
| Violation | Line |
|---|---|
| The String literal "message full" appears 4 times in this file; the first occurrence is on line 250 | 250 |
| These nested if statements could be combined | 276 - 286 |
| StringBuffer constructor is initialized with size 16, but has at least 18 characters appended. | 377 |
| The String literal "\n\t" appears 4 times in this file; the first occurrence is on line 413 | 413 |
| Avoid appending characters as strings in StringBuffer.append. | 440 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 25 |
| Avoid if (x != y) ..; else ..; | 107 |
| Deeply nested if..then statements are hard to read | 109 - 111 |
| Deeply nested if..then statements are hard to read | 112 - 114 |
| Avoid empty if statements | 117 - 119 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 33 |
| Ensure you override both equals() and hashCode() | 56 |
| Avoid empty if statements | 188 - 190 |
| The Logger variable declaration does not contain the static and final modifiers | 264 |
| An empty method in an abstract class should be abstract instead | 306 - 308 |
| Avoid if (x != y) ..; else ..; | 417 |
| Avoid if (x != y) ..; else ..; | 529 |
| Avoid calling toString() on String objects; this is unnecessary. | 529 |
| The Logger variable declaration does not contain the static and final modifiers | 640 |
| Avoid empty catch blocks | 679 - 681 |
| These nested if statements could be combined | 797 - 800 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 33 |
| The Logger variable declaration does not contain the static and final modifiers | 105 |
| Avoid if (x != y) ..; else ..; | 412 |
| Violation | Line |
|---|---|
| Avoid if (x != y) ..; else ..; | 101 |
| Singleton is not thread safe | 110 - 116 |
| Use block level rather than method level synchronization | 195 - 199 |
| Use block level rather than method level synchronization | 206 - 209 |
| Use block level rather than method level synchronization | 216 - 219 |
| Use block level rather than method level synchronization | 226 - 229 |
| Use block level rather than method level synchronization | 236 - 239 |
| Use block level rather than method level synchronization | 246 - 249 |
| Use block level rather than method level synchronization | 256 - 259 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 33 |
| Avoid if (x != y) ..; else ..; | 73 - 84 |
| Use block level rather than method level synchronization | 169 - 175 |
| A switch statement does not contain a break | 199 - 206 |
| A switch statement does not contain a break | 225 - 232 |
| Avoid if (x != y) ..; else ..; | 259 |
| Avoid if (x != y) ..; else ..; | 261 |
| Avoid if (x != y) ..; else ..; | 263 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 57 |
| Avoid if (x != y) ..; else ..; | 127 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 128 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 233 |
| System.out.print is used | 373 |
| System.out.print is used | 374 |
| System.out.print is used | 376 |
| System.out.print is used | 378 |
| System.out.print is used | 380 |
| Avoid if (x != y) ..; else ..; | 408 |
| Overridable method 'getLocalHost' called during object construction | 420 |
| Overridable method 'startProber' called during object construction | 421 |
| Overridable method 'startReaper' called during object construction | 423 |
| Avoid empty catch blocks | 477 - 479 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 733 |
| These nested if statements could be combined | 862 - 876 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 915 |
| These nested if statements could be combined | 919 - 922 |
| These nested if statements could be combined | 939 - 943 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 959 |
| Avoid if (x != y) ..; else ..; | 983 - 987 |
| Avoid if (x != y) ..; else ..; | 1021 - 1032 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 1081 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 1085 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 1085 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 1085 |
| Using equalsIgnoreCase() is cleaner than using toUpperCase/toLowerCase().equals(). | 1085 |
| Use equals() to compare object references. | 1156 |
| Avoid if (x != y) ..; else ..; | 1267 - 1273 |
| Avoid if (x != y) ..; else ..; | 1341 - 1373 |
| Avoid if (x != y) ..; else ..; | 1449 - 1457 |
| Use equals() to compare object references. | 1476 |
| System.out.print is used | 1670 |
| System.out.print is used | 1845 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 1916 |
| Avoid if (x != y) ..; else ..; | 1935 |
| Avoid if (x != y) ..; else ..; | 2036 |
| Avoid if (x != y) ..; else ..; | 2038 - 2042 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 2138 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 2139 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 42 |
| Avoid empty catch blocks | 98 - 100 |
| Avoid if (x != y) ..; else ..; | 308 - 312 |
| The Logger variable declaration does not contain the static and final modifiers | 537 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 27 |
| Use block level rather than method level synchronization | 92 - 114 |
| Avoid if (x != y) ..; else ..; | 97 - 109 |
| The Logger variable declaration does not contain the static and final modifiers | 154 |
| Violation | Line |
|---|---|
| All methods are static. Consider using Singleton instead. Alternatively, you could add a private constructor or make the class abstract to silence this warning. | 95 - 128 |
| Singleton is not thread safe | 122 - 124 |
| Violation | Line |
|---|---|
| Avoid empty catch blocks | 92 - 94 |
| Avoid empty catch blocks | 101 - 103 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 43 |
| Deeply nested if..then statements are hard to read | 95 - 100 |
| Overriding method merely calls super | 110 - 112 |
| Overridable method 'setNeedTextAnnouncing' called during object construction | 198 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 250 |
| Deeply nested if..then statements are hard to read | 274 - 277 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 288 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 294 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 389 |
| Avoid if (x != y) ..; else ..; | 397 |
| Avoid if (x != y) ..; else ..; | 442 |
| Use block level rather than method level synchronization | 671 - 673 |
| Use block level rather than method level synchronization | 679 - 688 |
| Avoid if (x != y) ..; else ..; | 696 |
| Avoid if (x != y) ..; else ..; | 705 |
| Avoid if (x != y) ..; else ..; | 713 |
| Avoid if (x != y) ..; else ..; | 721 |
| Avoid if (x != y) ..; else ..; | 729 |
| Use block level rather than method level synchronization | 815 - 855 |
| Avoid if (x != y) ..; else ..; | 854 |
| Use block level rather than method level synchronization | 941 - 944 |
| Substitute calls to size() == 0 (or size() != 0) with calls to isEmpty() | 947 |
| Substitute calls to size() == 0 (or size() != 0) with calls to isEmpty() | 947 |
| Avoid if (x != y) ..; else ..; | 1176 - 1183 |
| Avoid empty if statements | 1239 - 1241 |
| Avoid if (x != y) ..; else ..; | 1257 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 18 |
| Avoid if (x != y) ..; else ..; | 29 |
| Violation | Line |
|---|---|
| Do not hard code IPv4 or IPv6 addresses, even 127.0.0.1 ! | 16 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 44 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 111 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 251 |
| When doing a String.toLowerCase()/toUpperCase() call, use a Locale | 286 |
| Violation | Line |
|---|---|
| A switch statement does not contain a break | 128 - 149 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 18 |
| Avoid if (x != y) ..; else ..; | 33 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 24 |
| Avoid if (x != y) ..; else ..; | 48 |
| Deeply nested if..then statements are hard to read | 124 - 126 |
| Deeply nested if..then statements are hard to read | 132 - 134 |
| Deeply nested if..then statements are hard to read | 138 - 140 |
| Deeply nested if..then statements are hard to read | 143 - 146 |
| Deeply nested if..then statements are hard to read | 148 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 20 |
| Violation | Line |
|---|---|
| Avoid if (x != y) ..; else ..; | 39 |
| Avoid if (x != y) ..; else ..; | 99 |
| Violation | Line |
|---|---|
| Avoid if (x != y) ..; else ..; | 38 |
| Violation | Line |
|---|---|
| Avoid if (x != y) ..; else ..; | 40 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 25 |
| Avoid if (x != y) ..; else ..; | 40 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 23 |
| Avoid if (x != y) ..; else ..; | 38 |
| Violation | Line |
|---|---|
| The Logger variable declaration does not contain the static and final modifiers | 25 |
| Avoid if (x != y) ..; else ..; | 129 - 142 |