PMD Results

The following document contains the results of PMD 4.2.2.

Files

com/ontotext/wsmo4j/common/TopEntityImpl.java

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

com/ontotext/wsmo4j/examples/LoadOntologyExample.java

Violation Line
Avoid empty catch blocks 90 - 92

com/ontotext/wsmo4j/examples/LoadWebServiceExample.java

Violation Line
Avoid empty catch blocks 90 - 92

com/ontotext/wsmo4j/factory/EntityRegistry.java

Violation Line
These nested if statements could be combined 169 - 170

com/ontotext/wsmo4j/factory/WsmoFactoryImpl.java

Violation Line
Avoid unused constructor parameters such as 'map'. 54 - 57
Avoid unnecessary return statements 269

com/ontotext/wsmo4j/mediator/GGMediatorImpl.java

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

com/ontotext/wsmo4j/mediator/MediatorImpl.java

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

com/ontotext/wsmo4j/mediator/OOMediatorImpl.java

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

com/ontotext/wsmo4j/mediator/WGMediatorImpl.java

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

com/ontotext/wsmo4j/mediator/WWMediatorImpl.java

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

com/ontotext/wsmo4j/ontology/AttributeImpl.java

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

com/ontotext/wsmo4j/ontology/AxiomImpl.java

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

com/ontotext/wsmo4j/ontology/ComplexDataTypeImpl.java

Violation Line
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

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

com/ontotext/wsmo4j/ontology/ConceptImpl.java

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

com/ontotext/wsmo4j/ontology/InstanceImpl.java

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

com/ontotext/wsmo4j/ontology/OntologyImpl.java

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

com/ontotext/wsmo4j/ontology/ParameterImpl.java

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

com/ontotext/wsmo4j/ontology/RelationImpl.java

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

com/ontotext/wsmo4j/ontology/RelationInstanceImpl.java

Violation Line
These nested if statements could be combined 146 - 149
Ensure you override both equals() and hashCode() 165

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

Violation Line
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 statements 795 - 796
An empty statement (semicolon) not part of a loop 1069
Avoid empty catch blocks 1311 - 1313

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

Violation Line
Avoid unused imports such as 'org.wsmo.validator.ValidationError' 36
Avoid unused imports such as 'org.wsmo.validator.ValidationWarning' 37
Avoid empty catch blocks 166 - 168
Avoid empty catch blocks 171 - 173

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

Violation Line
Avoid unused private fields such as 'factory'. 44

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

Violation Line
Avoid empty if statements 62 - 64

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

Violation Line
Avoid empty catch blocks 79 - 80

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

Violation Line
Avoid empty try blocks 174 - 183

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

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

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

Violation Line
Avoid unused constructor parameters such as 'map'. 60 - 61
Avoid unnecessary return statements 140
Avoid unnecessary return statements 144

com/ontotext/wsmo4j/service/CapabilityImpl.java

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

com/ontotext/wsmo4j/service/ChoreographyImpl.java

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

com/ontotext/wsmo4j/service/GoalImpl.java

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

com/ontotext/wsmo4j/service/InterfaceImpl.java

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

com/ontotext/wsmo4j/service/OrchestrationImpl.java

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

com/ontotext/wsmo4j/service/ServiceDescriptionImpl.java

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

com/ontotext/wsmo4j/service/WebServiceImpl.java

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

org/deri/wsmo4j/examples/LocatorExample.java

Violation Line
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

Violation Line
Avoid empty catch blocks 115

org/deri/wsmo4j/factory/DataFactoryImpl.java

Violation Line
These nested if statements could be combined 172 - 178

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

Violation Line
These nested if statements could be combined 590 - 593
Avoid unused method parameters such as 'concept'. 671 - 688
Avoid unused method parameters such as 'statement'. 893 - 902
Avoid empty if statements 896 - 898

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

Violation Line
Overriding method merely calls super 77 - 79

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

Violation Line
Overriding method merely calls super 108 - 110

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

Violation Line
Avoid unused private fields such as 'container'. 48

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

Violation Line
Avoid unused imports such as 'org.omwg.ontology.Axiom' 25
Avoid empty catch blocks 182 - 184
Avoid empty catch blocks 188 - 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

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

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

Violation Line
Avoid duplicate imports such as 'org.openrdf.model.Value' 26

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

Violation Line
Avoid unused imports such as 'org.openrdf.vocabulary.RDF' 24
Avoid unused imports such as 'org.openrdf.vocabulary.RDFS' 25

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

Violation Line
Avoid duplicate imports such as 'org.openrdf.model.Value' 26

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

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

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

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

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

Violation Line
Avoid empty if statements 37 - 38
Avoid empty if statements 39 - 40
Avoid empty if statements 41 - 42

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

Violation Line
Avoid unnecessary return statements 196
Avoid unnecessary return statements 200

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

Violation Line
Avoid empty catch blocks 65 - 68

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

Violation Line
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

Violation Line
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 combined 265 - 266

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

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

org/deri/wsmo4j/logicalexpression/AttributeConstraintMoleculeImpl.java

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

org/deri/wsmo4j/logicalexpression/AttributeInferenceMoleculeImpl.java

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

org/deri/wsmo4j/logicalexpression/AttributeValueMoleculeImpl.java

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

org/deri/wsmo4j/logicalexpression/BinaryImpl.java

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

org/deri/wsmo4j/logicalexpression/CompoundMoleculeImpl.java

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

org/deri/wsmo4j/logicalexpression/ConjunctionImpl.java

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

org/deri/wsmo4j/logicalexpression/ConstraintImpl.java

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

org/deri/wsmo4j/logicalexpression/DisjunctionImpl.java

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

org/deri/wsmo4j/logicalexpression/EquationImpl.java

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

org/deri/wsmo4j/logicalexpression/ExistentialQuantificationImpl.java

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

org/deri/wsmo4j/logicalexpression/ImplicationImpl.java

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

org/deri/wsmo4j/logicalexpression/InverseImplicationImpl.java

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

org/deri/wsmo4j/logicalexpression/LogicProgrammingRuleImpl.java

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

org/deri/wsmo4j/logicalexpression/MemberShipMoleculeImpl.java

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

org/deri/wsmo4j/logicalexpression/NegationAsFailureImpl.java

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

org/deri/wsmo4j/logicalexpression/NegationImpl.java

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

org/deri/wsmo4j/logicalexpression/SubConceptMoleculeImpl.java

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

org/deri/wsmo4j/logicalexpression/UnaryImpl.java

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

org/deri/wsmo4j/logicalexpression/UniversalQuantificationImpl.java

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

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

Violation Line
These nested if statements could be combined 111 - 113
These nested if statements could be combined 146 - 148
These nested if statements could be combined 194 - 195

org/deri/wsmo4j/validator/LogicalExpressionErrorImpl.java

Violation Line
Overriding method merely calls super 114 - 116

org/deri/wsmo4j/validator/ValidationErrorImpl.java

Violation Line
Overriding method merely calls super 138 - 140

org/deri/wsmo4j/validator/ValidationWarningImpl.java

Violation Line
Overriding method merely calls super 102 - 104

org/deri/wsmo4j/validator/WsmlCoreExpressionValidator.java

Violation Line
These nested if statements could be combined 227 - 231
These nested if statements could be combined 245 - 249
These nested if statements could be combined 319 - 323
These nested if statements could be combined 366 - 370
These nested if statements could be combined 867 - 870
These nested if statements could be combined 927 - 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

Violation Line
Overriding method merely calls super 103 - 107
Overriding method merely calls super 114 - 118
Overriding method merely calls super 125 - 129
Overriding method merely calls super 138 - 143

org/deri/wsmo4j/validator/WsmlDLExpressionValidator.java

Violation Line
Avoid duplicate imports such as 'org.omwg.logicalexpression.Visitor' 25
These nested if statements could be combined 243 - 247
These nested if statements could be combined 287 - 291
These nested if statements could be combined 408 - 416
These nested if statements could be combined 543 - 553
These nested if statements could be combined 1097 - 1100
These nested if statements could be combined 1142 - 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

Violation Line
These nested if statements could be combined 474 - 476
These nested if statements could be combined 509 - 520
These nested if statements could be combined 539 - 550

org/deri/wsmo4j/validator/WsmlFlightValidator.java

Violation Line
Overriding method merely calls super 79 - 81
Overriding method merely calls super 88 - 90
Overriding method merely calls super 97 - 99
Overriding method merely calls super 108 - 111

org/deri/wsmo4j/validator/WsmlRuleExpressionValidator.java

Violation Line
These nested if statements could be combined 117 - 121

org/deri/wsmo4j/validator/WsmlRuleValidator.java

Violation Line
Overriding method merely calls super 77 - 79
Overriding method merely calls super 86 - 88
Overriding method merely calls super 95 - 97
Overriding method merely calls super 106 - 109

org/deri/wsmo4j/validator/WsmlValidatorImpl.java

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