Apache Commons logo Commons Validator

PMD Results

The following document contains the results of PMD 5.5.1.

Files

org/apache/commons/validator/CreditCardValidator.java

Violation Line
Useless parentheses. 140
Useless parentheses. 140
Useless parentheses. 140
Ternary operators that can be simplified with || or && 195
Useless parentheses. 229230
Useless parentheses. 239
Useless parentheses. 239
Useless parentheses. 239
Useless parentheses. 247
Useless parentheses. 247
Useless parentheses. 256
Useless parentheses. 256
Useless parentheses. 256

org/apache/commons/validator/DateValidator.java

Violation Line
Useless parentheses. 89

org/apache/commons/validator/EmailValidator.java

Violation Line
Useless parentheses. 180

org/apache/commons/validator/Field.java

Violation Line
Useless parentheses. 431
Useless parentheses. 431
Useless parentheses. 439
Useless parentheses. 545
Useless parentheses. 545

org/apache/commons/validator/GenericValidator.java

Violation Line
Useless parentheses. 56
Useless parentheses. 56
Useless parentheses. 56
Useless parentheses. 81
Useless parentheses. 91
Useless parentheses. 101
Useless parentheses. 111
Useless parentheses. 121
Useless parentheses. 131
Useless parentheses. 175
Useless parentheses. 175
Useless parentheses. 175
Useless parentheses. 188
Useless parentheses. 188
Useless parentheses. 188
Useless parentheses. 201
Useless parentheses. 201
Useless parentheses. 201
Useless parentheses. 214
Useless parentheses. 214
Useless parentheses. 214
Useless parentheses. 227
Useless parentheses. 227
Useless parentheses. 227
Useless parentheses. 240
Useless parentheses. 240
Useless parentheses. 240
Useless parentheses. 282
Useless parentheses. 295
Useless parentheses. 306
Useless parentheses. 319
Useless parentheses. 342
Useless parentheses. 342
Useless parentheses. 355
Useless parentheses. 366
Useless parentheses. 377
Useless parentheses. 388
Useless parentheses. 399
Useless parentheses. 410
Useless parentheses. 421
Useless parentheses. 432

org/apache/commons/validator/UrlValidator.java

Violation Line
Useless parentheses. 356
Useless parentheses. 411

org/apache/commons/validator/ValidatorAction.java

Violation Line
Useless parentheses. 463
Useless parentheses. 569

org/apache/commons/validator/ValidatorResources.java

Violation Line
Useless parentheses. 414
Useless parentheses. 415
Useless parentheses. 416

org/apache/commons/validator/ValidatorResult.java

Violation Line
Ternary operators that can be simplified with || or && 92
Avoid unused constructor parameters such as 'ignored'. 163

org/apache/commons/validator/routines/AbstractCalendarValidator.java

Violation Line
Useless parentheses. 214
Useless parentheses. 307309
Useless parentheses. 336
Useless parentheses. 395
Useless parentheses. 397
Useless parentheses. 398
Useless parentheses. 403

org/apache/commons/validator/routines/AbstractNumberValidator.java

Violation Line
Useless parentheses. 113
Useless parentheses. 126
Useless parentheses. 128
Useless parentheses. 141
Useless parentheses. 143
Useless parentheses. 191

org/apache/commons/validator/routines/BigDecimalValidator.java

Violation Line
Useless parentheses. 189
Useless parentheses. 201
Useless parentheses. 213

org/apache/commons/validator/routines/BigIntegerValidator.java

Violation Line
Useless parentheses. 172
Useless parentheses. 184
Useless parentheses. 196

org/apache/commons/validator/routines/ByteValidator.java

Violation Line
Useless parentheses. 171
Useless parentheses. 196
Useless parentheses. 220

org/apache/commons/validator/routines/CodeValidator.java

Violation Line
Useless parentheses. 234
Useless parentheses. 269
Useless parentheses. 270

org/apache/commons/validator/routines/DomainValidator.java

Violation Line
Useless parentheses. 186

org/apache/commons/validator/routines/DoubleValidator.java

Violation Line
Useless parentheses. 171
Useless parentheses. 196
Useless parentheses. 220

org/apache/commons/validator/routines/EmailValidator.java

Violation Line
Useless parentheses. 202

org/apache/commons/validator/routines/FloatValidator.java

Violation Line
Useless parentheses. 171
Useless parentheses. 196
Useless parentheses. 220

org/apache/commons/validator/routines/IBANValidator.java

Violation Line
No need to import a type that lives in the same package 23

org/apache/commons/validator/routines/ISBNValidator.java

Violation Line
Useless parentheses. 149

org/apache/commons/validator/routines/InetAddressValidator.java

Violation Line
Useless parentheses. 130
Useless parentheses. 133
Useless parentheses. 134
Useless parentheses. 185

org/apache/commons/validator/routines/IntegerValidator.java

Violation Line
Useless parentheses. 171
Useless parentheses. 196
Useless parentheses. 220

org/apache/commons/validator/routines/LongValidator.java

Violation Line
Useless parentheses. 170
Useless parentheses. 195
Useless parentheses. 219

org/apache/commons/validator/routines/ShortValidator.java

Violation Line
Useless parentheses. 171
Useless parentheses. 196
Useless parentheses. 220

org/apache/commons/validator/routines/UrlValidator.java

Violation Line
These nested if statements could be combined 317319
Useless parentheses. 464

org/apache/commons/validator/routines/checkdigit/CUSIPCheckDigit.java

Violation Line
Useless parentheses. 97

org/apache/commons/validator/routines/checkdigit/IBANCheckDigit.java

Violation Line
Useless parentheses. 82

org/apache/commons/validator/routines/checkdigit/ISINCheckDigit.java

Violation Line
Useless parentheses. 108

org/apache/commons/validator/routines/checkdigit/LuhnCheckDigit.java

Violation Line
Useless parentheses. 74

org/apache/commons/validator/routines/checkdigit/ModulusCheckDigit.java

Violation Line
Useless parentheses. 76

org/apache/commons/validator/routines/checkdigit/VerhoeffCheckDigit.java

Violation Line
Useless parentheses. 83