PMD Results

The following document contains the results of PMD 4.1.

Files

org/apache/clerezza/rdf/core/access/TcManager.java

Violation Line
Avoid empty catch blocks 318 - 320
Avoid empty catch blocks 337 - 339
Avoid empty catch blocks 339 - 341
Double checked locking is not thread safe in Java. 362 - 374
Avoid empty catch blocks 404 - 406
Avoid empty catch blocks 406 - 408
Avoid empty catch blocks 442 - 444
Avoid empty catch blocks 444 - 446
Avoid empty catch blocks 477 - 479
Avoid empty catch blocks 479 - 481
Avoid empty catch blocks 506 - 508
Avoid empty catch blocks 508 - 510
Avoid empty catch blocks 535 - 537
Avoid empty catch blocks 537 - 539
Avoid empty catch blocks 539 - 541

org/apache/clerezza/rdf/core/impl/DelayedNotificator.java

Violation Line
Avoid unused constructor parameters such as 'delay'. 50 - 52

org/apache/clerezza/rdf/core/impl/graphmatching/GraphMatcher.java

Violation Line
Avoid unused imports such as 'java.util.HashMap' 24

org/apache/clerezza/rdf/core/impl/graphmatching/GroupMappingIterator.java

Violation Line
Avoid unused imports such as 'java.util.HashSet' 22

org/apache/clerezza/rdf/core/impl/graphmatching/HashMatching.java

Violation Line
Avoid unused imports such as 'org.apache.clerezza.rdf.core.TripleCollection' 34
These nested if statements could be combined 66 - 68

org/apache/clerezza/rdf/core/serializedform/Parser.java

Violation Line
Avoid unused constructor parameters such as 'dummy'. 80 - 81

org/apache/clerezza/rdf/core/serializedform/Serializer.java

Violation Line
Avoid unused constructor parameters such as 'dummy'. 85 - 86

org/apache/clerezza/rdf/core/serializedform/SupportedFormat.java

Violation Line
Error while parsing /home/reto/projects/apache/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.core/src/main/java/org/apache/clerezza/rdf/core/serializedform/SupportedFormat.java: ERROR: expecting enum 0
Error while parsing /home/reto/projects/apache/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.core/src/main/java/org/apache/clerezza/rdf/core/serializedform/SupportedFormat.java: ERROR: expecting enum 0
Error while parsing /home/reto/projects/apache/clerezza/trunk/org.apache.clerezza.parent/org.apache.clerezza.rdf.core/src/main/java/org/apache/clerezza/rdf/core/serializedform/SupportedFormat.java: ERROR: expecting enum 0

org/apache/clerezza/rdf/core/sparql/query/impl/SimpleGroupGraphPattern.java

Violation Line
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.OptionalGraphPattern' 28

org/apache/clerezza/rdf/core/sparql/JavaCCGeneratedQueryParser.java

Violation Line
An empty statement (semicolon) not part of a loop 239
An empty statement (semicolon) not part of a loop 245
An empty statement (semicolon) not part of a loop 295
An empty statement (semicolon) not part of a loop 307
An empty statement (semicolon) not part of a loop 328
An empty statement (semicolon) not part of a loop 349
An empty statement (semicolon) not part of a loop 381
An empty statement (semicolon) not part of a loop 402
An empty statement (semicolon) not part of a loop 417
An empty statement (semicolon) not part of a loop 429
Do not use if statements that are always true or always false 474
An empty statement (semicolon) not part of a loop 486
An empty statement (semicolon) not part of a loop 499
An empty statement (semicolon) not part of a loop 508
An empty statement (semicolon) not part of a loop 522
An empty statement (semicolon) not part of a loop 533
An empty statement (semicolon) not part of a loop 569
An empty statement (semicolon) not part of a loop 700
An empty statement (semicolon) not part of a loop 709
An empty statement (semicolon) not part of a loop 736
An empty statement (semicolon) not part of a loop 768
Do not use if statements that are always true or always false 772
An empty statement (semicolon) not part of a loop 813
An empty statement (semicolon) not part of a loop 818
An empty statement (semicolon) not part of a loop 865
Do not use if statements that are always true or always false 889
Do not use if statements that are always true or always false 922
Do not use if statements that are always true or always false 931
An empty statement (semicolon) not part of a loop 950
Do not use if statements that are always true or always false 967
An empty statement (semicolon) not part of a loop 1004
Do not use if statements that are always true or always false 1007
An empty statement (semicolon) not part of a loop 1048
An empty statement (semicolon) not part of a loop 1053
Do not use if statements that are always true or always false 1055
Do not use if statements that are always true or always false 1088
Do not use if statements that are always true or always false 1094
An empty statement (semicolon) not part of a loop 1115
An empty statement (semicolon) not part of a loop 1135
An empty statement (semicolon) not part of a loop 1153
An empty statement (semicolon) not part of a loop 1166
Do not use if statements that are always true or always false 1176
Do not use if statements that are always true or always false 1183
Do not use if statements that are always true or always false 1196
Do not use if statements that are always true or always false 1200
Do not use if statements that are always true or always false 1224
Do not use if statements that are always true or always false 1233
An empty statement (semicolon) not part of a loop 1271
Do not use if statements that are always true or always false 1279
Do not use if statements that are always true or always false 1320
Do not use if statements that are always true or always false 1331
Do not use if statements that are always true or always false 1355
Do not use if statements that are always true or always false 1372
Do not use if statements that are always true or always false 1378
Do not use if statements that are always true or always false 1402
Do not use if statements that are always true or always false 1450
Do not use if statements that are always true or always false 1452
Do not use if statements that are always true or always false 1459
An empty statement (semicolon) not part of a loop 1470
Do not use if statements that are always true or always false 1480
An empty statement (semicolon) not part of a loop 1491
Do not use if statements that are always true or always false 1501
Do not use if statements that are always true or always false 1508
An empty statement (semicolon) not part of a loop 1561
Do not use if statements that are always true or always false 1563
Do not use if statements that are always true or always false 1570
An empty statement (semicolon) not part of a loop 1589
Do not use if statements that are always true or always false 1624
An empty statement (semicolon) not part of a loop 1636
Do not use if statements that are always true or always false 1659
Do not use if statements that are always true or always false 1669
Do not use if statements that are always true or always false 1674
Do not use if statements that are always true or always false 1679
Do not use if statements that are always true or always false 1714
Do not use if statements that are always true or always false 1780
Do not use if statements that are always true or always false 1782
Do not use if statements that are always true or always false 1791
Do not use if statements that are always true or always false 1888
Do not use if statements that are always true or always false 1895
An empty statement (semicolon) not part of a loop 1917
Do not use if statements that are always true or always false 1920
Do not use if statements that are always true or always false 1932
An empty statement (semicolon) not part of a loop 1936
Do not use if statements that are always true or always false 1938
Do not use if statements that are always true or always false 1953
Do not use if statements that are always true or always false 1958
An empty statement (semicolon) not part of a loop 1968
Do not use if statements that are always true or always false 1970
Do not use if statements that are always true or always false 1997
Do not use if statements that are always true or always false 2006
Do not use if statements that are always true or always false 2010
Do not use if statements that are always true or always false 2014
Do not use if statements that are always true or always false 2029
Do not use if statements that are always true or always false 2033
Do not use if statements that are always true or always false 2037
Do not use if statements that are always true or always false 2052
Do not use if statements that are always true or always false 2056
Do not use if statements that are always true or always false 2060
Do not use if statements that are always true or always false 2074
Do not use if statements that are always true or always false 2078
Do not use if statements that are always true or always false 2093
Do not use if statements that are always true or always false 2097
Do not use if statements that are always true or always false 2101
Do not use if statements that are always true or always false 2105
Do not use if statements that are always true or always false 2121
Do not use if statements that are always true or always false 2126
Do not use if statements that are always true or always false 2150
Do not use if statements that are always true or always false 2159
Do not use if statements that are always true or always false 2163

org/apache/clerezza/rdf/core/sparql/JavaCCGeneratedQueryParserTokenManager.java

Violation Line
Avoid unused imports such as 'java.util.ArrayList' 3
Avoid unused imports such as 'java.util.HashMap' 4
Avoid unused imports such as 'java.util.HashSet' 5
Avoid unused imports such as 'java.util.List' 6
Avoid unused imports such as 'java.util.Map' 7
Avoid unused imports such as 'java.util.Set' 8
Avoid unused imports such as 'java.util.regex.Matcher' 9
Avoid unused imports such as 'java.util.regex.Pattern' 10
Avoid unused imports such as 'org.apache.clerezza.rdf.core.BNode' 11
Avoid unused imports such as 'org.apache.clerezza.rdf.core.Language' 12
Avoid unused imports such as 'org.apache.clerezza.rdf.core.Literal' 13
Avoid unused imports such as 'org.apache.clerezza.rdf.core.LiteralFactory' 14
Avoid unused imports such as 'org.apache.clerezza.rdf.core.Resource' 15
Avoid unused imports such as 'org.apache.clerezza.rdf.core.TypedLiteral' 16
Avoid unused imports such as 'org.apache.clerezza.rdf.core.UriRef' 17
Avoid unused imports such as 'org.apache.clerezza.rdf.core.impl.PlainLiteralImpl' 18
Avoid unused imports such as 'org.apache.clerezza.rdf.core.impl.TypedLiteralImpl' 19
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.GroupGraphPattern' 20
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.BinaryOperation' 21
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.Variable' 22
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.ResourceOrVariable' 23
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.UriRefOrVariable' 24
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.FunctionCall' 25
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.TriplePattern' 26
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.Query' 27
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.LiteralExpression' 28
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.AlternativeGraphPattern' 29
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.BuiltInCall' 30
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.Expression' 31
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.UriRefExpression' 32
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.UnaryOperation' 33
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleAlternativeGraphPattern' 34
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleAskQuery' 35
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleConstructQuery' 36
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleDescribeQuery' 37
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleGraphGraphPattern' 38
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleGroupGraphPattern' 39
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleOrderCondition' 40
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQuery' 41
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleQueryWithSolutionModifier' 42
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleSelectQuery' 43
Avoid unused imports such as 'org.apache.clerezza.rdf.core.sparql.query.impl.SimpleTriplePattern' 44
Avoid unused private methods such as 'jjStopAtPos(int,int)'. 54
Do not start a literal by 0 unless it's an octal value 1721
Do not start a literal by 0 unless it's an octal value 1964
Do not start a literal by 0 unless it's an octal value 1966
Do not start a literal by 0 unless it's an octal value 2179
Avoid unused local variables such as 'l'. 2179
Do not start a literal by 0 unless it's an octal value 2196
Do not start a literal by 0 unless it's an octal value 2198
Avoid unused private fields such as 'lengthOfMatch'. 2341
Do not start a literal by 0 unless it's an octal value 2476
Do not start a literal by 0 unless it's an octal value 2484
Do not start a literal by 0 unless it's an octal value 2486
Avoid empty catch blocks 2513

org/apache/clerezza/rdf/core/sparql/TokenMgrError.java

Violation Line
Overriding method merely calls super 118 - 120