PMD Results

The following document contains the results of PMD 5.0.2.

Files

uk/ac/ebi/intenz/webapp/controller/IntEnzActionServlet.java

ViolationLine
Useless parentheses.137

uk/ac/ebi/intenz/webapp/controller/IntEnzPlugInAction.java

ViolationLine
Avoid unused imports such as 'java.io.UnsupportedEncodingException'3
Avoid unused imports such as 'java.net.URLDecoder'4

uk/ac/ebi/intenz/webapp/controller/helper/dtoinit/PopulateEnzymeClassDTOAction.java

ViolationLine
Useless parentheses.62

uk/ac/ebi/intenz/webapp/controller/helper/dtoinit/PopulateEnzymeListDTOAction.java

ViolationLine
Avoid unused imports such as 'org.apache.struts.util.TokenProcessor'8
Avoid unused imports such as 'org.apache.struts.Globals'9
Avoid unused imports such as 'org.apache.struts.taglib.html.Constants'10
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.constants.EnzymeNameTypeConstant'12
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.history.HistoryGraph'14
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.reference.Book'15
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.reference.Journal'16
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.reference.Patent'17
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.reference.Reference'18
Avoid duplicate imports such as 'uk.ac.ebi.intenz.webapp.utilities.IntEnzUtilities'21
Avoid unused imports such as 'java.util.Iterator'28
Avoid unused imports such as 'java.util.SortedSet'30

uk/ac/ebi/intenz/webapp/controller/helper/dtoinit/PopulateIntEnzEnzymeDTOAction.java

ViolationLine
These nested if statements could be combined71 - 75
Avoid unused method parameters such as 'translate'.181
Avoid unused method parameters such as 'translate'.241
Avoid unused local variables such as 'iii'.247

uk/ac/ebi/intenz/webapp/controller/helper/dtoinit/PopulateIubmbEnzymeDTOAction.java

ViolationLine
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.enzyme.DataComment'20
Avoid unused imports such as 'uk.ac.ebi.rhea.domain.Status'32
Avoid unused imports such as 'uk.ac.ebi.intenz.webapp.dtos.DataCommentDTO'34

uk/ac/ebi/intenz/webapp/controller/helper/dtoinit/PopulatePreviewIubmbEnzymeDTOAction.java

ViolationLine
Avoid unused imports such as 'uk.ac.ebi.rhea.domain.Status'18
Avoid unused method parameters such as 'ec'.129

uk/ac/ebi/intenz/webapp/controller/helper/dtoinit/PopulateSubclassDTOAction.java

ViolationLine
Useless parentheses.63

uk/ac/ebi/intenz/webapp/controller/helper/forwards/ModifyEnzymeFWDAction.java

ViolationLine
Useless parentheses.57

uk/ac/ebi/intenz/webapp/controller/modification/CurationAction.java

ViolationLine
Avoid unused imports such as 'uk.ac.ebi.intenz.webapp.utilities.EntryLockSingleton'8
Useless parentheses.52

uk/ac/ebi/intenz/webapp/controller/search/SearchAction.java

ViolationLine
Avoid unused private methods such as 'fulltextQueryStatement()'.41
Avoid unused private fields such as 'SEARCH_JSP'.49
Useless parentheses.90 - 91
Useless parentheses.90
Avoid returning from a finally block147

uk/ac/ebi/intenz/webapp/controller/search/SearchProposedAction.java

ViolationLine
Avoid unused imports such as 'org.apache.struts.Globals'5
Avoid unused imports such as 'org.apache.struts.taglib.html.Constants'6
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant'8
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.exceptions.DomainException'12
Avoid unused imports such as 'uk.ac.ebi.intenz.webapp.utilities.ControlFlowToken'15
Avoid unused imports such as 'java.sql.SQLException'25
Avoid unused imports such as 'java.util.Map'26
Avoid unused private fields such as 'LOGGER'.40

uk/ac/ebi/intenz/webapp/controller/search/SearchSuggestedAction.java

ViolationLine
Avoid unused imports such as 'org.apache.struts.Globals'5
Avoid unused imports such as 'org.apache.struts.taglib.html.Constants'6
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.constants.EnzymeViewConstant'8
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.exceptions.DomainException'12
Avoid unused imports such as 'uk.ac.ebi.intenz.webapp.utilities.ControlFlowToken'15
Avoid unused imports such as 'java.sql.SQLException'25
Avoid unused imports such as 'java.util.Map'26
Avoid unused private fields such as 'LOGGER'.40

uk/ac/ebi/intenz/webapp/dtos/CofactorDTO.java

ViolationLine
Useless parentheses.74

uk/ac/ebi/intenz/webapp/dtos/CommentDTO.java

ViolationLine
Useless parentheses.140

uk/ac/ebi/intenz/webapp/dtos/DataCommentDTO.java

ViolationLine
Avoid unused imports such as 'java.util.Map'7
Avoid unused imports such as 'java.util.HashMap'8
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.enzyme.DataComment'10

uk/ac/ebi/intenz/webapp/dtos/EnzymeDTO.java

ViolationLine
Avoid unused imports such as 'java.sql.SQLException'10
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.exceptions.EcException'37
Avoid unused imports such as 'uk.ac.ebi.rhea.mapper.MapperException'40
Useless parentheses.690
Useless parentheses.763
Useless parentheses.764
These nested if statements could be combined977 - 981

uk/ac/ebi/intenz/webapp/dtos/EnzymeLinkDTO.java

ViolationLine
Useless parentheses.179
Avoid unused private methods such as 'validateCASRegistryNumber()'.283
Avoid empty if statements284 - 286

uk/ac/ebi/intenz/webapp/dtos/EnzymeNameDTO.java

ViolationLine
Useless parentheses.107

uk/ac/ebi/intenz/webapp/dtos/FlatFileExportForm.java

ViolationLine
Avoid unused imports such as 'org.apache.struts.action.ActionErrors'3
Avoid unused imports such as 'org.apache.struts.action.ActionMapping'4
Avoid unused imports such as 'javax.servlet.http.HttpServletRequest'7

uk/ac/ebi/intenz/webapp/dtos/GhostEnzymeListDTO.java

ViolationLine
Avoid unused imports such as 'org.apache.struts.action.ActionErrors'3
Avoid unused imports such as 'org.apache.struts.action.ActionMapping'4
Avoid unused imports such as 'javax.servlet.http.HttpServletRequest'7

uk/ac/ebi/intenz/webapp/dtos/ReactionDTO.java

ViolationLine
Useless parentheses.97

uk/ac/ebi/intenz/webapp/dtos/ReferenceDTO.java

ViolationLine
Useless parentheses.233

uk/ac/ebi/intenz/webapp/dtos/SearchForm.java

ViolationLine
Avoid unused imports such as 'org.apache.struts.action.ActionErrors'3
Avoid unused imports such as 'org.apache.struts.action.ActionMapping'4
Avoid unused imports such as 'javax.servlet.http.HttpServletRequest'7

uk/ac/ebi/intenz/webapp/helper/EnzymeLinksHelper.java

ViolationLine
Avoid unused local variables such as 'iii'.107
Avoid unused private methods such as 'getLinkHTMLTableRow(EnzymeLinkDTO,boolean)'.514

uk/ac/ebi/intenz/webapp/helper/EnzymeNamesHelper.java

ViolationLine
Avoid unused private fields such as 'LOGGER'.21

uk/ac/ebi/intenz/webapp/helper/ReferenceHelper.java

ViolationLine
Avoid unused imports such as 'org.apache.log4j.Logger'3
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.reference.Book'5
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.reference.Journal'6
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.reference.Patent'7
Avoid unused imports such as 'uk.ac.ebi.intenz.domain.reference.Reference'8

uk/ac/ebi/intenz/webapp/utilities/AutoGrowingList.java

ViolationLine
Useless parentheses.45
Useless parentheses.67

uk/ac/ebi/intenz/webapp/utilities/ControlFlowToken.java

ViolationLine
Avoid unnecessary temporaries when converting primitives to Strings41

uk/ac/ebi/intenz/webapp/utilities/IntEnzValidations.java

ViolationLine
Useless parentheses.173
Useless parentheses.174
Avoid unused private methods such as 'validateCofactors(List,ActionMessages)'.248
These nested if statements could be combined330 - 334
These nested if statements could be combined347 - 351
These nested if statements could be combined354 - 357

uk/ac/ebi/intenz/webapp/utilities/PubMedAccessor.java

ViolationLine
Avoid unused imports such as 'uk.ac.ebi.cdb.webservice.AuthorsList'9

uk/ac/ebi/intenz/webapp/utilities/SizeComparator.java

ViolationLine
Useless parentheses.21
Useless parentheses.26

uk/ac/ebi/intenz/webapp/utilities/UnitOfWork.java

ViolationLine
Avoid unused imports such as 'uk.ac.ebi.rhea.webapp.SessionManager'58
Avoid unused method parameters such as 'source'.368