The following document contains the results of PMD 5.2.3.
Violation | Line |
---|---|
Avoid unused private methods such as 'getChecksum(NmeaMessage)'. | 103 |
Violation | Line |
---|---|
Useless parentheses. | 260 |
Violation | Line |
---|---|
Avoid unused constructor parameters such as 'factory'. | 29 |
Violation | Line |
---|---|
Unnecessary use of fully qualified name 'Util.areEqual' due to existing import 'au.gov.amsa.ais.Util' | 69 |
Violation | Line |
---|---|
Avoid unused constructor parameters such as 'padBits'. | 14 |
Violation | Line |
---|---|
Avoid empty catch blocks | 88–90 |
Avoid empty catch blocks | 94–96 |
Violation | Line |
---|---|
Useless parentheses. | 146 |
Violation | Line |
---|---|
Useless parentheses. | 37 |
Violation | Line |
---|---|
Useless parentheses. | 99–100 |
Avoid empty catch blocks | 109–113 |
Violation | Line |
---|---|
Unnecessary use of fully qualified name 'EffectiveSpeedChecker.effectiveSpeedOk' due to existing import 'au.gov.amsa.geo.distance.EffectiveSpeedChecker' | 130 |
Useless parentheses. | 165 |
Useless parentheses. | 189 |
Violation | Line |
---|---|
These nested if statements could be combined | 82–83 |
Violation | Line |
---|---|
Too many static imports may lead to messy code | 1–240 |
Avoid unused private methods such as 'toRegion()'. | 53 |
Unnecessary use of fully qualified name 'Observable.empty' due to existing import 'rx.Observable' | 104 |
Violation | Line |
---|---|
Avoid empty catch blocks | 68–70 |
Violation | Line |
---|---|
Avoid empty if statements | 128–131 |
Avoid empty if statements | 156–158 |
Avoid modifiers which are implied by the context | 203–209 |
Useless parentheses. | 272–273 |
Violation | Line |
---|---|
Useless parentheses. | 25 |
Violation | Line |
---|---|
Unnecessary use of fully qualified name 'Optional.absent' due to existing import 'com.google.common.base.Optional' | 130 |
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 132 |
Unnecessary use of fully qualified name 'Optional.absent' due to existing import 'com.google.common.base.Optional' | 150 |
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 152 |
Violation | Line |
---|---|
Unnecessary use of fully qualified name 'Optional.absent' due to existing import 'com.google.common.base.Optional' | 64 |
Avoid unused private fields such as 'EQUAL_ID'. | 158 |
Violation | Line |
---|---|
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 22 |
Violation | Line |
---|---|
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 114 |
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 315 |
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 323 |
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 480 |
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 487 |
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 535 |
Violation | Line |
---|---|
Useless parentheses. | 66 |
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 110 |
Violation | Line |
---|---|
Unnecessary use of fully qualified name 'Optional.fromNullable' due to existing import 'com.google.common.base.Optional' | 21 |
Violation | Line |
---|---|
Avoid unused private methods such as 'toVesselPosition()'. | 103 |
Avoid unused local variables such as 'r'. | 407 |
Useless parentheses. | 436 |
Avoid empty catch blocks | 492–493 |
Avoid unused private methods such as 'sortFiles()'. | 508 |
Violation | Line |
---|---|
Useless parentheses. | 44 |
Violation | Line |
---|---|
Avoid unused method parameters such as 'num'. | 61 |
Violation | Line |
---|---|
Unnecessary final modifier in final class | 139–153 |
Violation | Line |
---|---|
Avoid unused method parameters such as 'cls'. | 103 |
Violation | Line |
---|---|
Avoid empty catch blocks | 83–85 |
Violation | Line |
---|---|
Useless parentheses. | 184–185 |
Useless parentheses. | 342 |
Useless parentheses. | 343 |
These nested if statements could be combined | 364–369 |
Useless parentheses. | 395 |
Avoid modifiers which are implied by the context | 417–421 |
Violation | Line |
---|---|
Avoid modifiers which are implied by the context | 66–69 |
Violation | Line |
---|---|
Useless parentheses. | 63 |
Useless parentheses. | 64–66 |
Useless parentheses. | 64–66 |
Violation | Line |
---|---|
Avoid unused method parameters such as 'metrics'. | 153 |
Avoid unused method parameters such as 'h'. | 154 |
Violation | Line |
---|---|
An operation on an Immutable object (String, BigDecimal or BigInteger) wont change the object itself | 74 |
Violation | Line |
---|---|
Too many static imports may lead to messy code | 1–585 |
Violation | Line |
---|---|
Avoid unused constructor parameters such as 'bufferSize'. | 56 |
Violation | Line |
---|---|
Avoid unused imports such as 'com.vividsolutions.jts.awt.PointShapeFactory.X' | 32 |
Violation | Line |
---|---|
Avoid empty catch blocks | 71–73 |
Unnecessary use of fully qualified name 'Optional.absent' due to existing import 'com.google.common.base.Optional' | 165 |
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 167 |
Unnecessary use of fully qualified name 'Optional.absent' due to existing import 'com.google.common.base.Optional' | 173 |
Unnecessary use of fully qualified name 'Optional.of' due to existing import 'com.google.common.base.Optional' | 175 |
Violation | Line |
---|---|
Avoid empty catch blocks | 59–61 |
Violation | Line |
---|---|
Avoid unused local variables such as 'sameModel'. | 72 |