PMD Results

The following document contains the results of PMD 5.0.2.

Files

uk/ac/ebi/intenz/tools/sib/ApplicationResources.java

ViolationLine
Avoid unused imports such as 'java.io.FileInputStream'13

uk/ac/ebi/intenz/tools/sib/EnzymeFlatFileComparatorApp.java

ViolationLine
Avoid unused imports such as 'uk.ac.ebi.intenz.tools.sib.writer.EnzymeFlatFileWriter'4
Avoid unused imports such as 'java.util.PropertyResourceBundle'7
Avoid unused private methods such as 'argumentsOk(String)'.51
Avoid unused private methods such as 'printHelp()'.62

uk/ac/ebi/intenz/tools/sib/EnzymeFlatFileWriterApp.java

ViolationLine
Avoid unused private methods such as 'argumentsOk(String)'.174
Avoid unused private methods such as 'printHelp()'.196

uk/ac/ebi/intenz/tools/sib/comparator/FlatFileComparator.java

ViolationLine
Useless parentheses.186
Useless parentheses.193
Avoid empty if statements312 - 315
Useless parentheses.413

uk/ac/ebi/intenz/tools/sib/helper/EnzymeHelper.java

ViolationLine
Useless parentheses.113

uk/ac/ebi/intenz/tools/sib/helper/SibEntryHelper.java

ViolationLine
Avoid unused private methods such as 'getSynonymQualifier(EnzymeNameQualifierConstant)'.178
Avoid empty if statements206 - 208
Avoid empty catch blocks209

uk/ac/ebi/intenz/tools/sib/sptr_enzyme/EnzymeXrefFactory.java

ViolationLine
Avoid duplicate imports such as 'uk.ac.ebi.interfaces.sptr.Gene'23
Avoid duplicate imports such as 'uk.ac.ebi.interfaces.sptr.SPTREntry'24
Unnecessary use of fully qualified name 'uk.ac.ebi.interfaces.integr8.SPTREntry' due to existing import 'uk.ac.ebi.interfaces.integr8.*'382
Unnecessary use of fully qualified name 'uk.ac.ebi.interfaces.integr8.SPTREntry' due to existing import 'uk.ac.ebi.interfaces.integr8.*'386
Unnecessary use of fully qualified name 'uk.ac.ebi.interfaces.integr8.SPTREntry' due to existing import 'uk.ac.ebi.interfaces.integr8.*'390
Unnecessary use of fully qualified name 'uk.ac.ebi.interfaces.integr8.SPTREntry' due to existing import 'uk.ac.ebi.interfaces.integr8.*'390
Unnecessary use of fully qualified name 'uk.ac.ebi.interfaces.integr8.Gene' due to existing import 'uk.ac.ebi.interfaces.integr8.*'394
Unnecessary use of fully qualified name 'uk.ac.ebi.interfaces.integr8.Gene' due to existing import 'uk.ac.ebi.interfaces.integr8.*'398
Unnecessary use of fully qualified name 'uk.ac.ebi.interfaces.integr8.Gene' due to existing import 'uk.ac.ebi.interfaces.integr8.*'402
Unnecessary use of fully qualified name 'uk.ac.ebi.interfaces.integr8.Gene' due to existing import 'uk.ac.ebi.interfaces.integr8.*'402

uk/ac/ebi/intenz/tools/sib/writer/CC_LineFormatter.java

ViolationLine
Useless parentheses.68
Useless parentheses.250
Useless parentheses.253

uk/ac/ebi/intenz/tools/sib/writer/EnzymeFlatFileWriter.java

ViolationLine
Avoid empty catch blocks119
Avoid unused private methods such as 'sortLines(String)'.289
This usage of the Collection.toArray() method will throw a ClassCastException.292

uk/ac/ebi/intenz/tools/sib/writer/LineFormatter.java

ViolationLine
Avoid modifiers which are implied by the context34

uk/ac/ebi/intenz/tools/sib/writer/LineWrapperFactory.java

ViolationLine
Avoid unused private fields such as 'MIN_LENGTH_NUMBER'.78
Avoid unused local variables such as 'lastSpace'.138
These nested if statements could be combined153 - 161
Useless parentheses.153 - 159
These nested if statements could be combined168 - 169
Avoid unused local variables such as 'after'.237