PMD Results

The following document contains the results of PMD 5.3.5.

Files

com/pholser/junit/quickcheck/internal/ParameterTypeContext.java

Violation Line
Too many static imports may lead to messy code 26–380
Avoid unused private fields such as 'zilch'. 63
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' 97
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' 122
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' 132
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' 187
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' 331

com/pholser/junit/quickcheck/internal/Reflection.java

Violation Line
Too many static imports may lead to messy code 26–286
Unnecessary use of fully qualified name 'Collections.addAll' due to existing static import 'java.util.Collections.*' 150
Unnecessary use of fully qualified name 'Collections.addAll' due to existing static import 'java.util.Collections.*' 188

com/pholser/junit/quickcheck/internal/conversion/StringConversions.java

Violation Line
Avoid empty catch blocks 55–57

com/pholser/junit/quickcheck/internal/generator/ArrayGenerator.java

Violation Line
Too many static imports may lead to messy code 26–163
Unnecessary use of fully qualified name 'BigDecimal.valueOf' due to existing static import 'java.math.BigDecimal.*' 125
Useless parentheses. 145

com/pholser/junit/quickcheck/internal/generator/GeneratorRepository.java

Violation Line
Too many static imports may lead to messy code 26–365
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' 151
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' 181
Unnecessary use of fully qualified name 'Collections.addAll' due to existing static import 'java.util.Collections.*' 194

com/pholser/junit/quickcheck/internal/generator/ServiceLoaderGeneratorSource.java

Violation Line
Unnecessary use of fully qualified name 'Collections.sort' due to existing static import 'java.util.Collections.*' 51

com/pholser/junit/quickcheck/internal/sampling/ExhaustiveParameterSampler.java

Violation Line
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' 109
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' 119

com/pholser/junit/quickcheck/random/SourceOfRandomness.java

Violation Line
Unnecessary use of fully qualified name 'Ranges.choose' due to existing static import 'com.pholser.junit.quickcheck.internal.Ranges.*' 277
Unnecessary use of fully qualified name 'Ranges.choose' due to existing static import 'com.pholser.junit.quickcheck.internal.Ranges.*' 385

com/pholser/junit/quickcheck/runner/PropertyVerifier.java

Violation Line
Avoid empty catch blocks 85–86

com/pholser/junit/quickcheck/runner/Shrinker.java

Violation Line
Avoid empty catch blocks 97–98