PMD Results
The following document contains the results of PMD 6.21.0.
Violations By Priority
Priority 3
com/pholser/junit/quickcheck/internal/ParameterTypeContext.java
com/pholser/junit/quickcheck/internal/Reflection.java
com/pholser/junit/quickcheck/internal/conversion/StringConversions.java
com/pholser/junit/quickcheck/internal/generator/ArrayGenerator.java
com/pholser/junit/quickcheck/internal/generator/GeneratorRepository.java
Priority 4
com/pholser/junit/quickcheck/generator/Lambdas.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.lang.invoke.MethodHandles.Lookup' |
30 |
UnusedImports |
Avoid unused imports such as 'java.lang.reflect.Constructor' |
31 |
com/pholser/junit/quickcheck/internal/ParameterTypeContext.java
Rule |
Violation |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
84 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
96 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
114 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
122 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
151 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
242 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
421 |
com/pholser/junit/quickcheck/internal/Reflection.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.lang.reflect.Executable' |
35 |
UnusedImports |
Avoid unused imports such as 'java.lang.reflect.Parameter' |
39 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Collections.addAll' due to existing static import 'java.util.Collections.*' |
169 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Collections.addAll' due to existing static import 'java.util.Collections.*' |
213 |
com/pholser/junit/quickcheck/internal/generator/ArrayGenerator.java
com/pholser/junit/quickcheck/internal/generator/GeneratorRepository.java
Rule |
Violation |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' |
162 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' |
184 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Collections.addAll' due to existing static import 'java.util.Collections.*' |
200 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' |
399 |
com/pholser/junit/quickcheck/internal/generator/PropertyParameterGenerationContext.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.lang.Math.min' |
39 |
com/pholser/junit/quickcheck/internal/generator/ServiceLoaderGeneratorSource.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.Comparator' |
30 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Collections.sort' due to existing static import 'java.util.Collections.*' |
53 |
com/pholser/junit/quickcheck/internal/sampling/ExhaustiveParameterSampler.java
Rule |
Violation |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' |
109 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' |
119 |
com/pholser/junit/quickcheck/random/SourceOfRandomness.java
Rule |
Violation |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Ranges.choose' due to existing static import 'com.pholser.junit.quickcheck.internal.Ranges.*' |
278 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Ranges.choose' due to existing static import 'com.pholser.junit.quickcheck.internal.Ranges.*' |
384 |
com/pholser/junit/quickcheck/runner/NoValuesSatisfiedPropertyAssumptions.java
Rule |
Violation |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.ArrayList' |
3 |
Files
com/pholser/junit/quickcheck/generator/Lambdas.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'java.lang.invoke.MethodHandles.Lookup' |
4 |
30 |
UnusedImports |
Avoid unused imports such as 'java.lang.reflect.Constructor' |
4 |
31 |
com/pholser/junit/quickcheck/internal/ParameterTypeContext.java
Rule |
Violation |
Priority |
Line |
TooManyStaticImports |
Too many static imports may lead to messy code |
3 |
26–471 |
UnusedPrivateField |
Avoid unused private fields such as 'zilch'. |
3 |
66 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
4 |
84 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
4 |
96 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
4 |
114 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
4 |
122 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
4 |
151 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
4 |
242 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Types.forJavaLangReflectType' due to existing static import 'org.javaruntype.type.Types.*' |
4 |
421 |
com/pholser/junit/quickcheck/internal/Reflection.java
Rule |
Violation |
Priority |
Line |
TooManyStaticImports |
Too many static imports may lead to messy code |
3 |
26–333 |
UnusedImports |
Avoid unused imports such as 'java.lang.reflect.Executable' |
4 |
35 |
UnusedImports |
Avoid unused imports such as 'java.lang.reflect.Parameter' |
4 |
39 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Collections.addAll' due to existing static import 'java.util.Collections.*' |
4 |
169 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Collections.addAll' due to existing static import 'java.util.Collections.*' |
4 |
213 |
com/pholser/junit/quickcheck/internal/conversion/StringConversions.java
Rule |
Violation |
Priority |
Line |
EmptyCatchBlock |
Avoid empty catch blocks |
3 |
55–57 |
com/pholser/junit/quickcheck/internal/generator/ArrayGenerator.java
com/pholser/junit/quickcheck/internal/generator/GeneratorRepository.java
Rule |
Violation |
Priority |
Line |
TooManyStaticImports |
Too many static imports may lead to messy code |
3 |
26–404 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' |
4 |
162 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' |
4 |
184 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Collections.addAll' due to existing static import 'java.util.Collections.*' |
4 |
200 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' |
4 |
399 |
com/pholser/junit/quickcheck/internal/generator/PropertyParameterGenerationContext.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'java.lang.Math.min' |
4 |
39 |
com/pholser/junit/quickcheck/internal/generator/ServiceLoaderGeneratorSource.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.Comparator' |
4 |
30 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Collections.sort' due to existing static import 'java.util.Collections.*' |
4 |
53 |
com/pholser/junit/quickcheck/internal/sampling/ExhaustiveParameterSampler.java
Rule |
Violation |
Priority |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' |
4 |
109 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Arrays.stream' due to existing static import 'java.util.Arrays.*' |
4 |
119 |
com/pholser/junit/quickcheck/random/SourceOfRandomness.java
Rule |
Violation |
Priority |
Line |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Ranges.choose' due to existing static import 'com.pholser.junit.quickcheck.internal.Ranges.*' |
4 |
278 |
UnnecessaryFullyQualifiedName |
Unnecessary use of fully qualified name 'Ranges.choose' due to existing static import 'com.pholser.junit.quickcheck.internal.Ranges.*' |
4 |
384 |
com/pholser/junit/quickcheck/runner/NoValuesSatisfiedPropertyAssumptions.java
Rule |
Violation |
Priority |
Line |
UnusedImports |
Avoid unused imports such as 'java.util.ArrayList' |
4 |
3 |