The following document contains the results of PMD 4.2.5.
| Violation | Line |
|---|---|
| These nested if statements could be combined | 98 - 102 |
| Violation | Line |
|---|---|
| Avoid unused imports such as 'javax.naming.ConfigurationException' | 34 |
| These nested if statements could be combined | 149 - 150 |
| These nested if statements could be combined | 152 - 153 |
| These nested if statements could be combined | 174 - 175 |
| These nested if statements could be combined | 177 - 178 |
| Violation | Line |
|---|---|
| Avoid unused private methods such as 'getClassNamesPackage(String)'. | 500 |
| Violation | Line |
|---|---|
| An empty statement (semicolon) not part of a loop | 156 |
| Violation | Line |
|---|---|
| Avoid unused constructor parameters such as 'printable'. | 46 - 50 |
| Violation | Line |
|---|---|
| Do not use if statements that are always true or always false | 161 |
| Avoid unused method parameters such as 'tmpDir'. | 339 - 457 |
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'tester'. | 51 |
| Violation | Line |
|---|---|
| These nested if statements could be combined | 448 - 458 |
| Violation | Line |
|---|---|
| These nested if statements could be combined | 104 - 105 |
| An empty statement (semicolon) not part of a loop | 144 |
| Violation | Line |
|---|---|
| Avoid empty if statements | 122 - 124 |
| Violation | Line |
|---|---|
| These nested if statements could be combined | 220 - 226 |
| Ensure you override both equals() and hashCode() | 342 |
| Violation | Line |
|---|---|
| Avoid empty if statements | 85 - 92 |
| Violation | Line |
|---|---|
| Ensure you override both equals() and hashCode() | 63 |
| Violation | Line |
|---|---|
| Avoid unused imports such as 'java.nio.channels.SelectableChannel' | 19 |
| Avoid unused constructor parameters such as 'environment'. | 49 - 58 |
| Violation | Line |
|---|---|
| Avoid unused constructor parameters such as 'environment'. | 40 - 47 |
| Violation | Line |
|---|---|
| These nested if statements could be combined | 96 - 98 |
| These nested if statements could be combined | 407 - 410 |
| Violation | Line |
|---|---|
| These nested if statements could be combined | 89 - 91 |
| Avoid unused constructor parameters such as 'attributeName'. | 261 - 265 |
| Violation | Line |
|---|---|
| An empty statement (semicolon) not part of a loop | 36 |
| Violation | Line |
|---|---|
| Avoid unused imports such as 'java.io.BufferedReader' | 18 |
| Avoid unused imports such as 'java.io.FileReader' | 21 |
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'trgProperty'. | 135 |
| Violation | Line |
|---|---|
| Avoid unused imports such as 'eu.annocultor.api.Rule' | 22 |
| Avoid unused imports such as 'eu.annocultor.context.Environment' | 24 |
| Avoid unused private fields such as 'lang'. | 52 |
| Avoid unused private fields such as 'facetToLang'. | 54 |
| Avoid unused private fields such as 'langProperty'. | 56 |
| Violation | Line |
|---|---|
| Avoid empty if statements | 131 - 133 |
| Violation | Line |
|---|---|
| Avoid unused constructor parameters such as 'srcPath'. | 66 - 73 |
| Violation | Line |
|---|---|
| Avoid unused constructor parameters such as 'srcPath'. | 62 - 69 |
| Avoid unused constructor parameters such as 'srcPath'. | 72 - 81 |
| Violation | Line |
|---|---|
| These nested if statements could be combined | 201 - 203 |
| These nested if statements could be combined | 210 - 215 |
| These nested if statements could be combined | 212 - 214 |
| Violation | Line |
|---|---|
| Avoid empty finally blocks | 62 - 64 |
| Violation | Line |
|---|---|
| Avoid unused constructor parameters such as 'langNames'. | 118 - 174 |
| Avoid unused constructor parameters such as 'langNames'. | 176 - 210 |
| Avoid unused constructor parameters such as 'srcXmlPath'. | 176 - 210 |
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'parent'. | 71 |
| Avoid unused constructor parameters such as 'labels'. | 160 - 196 |
| Violation | Line |
|---|---|
| Avoid unused private fields such as 'parent'. | 74 |
| Avoid unused constructor parameters such as 'labels'. | 167 - 203 |
| Violation | Line |
|---|---|
| Avoid unused constructor parameters such as 'creatorNamePath'. | 77 - 103 |
| Avoid unused constructor parameters such as 'datePath'. | 77 - 103 |
| Avoid unused constructor parameters such as 'titlePath'. | 77 - 103 |
| Violation | Line |
|---|---|
| Ensure you override both equals() and hashCode() | 37 |
| Violation | Line |
|---|---|
| Avoid unused constructor parameters such as 'targetTerm'. | 89 - 113 |
| Avoid unused constructor parameters such as 'targetRecord'. | 89 - 113 |
| Avoid unused constructor parameters such as 'termUriPrefix'. | 89 - 113 |
| Violation | Line |
|---|---|
| Avoid unused constructor parameters such as 'defaultLang'. | 54 - 59 |
| Violation | Line |
|---|---|
| Avoid unused imports such as 'eu.annocultor.common.Language.Lang' | 22 |
| Violation | Line |
|---|---|
| Avoid empty try blocks | 231 - 233 |
| Avoid empty finally blocks | 234 - 237 |
| Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. | 394 |
| Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. | 506 |
| Avoid empty catch blocks | 522 - 525 |
| Always check the return of one of the navigation method (next,previous,first,last) of a ResultSet. | 545 |
| Violation | Line |
|---|---|
| Avoid unused local variables such as 'cntOneColor'. | 129 |
| Violation | Line |
|---|---|
| Unnecessary final modifier in final class | 44 - 52 |
| Unnecessary final modifier in final class | 61 - 69 |
| Unnecessary final modifier in final class | 76 - 82 |
| Unnecessary final modifier in final class | 91 - 101 |
| Violation | Line |
|---|---|
| No need to import a type that lives in the same package | 43 |
| Violation | Line |
|---|---|
| Avoid unused constructor parameters such as 'files'. | 54 - 56 |
| Avoid unused constructor parameters such as 'tmp'. | 54 - 56 |
| Violation | Line |
|---|---|
| Avoid unused imports such as 'java.util.Date' | 28 |
| Violation | Line |
|---|---|
| No need to import a type that lives in the same package | 40 |
| Violation | Line |
|---|---|
| Avoid unused local variables such as 'conv'. | 37 |
| Violation | Line |
|---|---|
| Avoid unused local variables such as 'compileReturnCode'. | 131 |
| Violation | Line |
|---|---|
| Avoid unused local variables such as 'factory'. | 156 |
| Avoid unused local variables such as 'schemaFile'. | 162 |
| Violation | Line |
|---|---|
| Avoid unused method parameters such as 'name'. | 39 - 45 |
| Avoid unused method parameters such as 'parent'. | 39 - 45 |
| Avoid unused local variables such as 'file'. | 92 |
| Avoid unused local variables such as 'sourceXmlPath'. | 105 |
| Avoid unused local variables such as 'targetRdfProperty'. | 106 |
| Avoid unused local variables such as 'targetRdfResourceValue'. | 107 |
| Avoid unused local variables such as 'graph'. | 108 |
| Avoid unused local variables such as 'sourceXmlPath'. | 115 |
| Avoid unused local variables such as 'targetRdfProperty'. | 116 |
| Avoid unused local variables such as 'languageCodeToEnforce'. | 117 |
| Avoid unused local variables such as 'graph'. | 118 |
| Violation | Line |
|---|---|
| Unnecessary final modifier in final class | 110 - 113 |
| Ensure you override both equals() and hashCode() | 124 |
| Avoid empty catch blocks | 322 - 325 |
| Avoid empty catch blocks | 356 - 359 |
| These nested if statements could be combined | 1260 - 1263 |
| Avoid empty catch blocks | 1526 - 1529 |