Apache Commons logo Commons Validator

PMD Results

The following document contains the results of PMD 6.21.0.

Violations By Priority

Priority 3

org/apache/commons/validator/CreditCardValidator.java

Rule Violation Line
SimplifiedTernary Ternary operators that can be simplified with || or && 195

org/apache/commons/validator/ValidatorResult.java

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

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

Rule Violation Line
CollapsibleIfStatements These nested if statements could be combined 152154

Priority 4

org/apache/commons/validator/CreditCardValidator.java

Rule Violation Line
UselessParentheses Useless parentheses. 140
UselessParentheses Useless parentheses. 140
UselessParentheses Useless parentheses. 140
UselessParentheses Useless parentheses. 229230
UselessParentheses Useless parentheses. 239
UselessParentheses Useless parentheses. 239
UselessParentheses Useless parentheses. 239
UselessParentheses Useless parentheses. 247
UselessParentheses Useless parentheses. 247
UselessParentheses Useless parentheses. 256
UselessParentheses Useless parentheses. 256
UselessParentheses Useless parentheses. 256

org/apache/commons/validator/DateValidator.java

Rule Violation Line
UselessParentheses Useless parentheses. 89

org/apache/commons/validator/EmailValidator.java

Rule Violation Line
UselessParentheses Useless parentheses. 180

org/apache/commons/validator/Field.java

Rule Violation Line
UselessParentheses Useless parentheses. 431
UselessParentheses Useless parentheses. 431
UselessParentheses Useless parentheses. 439
UselessParentheses Useless parentheses. 544

org/apache/commons/validator/GenericValidator.java

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

org/apache/commons/validator/UrlValidator.java

Rule Violation Line
UselessParentheses Useless parentheses. 356
UselessParentheses Useless parentheses. 411

org/apache/commons/validator/ValidatorAction.java

Rule Violation Line
UselessParentheses Useless parentheses. 463
UselessParentheses Useless parentheses. 569

org/apache/commons/validator/ValidatorResources.java

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

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

Rule Violation Line
UselessParentheses Useless parentheses. 70
UselessParentheses Useless parentheses. 178
UselessParentheses Useless parentheses. 214
UselessParentheses Useless parentheses. 307309
UselessParentheses Useless parentheses. 336
UselessParentheses Useless parentheses. 394
UselessParentheses Useless parentheses. 395
UselessParentheses Useless parentheses. 396
UselessParentheses Useless parentheses. 397
UselessParentheses Useless parentheses. 398
UselessParentheses Useless parentheses. 398
UselessParentheses Useless parentheses. 403

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

Rule Violation Line
UselessParentheses Useless parentheses. 100
UselessParentheses Useless parentheses. 113
UselessParentheses Useless parentheses. 126
UselessParentheses Useless parentheses. 128
UselessParentheses Useless parentheses. 141
UselessParentheses Useless parentheses. 143
UselessParentheses Useless parentheses. 157
UselessParentheses Useless parentheses. 191

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

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

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

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

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

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

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

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

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

Rule Violation Line
UselessParentheses Useless parentheses. 306

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

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

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

Rule Violation Line
UselessParentheses Useless parentheses. 220

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

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

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

Rule Violation Line
UselessParentheses Useless parentheses. 129
UselessParentheses Useless parentheses. 160
UselessParentheses Useless parentheses. 220
UselessParentheses Useless parentheses. 235

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

Rule Violation Line
UselessParentheses Useless parentheses. 158
UselessParentheses Useless parentheses. 161
UselessParentheses Useless parentheses. 162
UselessParentheses Useless parentheses. 213

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

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

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

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

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

Rule Violation Line
UselessParentheses Useless parentheses. 125

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

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

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

Rule Violation Line
UselessParentheses Useless parentheses. 269
UselessParentheses Useless parentheses. 463

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

Rule Violation Line
UselessParentheses Useless parentheses. 97

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

Rule Violation Line
UselessParentheses Useless parentheses. 82
UselessParentheses Useless parentheses. 107
UselessParentheses Useless parentheses. 109

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

Rule Violation Line
UselessParentheses Useless parentheses. 74

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

Rule Violation Line
UselessParentheses Useless parentheses. 76

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

Rule Violation Line
UselessParentheses Useless parentheses. 83

Files

org/apache/commons/validator/CreditCardValidator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 140
UselessParentheses Useless parentheses. 4 140
UselessParentheses Useless parentheses. 4 140
SimplifiedTernary Ternary operators that can be simplified with || or && 3 195
UselessParentheses Useless parentheses. 4 229230
UselessParentheses Useless parentheses. 4 239
UselessParentheses Useless parentheses. 4 239
UselessParentheses Useless parentheses. 4 239
UselessParentheses Useless parentheses. 4 247
UselessParentheses Useless parentheses. 4 247
UselessParentheses Useless parentheses. 4 256
UselessParentheses Useless parentheses. 4 256
UselessParentheses Useless parentheses. 4 256

org/apache/commons/validator/DateValidator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 89

org/apache/commons/validator/EmailValidator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 180

org/apache/commons/validator/Field.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 431
UselessParentheses Useless parentheses. 4 431
UselessParentheses Useless parentheses. 4 439
UselessParentheses Useless parentheses. 4 544

org/apache/commons/validator/GenericValidator.java

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

org/apache/commons/validator/UrlValidator.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 356
UselessParentheses Useless parentheses. 4 411

org/apache/commons/validator/ValidatorAction.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 463
UselessParentheses Useless parentheses. 4 569

org/apache/commons/validator/ValidatorResources.java

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 414
UselessParentheses Useless parentheses. 4 414
UselessParentheses Useless parentheses. 4 415
UselessParentheses Useless parentheses. 4 415
UselessParentheses Useless parentheses. 4 416
UselessParentheses Useless parentheses. 4 416

org/apache/commons/validator/ValidatorResult.java

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

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 70
UselessParentheses Useless parentheses. 4 178
UselessParentheses Useless parentheses. 4 214
UselessParentheses Useless parentheses. 4 307309
UselessParentheses Useless parentheses. 4 336
UselessParentheses Useless parentheses. 4 394
UselessParentheses Useless parentheses. 4 395
UselessParentheses Useless parentheses. 4 396
UselessParentheses Useless parentheses. 4 397
UselessParentheses Useless parentheses. 4 398
UselessParentheses Useless parentheses. 4 398
UselessParentheses Useless parentheses. 4 403

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 100
UselessParentheses Useless parentheses. 4 113
UselessParentheses Useless parentheses. 4 126
UselessParentheses Useless parentheses. 4 128
UselessParentheses Useless parentheses. 4 141
UselessParentheses Useless parentheses. 4 143
UselessParentheses Useless parentheses. 4 157
UselessParentheses Useless parentheses. 4 191

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 189
UselessParentheses Useless parentheses. 4 201
UselessParentheses Useless parentheses. 4 213

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 172
UselessParentheses Useless parentheses. 4 184
UselessParentheses Useless parentheses. 4 196

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 171
UselessParentheses Useless parentheses. 4 196
UselessParentheses Useless parentheses. 4 220

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 234
UselessParentheses Useless parentheses. 4 269
UselessParentheses Useless parentheses. 4 270

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 306

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 171
UselessParentheses Useless parentheses. 4 196
UselessParentheses Useless parentheses. 4 220

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 220

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 171
UselessParentheses Useless parentheses. 4 196
UselessParentheses Useless parentheses. 4 220

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 129
UselessParentheses Useless parentheses. 4 160
UselessParentheses Useless parentheses. 4 220
UselessParentheses Useless parentheses. 4 235

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

Rule Violation Priority Line
CollapsibleIfStatements These nested if statements could be combined 3 152154
UselessParentheses Useless parentheses. 4 158
UselessParentheses Useless parentheses. 4 161
UselessParentheses Useless parentheses. 4 162
UselessParentheses Useless parentheses. 4 213

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 171
UselessParentheses Useless parentheses. 4 196
UselessParentheses Useless parentheses. 4 220

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 170
UselessParentheses Useless parentheses. 4 195
UselessParentheses Useless parentheses. 4 219

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 125

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 171
UselessParentheses Useless parentheses. 4 196
UselessParentheses Useless parentheses. 4 220

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 269
UselessParentheses Useless parentheses. 4 463

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 97

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 82
UselessParentheses Useless parentheses. 4 107
UselessParentheses Useless parentheses. 4 109

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 74

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 76

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

Rule Violation Priority Line
UselessParentheses Useless parentheses. 4 83