Files | Total | Priority 1 | Priority 2 | Priority 3 | Priority 4 | Priority 5 |
---|---|---|---|---|---|---|
85 | 213 |
2
|
5
|
206
|
0
|
0
|
Total number of violations for this class: 18 |
---|
Total number of violations for this class: 11 |
---|
Total number of violations for this class: 10 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 145 | get | Avoid empty catch blocks |
3
| 148 | get | Avoid empty catch blocks |
3
| 186 | getRawTextLength | A switch statement does not contain a break |
3
| 219 | getIndex | A switch statement does not contain a break |
3
| 461 | external2internal | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 567 | dumpIdxRaf | Avoid printStackTrace(); use a logger call instead. |
3
| 570 | dumpIdxRaf | Avoid printStackTrace(); use a logger call instead. |
3
| 599 | toIMP | Avoid appending characters as strings in StringBuffer.append. |
3
| 606 | toIMP | Avoid printStackTrace(); use a logger call instead. |
3
| 609 | toIMP | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 10 |
---|
Total number of violations for this class: 8 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 104 | getInstallerDefinition | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 105 | getInstallerDefinition | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 106 | getInstallerDefinition | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 107 | getInstallerDefinition | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 108 | getInstallerDefinition | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 109 | getInstallerDefinition | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 337 | reloadBookList | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 7 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 43 | decorateAllWords | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 70 | decoratePhrase | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 71 | decoratePhrase | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 86 | decorateNotWords | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 100 | decorateRange | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 101 | decorateRange | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 102 | decorateRange | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
Total number of violations for this class: 7 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 236 | getVerseIdentifier | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 237 | getVerseIdentifier | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 238 | getVerseIdentifier | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 239 | getVerseIdentifier | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 245 | clone | clone() method should be implemented only if implementing Cloneable interface |
3
| 439 | parseInt | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. |
Total number of violations for this class: 6 |
---|
Total number of violations for this class: 5 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 136 | escape | A switch statement does not contain a break |
3
| 276 | recloseTags | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() |
3
| 279 | recloseTags | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() |
3
| 282 | recloseTags | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() |
3
| 310 | recloseTags | Prefer StringBuffer over += for concatenating strings |
Total number of violations for this class: 5 |
---|
Total number of violations for this class: 5 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 459 | normalize | Prefer StringBuffer over += for concatenating strings |
3
| 553 | hasFeature | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 980 | adjustHistory | Prefer StringBuffer over += for concatenating strings |
3
| 992 | report | These nested if statements could be combined |
Total number of violations for this class: 4 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 379 | dumpIdxRaf | Avoid printStackTrace(); use a logger call instead. |
3
| 391 | dumpIdxRaf | Avoid printStackTrace(); use a logger call instead. |
3
| 429 | dumpCompRaf | Avoid printStackTrace(); use a logger call instead. |
3
| 441 | dumpCompRaf | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 4 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 288 | main | Avoid printStackTrace(); use a logger call instead. |
3
| 316 | main | Avoid printStackTrace(); use a logger call instead. |
3
| 331 | main | Avoid printStackTrace(); use a logger call instead. |
3
| 333 | main | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 4 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 163 | getBooks | Returning 'books' may expose an internal array. |
3
| 416 | keyIteratorContentByVerse | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() |
3
| 458 | addHeaderAndSetShowDiffsState | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
Total number of violations for this class: 3 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 909 | isCanonical | Avoid unused private methods such as 'isCanonical(Content)'. |
3
| 1129 | rtfToOsis | This call to String.startsWith can be rewritten using String.charAt(0) |
3
| 1218 | recurseElement | Avoid unused private methods such as 'recurseElement(Object,StringBuilder)'. |
Total number of violations for this class: 3 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 80 | processTag | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 109 | processTag | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 138 | processTag | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
Total number of violations for this class: 3 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 40 | copyDirectory | Prefer StringBuffer over += for concatenating strings |
3
| 128 | main | Avoid printStackTrace(); use a logger call instead. |
3
| 138 | main | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 3 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 63 | ConfigEntryTable | Avoid unused constructor parameters such as 'isRootConfig'. |
3
| 76 | toConf | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 77 | toConf | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
Total number of violations for this class: 3 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 376 | installBook | Avoid printStackTrace(); use a logger call instead. |
3
| 409 | installBook | Avoid printStackTrace(); use a logger call instead. |
3
| 416 | installBook | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 3 |
---|
Total number of violations for this class: 3 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 396 | Avoid unused private methods such as 'getNonEmptyMappings(Map,T)'. | |
3
| 518 | getQualifiedKeys | Avoid unused private methods such as 'getQualifiedKeys(Key)'. |
3
| 532 | map | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() |
Total number of violations for this class: 3 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 101 | cleanupSemantic | Avoid empty while statements |
3
| 224 | cleanupEfficiency | Avoid empty while statements |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 362 | fireStateChanged | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. |
3
| 389 | updateProgress | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 96 | unpackZip | When doing a String.toLowerCase()/toUpperCase() call, use a Locale |
3
| 118 | unpackZip | These nested if statements could be combined |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 302 | remove | These nested if statements could be combined |
3
| 732 | StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 66 | getName | Avoid empty catch blocks |
3
| 210 | Avoid protected fields in a final class. Change to private or package access. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 143 | makeDirectory | These nested if statements could be combined |
3
| 304 | getAsFile | Do not add empty strings |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 167 | fireCapture | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. |
3
| 168 | fireCapture | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 266 | toString | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 267 | toString | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
1
| 235 | getBibleBooks | Double checked locking is not thread safe in Java. |
2
| 336 | Use of modifier volatile is not recommended. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 67 | clone | clone() method should be implemented only if implementing Cloneable interface |
3
| 146 | parseTags | Use opposite operator instead of the logic complement operator. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 90 | toOSIS | Prefer StringBuffer over += for concatenating strings |
3
| 147 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 90 | getStrongsNumber | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
3
| 102 | getFullStrongsNumber | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 190 | dumpIdxRaf | Avoid printStackTrace(); use a logger call instead. |
3
| 193 | dumpIdxRaf | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
2
| 275 | Use of modifier volatile is not recommended. | |
2
| 277 | Use of modifier volatile is not recommended. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 143 | getLastUncompressed | Returning 'lastUncompressed' may expose an internal array. |
3
| 156 | setLastUncompressed | The user-supplied array 'lastUncompressed' is stored directly. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 170 | getLastUncompressed | Returning 'lastUncompressed' may expose an internal array. |
3
| 193 | setLastUncompressed | The user-supplied array 'lastUncompressed' is stored directly. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 185 | main | Avoid printStackTrace(); use a logger call instead. |
3
| 192 | main | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 98 | main | Avoid printStackTrace(); use a logger call instead. |
3
| 101 | main | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 104 | getLatestIndexVersionStr | Consider simply returning the value vs storing it in local variable 'value' |
3
| 153 | generateInstalledBooksIndexVersionReport | Avoid appending characters as strings in StringBuffer.append. |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 222 | clone | clone() method should be implemented only if implementing Cloneable interface |
3
| 261 | StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 155 | equals | Ensure you override both equals() and hashCode() |
3
| 189 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 2 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
1
| 76 | instance | Double checked locking is not thread safe in Java. |
2
| 253 | Use of modifier volatile is not recommended. |
Total number of violations for this class: 2 |
---|
Total number of violations for this class: 1 |
---|
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 144 | fireWorkProgressed | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 170 | adjustPackageSearch | Prefer StringBuffer over += for concatenating strings |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 108 | findClasspathEntry | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 249 | remove | These nested if statements could be combined |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 175 | StringBuffers can grow quite a lot, and so may become a source of memory leak (if the owning class has a long life time). |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 83 | getTemplateInfo | These nested if statements could be combined |
Total number of violations for this class: 1 |
---|
Total number of violations for this class: 1 |
---|
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 97 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 66 | report | StringBuffer (or StringBuilder).append is called consecutively without reusing the target variable. |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 98 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
2
| 92 | Use of modifier volatile is not recommended. |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 78 | getTag | This call to String.startsWith can be rewritten using String.charAt(0) |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 64 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 92 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 303 | fireInstallersChanged | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 61 | getBooks | Returning 'books' may expose an internal array. |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 103 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 151 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 250 | getIndex | A switch statement does not contain a break |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 164 | createDataTextFile | Prefer StringBuffer over += for concatenating strings |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 187 | addOSIS | Substitute calls to size() == 0 (or size() != 0, size() > 0, size() < 1) with calls to isEmpty() |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 95 | main | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 76 | main | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 131 | getOSISString | Avoid empty catch blocks |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 69 | main | Avoid printStackTrace(); use a logger call instead. |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 109 | storeInstalledIndexMetadata | Avoid protected methods in a final class that doesnt extend anything other than Object. Change to private or package access. |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 216 | LuceneIndex | These nested if statements could be combined |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 136 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 113 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 244 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 99 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 204 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 185 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 102 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 215 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 387 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 336 | clone | clone() method should be implemented only if implementing Cloneable interface |
Total number of violations for this class: 1 |
---|
Prio | Begin Line | Method | Description |
---|---|---|---|
3
| 494 | Possible unsafe assignment to a non-final static field in a constructor. |
Total number of violations for this class: 1 |
---|
Generated by PMD 5.1.3 on 2016-03-25 - 07:32:10.