PMD Results

The following document contains the results of PMD 4.2.5.

Files

eu/annocultor/common/FindClasspath.java

Violation Line
These nested if statements could be combined 98 - 102

eu/annocultor/common/Helper.java

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

eu/annocultor/common/Utils.java

Violation Line
Avoid unused private methods such as 'getClassNamesPackage(String)'. 500

eu/annocultor/context/EnvironmentImpl.java

Violation Line
An empty statement (semicolon) not part of a loop 156

eu/annocultor/context/Namespace.java

Violation Line
Avoid unused constructor parameters such as 'printable'. 46 - 50

eu/annocultor/converter/Analyser.java

Violation Line
Do not use if statements that are always true or always false 161
Avoid unused method parameters such as 'tmpDir'. 339 - 457

eu/annocultor/converter/Converter.java

Violation Line
Avoid unused private fields such as 'tester'. 51

eu/annocultor/converter/ConverterHandler.java

Violation Line
These nested if statements could be combined 448 - 458

eu/annocultor/converter/RdfDiffInt.java

Violation Line
Avoid empty if statements 104 - 107

eu/annocultor/converter/TaskImpl.java

Violation Line
These nested if statements could be combined 104 - 105
An empty statement (semicolon) not part of a loop 144

eu/annocultor/converters/time/GenerateTimeOntologyTrunk.java

Violation Line
Avoid empty if statements 122 - 124

eu/annocultor/data/destinations/AbstractFileWritingGraph.java

Violation Line
These nested if statements could be combined 220 - 226
Ensure you override both equals() and hashCode() 342

eu/annocultor/data/destinations/PropertiesFile.java

Violation Line
Avoid empty if statements 85 - 92

eu/annocultor/data/destinations/RdfGraph.java

Violation Line
Ensure you override both equals() and hashCode() 63

eu/annocultor/data/sources/SolrServerDataSource.java

Violation Line
Avoid unused imports such as 'java.nio.channels.SelectableChannel' 19
Avoid unused constructor parameters such as 'environment'. 49 - 58

eu/annocultor/data/sources/SqlDataSource.java

Violation Line
Avoid unused constructor parameters such as 'environment'. 40 - 47

eu/annocultor/path/Path.java

Violation Line
These nested if statements could be combined 96 - 98
These nested if statements could be combined 407 - 410

eu/annocultor/path/PathMap.java

Violation Line
These nested if statements could be combined 89 - 91
Avoid unused constructor parameters such as 'attributeName'. 261 - 265

eu/annocultor/reports/parts/CounterMap.java

Violation Line
An empty statement (semicolon) not part of a loop 36

eu/annocultor/reports/parts/ReportCounter.java

Violation Line
Avoid empty catch blocks 112 - 114

eu/annocultor/reports/parts/ReportList.java

Violation Line
Avoid unused imports such as 'java.io.BufferedReader' 18
Avoid unused imports such as 'java.io.FileReader' 21

eu/annocultor/reports/ReporterImpl.java

Violation Line
Avoid unused private fields such as 'trgProperty'. 135

eu/annocultor/rules/FacetRenamePropertyRule.java

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

eu/annocultor/rules/RenameLiteralPropertyRule.java

Violation Line
Avoid empty if statements 131 - 133

eu/annocultor/rules/UseOtherPathValueRule.java

Violation Line
Avoid unused constructor parameters such as 'srcPath'. 66 - 73

eu/annocultor/rules/UseOtherSubjectRule.java

Violation Line
Avoid unused constructor parameters such as 'srcPath'. 62 - 69
Avoid unused constructor parameters such as 'srcPath'. 72 - 81

eu/annocultor/tagger/postprocessors/PeopleTermFilter.java

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

eu/annocultor/tagger/postprocessors/PopulationTermFilter.java

Violation Line
Avoid empty finally blocks 62 - 64

eu/annocultor/tagger/rules/LookupPersonRule.java

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

eu/annocultor/tagger/rules/LookupTermRule.java

Violation Line
Avoid unused private fields such as 'parent'. 71
Avoid unused constructor parameters such as 'labels'. 160 - 196

eu/annocultor/tagger/rules/LookupTimeRule.java

Violation Line
Avoid unused private fields such as 'parent'. 74
Avoid unused constructor parameters such as 'labels'. 167 - 203

eu/annocultor/tagger/rules/LookupWorkRule.java

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

eu/annocultor/tagger/rules/PairOfStrings.java

Violation Line
Ensure you override both equals() and hashCode() 37

eu/annocultor/tagger/rules/TermCreator.java

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

eu/annocultor/tagger/vocabularies/DisambiguationContext.java

Violation Line
Avoid unused constructor parameters such as 'defaultLang'. 54 - 59

eu/annocultor/tagger/vocabularies/Vocabulary.java

Violation Line
Avoid unused imports such as 'eu.annocultor.common.Language.Lang' 22

eu/annocultor/utils/DerbyHelper.java

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

eu/annocultor/utils/ImageDownloader.java

Violation Line
Avoid unused local variables such as 'cntOneColor'. 129

eu/annocultor/utils/ImageOnlineChecker.java

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

eu/annocultor/utils/OntologySubtractor.java

Violation Line
No need to import a type that lives in the same package 43

eu/annocultor/utils/SesameTestHelper.java

Violation Line
Avoid unused constructor parameters such as 'files'. 54 - 56
Avoid unused constructor parameters such as 'tmp'. 54 - 56

eu/annocultor/utils/SesameWriter.java

Violation Line
Avoid unused imports such as 'java.util.Date' 28

eu/annocultor/utils/SparqlQueryHelper.java

Violation Line
No need to import a type that lives in the same package 40

eu/annocultor/utils/WriterUsageStats.java

Violation Line
Avoid unused local variables such as 'conv'. 37

eu/annocultor/xconverter/impl/Converter.java

Violation Line
Avoid unused local variables such as 'compileReturnCode'. 131

eu/annocultor/xconverter/impl/XConverter2Java.java

Violation Line
Avoid unused local variables such as 'factory'. 156
Avoid unused local variables such as 'schemaFile'. 162

eu/europeana/normalizer/AnnoCultorProfileExporter.java

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

org/json/JSONObject.java

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

org/json/JSONTokener.java

Violation Line
Avoid empty catch blocks 431 - 434
Avoid empty catch blocks 442 - 445