PMD Results

The following document contains the results of PMD 3.9.

Files

com/ontotext/wsmo4j/common/TopEntityImpl.java

ViolationLine
Ensure you override both equals() and hashCode()182

com/ontotext/wsmo4j/examples/LoadOntologyExample.java

ViolationLine
Avoid empty catch blocks90 - 92

com/ontotext/wsmo4j/examples/LoadWebServiceExample.java

ViolationLine
Avoid empty catch blocks90 - 92

com/ontotext/wsmo4j/factory/EntityRegistry.java

ViolationLine
These nested if statements could be combined169 - 170

com/ontotext/wsmo4j/factory/WsmoFactoryImpl.java

ViolationLine
Avoid unused constructor parameters such as 'map'.54 - 57
Avoid unnecessary return statements269

com/ontotext/wsmo4j/mediator/GGMediatorImpl.java

ViolationLine
Ensure you override both equals() and hashCode()41

com/ontotext/wsmo4j/mediator/MediatorImpl.java

ViolationLine
Ensure you override both equals() and hashCode()95

com/ontotext/wsmo4j/mediator/OOMediatorImpl.java

ViolationLine
Ensure you override both equals() and hashCode()42

com/ontotext/wsmo4j/mediator/WGMediatorImpl.java

ViolationLine
Ensure you override both equals() and hashCode()42

com/ontotext/wsmo4j/mediator/WWMediatorImpl.java

ViolationLine
Ensure you override both equals() and hashCode()41

com/ontotext/wsmo4j/ontology/AttributeImpl.java

ViolationLine
Ensure you override both equals() and hashCode()155

com/ontotext/wsmo4j/ontology/AxiomImpl.java

ViolationLine
Ensure you override both equals() and hashCode()68

com/ontotext/wsmo4j/ontology/ComplexDataTypeImpl.java

ViolationLine
Avoid duplicate imports such as 'org.omwg.ontology.ComplexDataType'30
Avoid duplicate imports such as 'org.omwg.ontology.SimpleDataType'31

com/ontotext/wsmo4j/ontology/ComplexDataValueImpl.java

ViolationLine
Avoid unused method parameters such as 'v'.129 - 211

com/ontotext/wsmo4j/ontology/ConceptImpl.java

ViolationLine
Avoid unused constructor parameters such as 'factory'.53 - 59
Ensure you override both equals() and hashCode()197

com/ontotext/wsmo4j/ontology/InstanceImpl.java

ViolationLine
Ensure you override both equals() and hashCode()197

com/ontotext/wsmo4j/ontology/OntologyImpl.java

ViolationLine
Ensure you override both equals() and hashCode()324

com/ontotext/wsmo4j/ontology/ParameterImpl.java

ViolationLine
Ensure you override both equals() and hashCode()87

com/ontotext/wsmo4j/ontology/RelationImpl.java

ViolationLine
Ensure you override both equals() and hashCode()225

com/ontotext/wsmo4j/ontology/RelationInstanceImpl.java

ViolationLine
These nested if statements could be combined146 - 149
Ensure you override both equals() and hashCode()165

com/ontotext/wsmo4j/parser/owl/WSMLFromOWL.java

ViolationLine
Avoid duplicate imports such as 'org.openrdf.model.Value'29
Avoid duplicate imports such as 'org.wsmo.common.Namespace'40
Avoid unused local variables such as 'v'.768
Avoid empty if statements795 - 796
An empty statement (semicolon) not part of a loop1069
Avoid empty catch blocks1311 - 1313

com/ontotext/wsmo4j/parser/wsml/ParserImpl.java

ViolationLine
Avoid unused imports such as 'org.wsmo.validator.ValidationError'36
Avoid unused imports such as 'org.wsmo.validator.ValidationWarning'37
Avoid empty catch blocks166 - 168
Avoid empty catch blocks171 - 173

com/ontotext/wsmo4j/parser/wsml/ValueAnalysis.java

ViolationLine
Avoid unused private fields such as 'factory'.44

com/ontotext/wsmo4j/parser/xml/NodeConcept.java

ViolationLine
Avoid duplicate imports such as 'org.wsmo.common.Entity'36

com/ontotext/wsmo4j/parser/xml/NodeInstance.java

ViolationLine
Avoid duplicate imports such as 'org.wsmo.common.Entity'35

com/ontotext/wsmo4j/parser/xml/NodeInterface.java

ViolationLine
Avoid empty if statements62 - 64

com/ontotext/wsmo4j/parser/xml/NodeNFP.java

ViolationLine
Avoid duplicate imports such as 'org.wsmo.common.Entity'35

com/ontotext/wsmo4j/parser/xml/NodeRelation.java

ViolationLine
Avoid duplicate imports such as 'org.wsmo.common.Entity'36

com/ontotext/wsmo4j/parser/xml/NodeTopEntity.java

ViolationLine
Avoid duplicate imports such as 'org.wsmo.common.Entity'22

com/ontotext/wsmo4j/parser/xml/NodeValue.java

ViolationLine
Avoid empty catch blocks79 - 80

com/ontotext/wsmo4j/parser/xml/WsmlXmlParser.java

ViolationLine
Avoid empty try blocks174 - 183

com/ontotext/wsmo4j/serializer/wsml/WSMLSerializerImpl.java

ViolationLine
Avoid unused constructor parameters such as 'props'.41 - 43

com/ontotext/wsmo4j/serializer/xml/WsmlXmlSerializer.java

ViolationLine
Avoid unused constructor parameters such as 'map'.60 - 61
Avoid unnecessary return statements140
Avoid unnecessary return statements144

com/ontotext/wsmo4j/service/CapabilityImpl.java

ViolationLine
Ensure you override both equals() and hashCode()378

com/ontotext/wsmo4j/service/ChoreographyImpl.java

ViolationLine
Ensure you override both equals() and hashCode()48

com/ontotext/wsmo4j/service/GoalImpl.java

ViolationLine
Ensure you override both equals() and hashCode()44

com/ontotext/wsmo4j/service/InterfaceImpl.java

ViolationLine
Ensure you override both equals() and hashCode()120

com/ontotext/wsmo4j/service/OrchestrationImpl.java

ViolationLine
Ensure you override both equals() and hashCode()48

com/ontotext/wsmo4j/service/ServiceDescriptionImpl.java

ViolationLine
Ensure you override both equals() and hashCode()123

com/ontotext/wsmo4j/service/WebServiceImpl.java

ViolationLine
Ensure you override both equals() and hashCode()44

org/deri/wsmo4j/examples/LocatorExample.java

ViolationLine
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.86
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.103

org/deri/wsmo4j/examples/ParsingAndSerializingFile.java

ViolationLine
Avoid empty catch blocks115

org/deri/wsmo4j/factory/DataFactoryImpl.java

ViolationLine
These nested if statements could be combined172 - 178

org/deri/wsmo4j/io/parser/rdf/RDFExprParser.java

ViolationLine
These nested if statements could be combined520 - 523
Avoid unused method parameters such as 'concept'.579 - 596
Avoid unused method parameters such as 'statement'.790 - 799
Avoid empty if statements793 - 795

org/deri/wsmo4j/io/parser/rdf/RDFParserError.java

ViolationLine
Overriding method merely calls super77 - 79

org/deri/wsmo4j/io/parser/rdf/RDFParserWarning.java

ViolationLine
Overriding method merely calls super108 - 110

org/deri/wsmo4j/io/parser/wsml/AtomicExpressionAnalysis.java

ViolationLine
Avoid unused private fields such as 'container'.48

org/deri/wsmo4j/io/parser/wsml/LogExprParserImpl.java

ViolationLine
Avoid unused imports such as 'org.omwg.ontology.Axiom'25
Avoid empty catch blocks182 - 184
Avoid empty catch blocks188 - 190
Avoid unused local variables such as 'preprevious'.267
Avoid unused local variables such as 'str'.313

org/deri/wsmo4j/io/parser/wsml/VariableAnalysis.java

ViolationLine
Avoid unused private fields such as 'container'.41
Avoid unused private fields such as 'terms'.43

org/deri/wsmo4j/io/serializer/rdf/NodeConcept.java

ViolationLine
Avoid duplicate imports such as 'org.openrdf.model.Value'25

org/deri/wsmo4j/io/serializer/rdf/NodeRelation.java

ViolationLine
Avoid duplicate imports such as 'org.openrdf.model.Value'25

org/deri/wsmo4j/io/serializer/rdf/NodeRelationInstance.java

ViolationLine
Avoid duplicate imports such as 'org.openrdf.model.Value'24

org/deri/wsmo4j/io/serializer/rdf/NodeValue.java

ViolationLine
Avoid duplicate imports such as 'org.openrdf.model.Value'24

org/deri/wsmo4j/io/serializer/rdf/NodeWsml.java

ViolationLine
Avoid empty if statements37 - 38
Avoid empty if statements39 - 40
Avoid empty if statements41 - 42

org/deri/wsmo4j/io/serializer/rdf/WsmlRdfSerializer.java

ViolationLine
Avoid unnecessary return statements177
Avoid unnecessary return statements181

org/deri/wsmo4j/io/serializer/wsml/LogExprSerializerWSML.java

ViolationLine
Avoid empty catch blocks65 - 68

org/deri/wsmo4j/io/serializer/wsml/VisitorSerializeWSML.java

ViolationLine
Avoid unused imports such as 'org.omwg.ontology.Parameter'26
Avoid unused local variables such as 'infix'.62
Avoid unused local variables such as 'key'.151
Avoid unused local variables such as 'n'.381

org/deri/wsmo4j/io/serializer/wsml/VisitorSerializeWSMLTerms.java

ViolationLine
Avoid duplicate imports such as 'org.omwg.logicalexpression.terms.Visitor'26
Avoid unused local variables such as 'iri'.156
These nested if statements could be combined265 - 266

org/deri/wsmo4j/io/serializer/xml/VisitorSerializeXMLTerms.java

ViolationLine
Avoid duplicate imports such as 'org.omwg.logicalexpression.terms.Visitor'25

org/deri/wsmo4j/logicalexpression/AttributeConstraintMoleculeImpl.java

ViolationLine
Avoid duplicate imports such as 'org.omwg.logicalexpression.Visitor'22
Ensure you override both equals() and hashCode()60

org/deri/wsmo4j/logicalexpression/AttributeInferenceMoleculeImpl.java

ViolationLine
Avoid duplicate imports such as 'org.omwg.logicalexpression.Visitor'21
Ensure you override both equals() and hashCode()59

org/deri/wsmo4j/logicalexpression/AttributeValueMoleculeImpl.java

ViolationLine
Avoid duplicate imports such as 'org.omwg.logicalexpression.Visitor'22
Ensure you override both equals() and hashCode()60

org/deri/wsmo4j/logicalexpression/BinaryImpl.java

ViolationLine
Ensure you override both equals() and hashCode()82

org/deri/wsmo4j/logicalexpression/CompoundMoleculeImpl.java

ViolationLine
Avoid duplicate imports such as 'org.omwg.logicalexpression.Visitor'25

org/deri/wsmo4j/logicalexpression/ConjunctionImpl.java

ViolationLine
Ensure you override both equals() and hashCode()60

org/deri/wsmo4j/logicalexpression/ConstraintImpl.java

ViolationLine
Ensure you override both equals() and hashCode()57

org/deri/wsmo4j/logicalexpression/DisjunctionImpl.java

ViolationLine
Ensure you override both equals() and hashCode()61

org/deri/wsmo4j/logicalexpression/EquationImpl.java

ViolationLine
Ensure you override both equals() and hashCode()60

org/deri/wsmo4j/logicalexpression/ExistentialQuantificationImpl.java

ViolationLine
Ensure you override both equals() and hashCode()66

org/deri/wsmo4j/logicalexpression/ImplicationImpl.java

ViolationLine
Ensure you override both equals() and hashCode()60

org/deri/wsmo4j/logicalexpression/InverseImplicationImpl.java

ViolationLine
Ensure you override both equals() and hashCode()60

org/deri/wsmo4j/logicalexpression/LogicProgrammingRuleImpl.java

ViolationLine
Ensure you override both equals() and hashCode()60

org/deri/wsmo4j/logicalexpression/MemberShipMoleculeImpl.java

ViolationLine
Avoid duplicate imports such as 'org.omwg.logicalexpression.Visitor'21
Ensure you override both equals() and hashCode()54

org/deri/wsmo4j/logicalexpression/NegationAsFailureImpl.java

ViolationLine
Ensure you override both equals() and hashCode()57

org/deri/wsmo4j/logicalexpression/NegationImpl.java

ViolationLine
Ensure you override both equals() and hashCode()57

org/deri/wsmo4j/logicalexpression/SubConceptMoleculeImpl.java

ViolationLine
Avoid duplicate imports such as 'org.omwg.logicalexpression.Visitor'21
Ensure you override both equals() and hashCode()50

org/deri/wsmo4j/logicalexpression/UnaryImpl.java

ViolationLine
Ensure you override both equals() and hashCode()79

org/deri/wsmo4j/logicalexpression/UniversalQuantificationImpl.java

ViolationLine
Ensure you override both equals() and hashCode()67

org/deri/wsmo4j/logicalexpression/util/OntologyUtil.java

ViolationLine
These nested if statements could be combined111 - 113
These nested if statements could be combined146 - 148
These nested if statements could be combined194 - 195

org/deri/wsmo4j/validator/LogicalExpressionErrorImpl.java

ViolationLine
Overriding method merely calls super114 - 116

org/deri/wsmo4j/validator/ValidationErrorImpl.java

ViolationLine
Overriding method merely calls super138 - 140

org/deri/wsmo4j/validator/ValidationWarningImpl.java

ViolationLine
Overriding method merely calls super102 - 104

org/deri/wsmo4j/validator/WsmlCoreExpressionValidator.java

ViolationLine
These nested if statements could be combined227 - 231
These nested if statements could be combined245 - 249
These nested if statements could be combined319 - 323
These nested if statements could be combined366 - 370
These nested if statements could be combined867 - 870
These nested if statements could be combined927 - 931
Avoid unused method parameters such as 'v'.1159 - 1166
Avoid unused method parameters such as 'checkList'.1159 - 1166
Avoid unused method parameters such as 'from'.1159 - 1166

org/deri/wsmo4j/validator/WsmlCoreValidator.java

ViolationLine
Overriding method merely calls super103 - 107
Overriding method merely calls super114 - 118
Overriding method merely calls super125 - 129
Overriding method merely calls super138 - 143

org/deri/wsmo4j/validator/WsmlDLExpressionValidator.java

ViolationLine
Avoid duplicate imports such as 'org.omwg.logicalexpression.Visitor'25
These nested if statements could be combined243 - 247
These nested if statements could be combined287 - 291
These nested if statements could be combined408 - 416
These nested if statements could be combined543 - 553
These nested if statements could be combined1097 - 1100
These nested if statements could be combined1142 - 1145
Avoid unused method parameters such as 'v'.1450 - 1457
Avoid unused method parameters such as 'checkList'.1450 - 1457
Avoid unused method parameters such as 'from'.1450 - 1457

org/deri/wsmo4j/validator/WsmlFlightExpressionValidator.java

ViolationLine
These nested if statements could be combined474 - 476
These nested if statements could be combined509 - 520
These nested if statements could be combined539 - 550

org/deri/wsmo4j/validator/WsmlFlightValidator.java

ViolationLine
Overriding method merely calls super79 - 81
Overriding method merely calls super88 - 90
Overriding method merely calls super97 - 99
Overriding method merely calls super108 - 111

org/deri/wsmo4j/validator/WsmlRuleExpressionValidator.java

ViolationLine
These nested if statements could be combined117 - 121

org/deri/wsmo4j/validator/WsmlRuleValidator.java

ViolationLine
Overriding method merely calls super77 - 79
Overriding method merely calls super86 - 88
Overriding method merely calls super95 - 97
Overriding method merely calls super106 - 109

org/deri/wsmo4j/validator/WsmlValidatorImpl.java

ViolationLine
Avoid instantiating Boolean objects; reference Boolean.TRUE or Boolean.FALSE or call Boolean.valueOf() instead.83
These nested if statements could be combined331 - 341