PMD Results
The following document contains the results of PMD 7.17.0.
Violations By Priority
Priority 2
JMockit Coverage Tests - integration/tests/other/control/structures/TryCatchFinallyStatements.java
| Rule | Violation | Line |
|---|---|---|
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 42 |
jmockit - mockit/internal/expectations/mocking/BaseTypeRedefinition.java
| Rule | Violation | Line |
|---|---|---|
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 128 |
jmockit - mockit/internal/reflection/GenericTypeReflection.java
| Rule | Violation | Line |
|---|---|---|
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 634 |
Priority 3
JMockit Coverage Tests - integration/tests/AnAnnotation.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–37 |
JMockit Coverage Tests - integration/tests/BooleanExpressions.java
| Rule | Violation | Line |
|---|---|---|
| UnusedLocalVariable | Avoid unused local variables such as 's'. | 168 |
| UnusedLocalVariable | Avoid unused local variables such as 's'. | 190 |
JMockit Coverage Tests - integration/tests/ClassInRegularPackage.java
| Rule | Violation | Line |
|---|---|---|
| UselessPureMethodCall | Do not call pure method toString if the result is not used. | 57 |
JMockit Coverage Tests - integration/tests/UnreachableStatements.java
| Rule | Violation | Line |
|---|---|---|
| UnusedLocalVariable | Avoid unused local variables such as 'a'. | 17 |
JMockit Coverage Tests - integration/tests/other/control/structures/SwitchStatements.java
| Rule | Violation | Line |
|---|---|---|
| UnusedLocalVariable | Avoid unused local variables such as 'b'. | 15 |
| UnusedLocalVariable | Avoid unused local variables such as 'b'. | 43 |
JMockit Coverage Tests - integration/tests/other/control/structures/SynchronizedBlocks.java
| Rule | Violation | Line |
|---|---|---|
| UselessPureMethodCall | Do not call pure method toString if the result is not used. | 18 |
JMockit Coverage Tests - integration/tests/other/control/structures/TryCatchFinallyStatements.java
| Rule | Violation | Line |
|---|---|---|
| UselessPureMethodCall | Do not call pure method toString if the result is not used. | 75 |
| UselessPureMethodCall | Do not call pure method toString if the result is not used. | 78 |
jmockit - mockit/Tested.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–173 |
jmockit - mockit/asm/annotations/AnnotationVisitor.java
| Rule | Violation | Line |
|---|---|---|
| EmptyControlStatement | Empty if statement | 113–119 |
jmockit - mockit/asm/classes/ConstantPoolCopying.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–232 |
jmockit - mockit/asm/constantPool/ConstantPoolGeneration.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–761 |
jmockit - mockit/asm/controlFlow/CFGAnalysis.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–549 |
jmockit - mockit/asm/controlFlow/Frame.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–1353 |
jmockit - mockit/asm/controlFlow/StackMapTableWriter.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–560 |
jmockit - mockit/asm/methods/MethodReader.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–722 |
jmockit - mockit/asm/methods/MethodWriter.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–603 |
jmockit - mockit/asm/types/JavaType.java
| Rule | Violation | Line |
|---|---|---|
| EmptyControlStatement | Empty while statement | 78–79 |
| EmptyControlStatement | Empty while statement | 179–180 |
jmockit - mockit/asm/types/PrimitiveType.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–196 |
jmockit - mockit/asm/util/BytecodeReader.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–593 |
jmockit - mockit/coverage/CallPoint.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 190–191 |
jmockit - mockit/coverage/CoverageCheck.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 70–71 |
jmockit - mockit/coverage/modification/ClassModification.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 49–51 |
jmockit - mockit/coverage/modification/ClassSelection.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 118–119 |
jmockit - mockit/coverage/modification/ClassesNotLoaded.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 47–49 |
| EmptyCatchBlock | Avoid empty catch blocks | 83–84 |
jmockit - mockit/coverage/modification/CoverageModifier.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–221 |
jmockit - mockit/coverage/modification/MethodModifier.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–312 |
jmockit - mockit/internal/BaseClassModifier.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–348 |
jmockit - mockit/internal/ClassFile.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 49–50 |
jmockit - mockit/internal/ClassLoadingBridge.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 116–117 |
jmockit - mockit/internal/expectations/ActiveInvocations.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–202 |
jmockit - mockit/internal/expectations/invocation/ExpectedInvocation.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 366–367 |
jmockit - mockit/internal/expectations/invocation/MultiValuedConversion.java
| Rule | Violation | Line |
|---|---|---|
| EmptyControlStatement | Empty if statement | 51–57 |
jmockit - mockit/internal/expectations/invocation/ReturnTypeConversion.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–332 |
| EmptyControlStatement | Empty if statement | 122–134 |
| EmptyControlStatement | Empty if statement | 128–134 |
jmockit - mockit/internal/expectations/mocking/BaseTypeRedefinition.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–329 |
jmockit - mockit/internal/expectations/mocking/InterfaceImplementationGenerator.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–213 |
jmockit - mockit/internal/expectations/mocking/MockedClassModifier.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–282 |
jmockit - mockit/internal/expectations/mocking/MockedType.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 49–50 |
| OverrideBothEqualsAndHashcode | Ensure you override both equals() and hashCode() | 279 |
jmockit - mockit/internal/expectations/state/MockedTypeCascade.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–302 |
jmockit - mockit/internal/expectations/transformation/Capture.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–131 |
jmockit - mockit/internal/expectations/transformation/ExpectationsTransformer.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 75–76 |
jmockit - mockit/internal/expectations/transformation/InvocationBlockModifier.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–333 |
| EmptyControlStatement | Empty if statement | 80–89 |
jmockit - mockit/internal/faking/FakeClasses.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 40–41 |
| EmptyCatchBlock | Avoid empty catch blocks | 127–128 |
jmockit - mockit/internal/faking/FakeMethodCollector.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 142–144 |
jmockit - mockit/internal/faking/FakedClassModifier.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–398 |
jmockit - mockit/internal/injection/InjectionPoint.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–533 |
jmockit - mockit/internal/injection/Injector.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–247 |
jmockit - mockit/internal/injection/LifecycleMethods.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–234 |
| EmptyCatchBlock | Avoid empty catch blocks | 130–131 |
| EmptyCatchBlock | Avoid empty catch blocks | 148–149 |
| EmptyCatchBlock | Avoid empty catch blocks | 211–212 |
jmockit - mockit/internal/injection/constructor/ConstructorInjection.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–223 |
jmockit - mockit/internal/injection/constructor/ConstructorSearch.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–303 |
jmockit - mockit/internal/injection/full/FullInjection.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–403 |
jmockit - mockit/internal/injection/full/JPAJakartaDependencies.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 99–100 |
jmockit - mockit/internal/injection/full/JPAJavaxDependencies.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 98–99 |
jmockit - mockit/internal/reflection/RealMethodOrConstructor.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 93–94 |
jmockit - mockit/internal/reflection/ThrowOfCheckedException.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 23–24 |
jmockit - mockit/internal/startup/ClassLoadingBridgeFields.java
| Rule | Violation | Line |
|---|---|---|
| UselessPureMethodCall | Do not call pure method getName if the result is not used. | 39 |
| UselessPureMethodCall | Do not call pure method getName if the result is not used. | 43 |
jmockit - mockit/internal/startup/Startup.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 80–81 |
| EmptyCatchBlock | Avoid empty catch blocks | 117–119 |
jmockit - mockit/internal/state/MockFixture.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–476 |
| EmptyCatchBlock | Avoid empty catch blocks | 465–466 |
jmockit - mockit/internal/state/TestRun.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 205–206 |
jmockit - mockit/internal/util/DefaultValues.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–319 |
| EmptyCatchBlock | Avoid empty catch blocks | 186–187 |
jmockit - mockit/internal/util/StackTrace.java
| Rule | Violation | Line |
|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 113–114 |
jmockit - mockit/internal/util/TypeConversionBytecode.java
| Rule | Violation | Line |
|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 6–98 |
Priority 4
jmockit - mockit/asm/classes/ClassWriter.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'BaseWriter': 'put' is already in scope | 271 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'BaseWriter': 'put' is already in scope | 272 |
jmockit - mockit/asm/util/BytecodeReader.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ConstantPoolTypes': 'DYNAMIC' is already in scope because it is imported in this file | 510 |
jmockit - mockit/integration/testng/TestNGRunnerDecorator.java
| Rule | Violation | Line |
|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'TestRunnerDecorator': 'cleanUpAllMocks' is already in scope | 261 |
jmockit - mockit/internal/injection/InjectionProviders.java
| Rule | Violation | Line |
|---|---|---|
| UselessParentheses | Useless parentheses around `JAKARTA_INJECT_CLASS != null && Provider.class....`. | 124–127 |
Files
JMockit Coverage Tests - integration/tests/AnAnnotation.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–37 |
JMockit Coverage Tests - integration/tests/BooleanExpressions.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedLocalVariable | Avoid unused local variables such as 's'. | 3 | 168 |
| UnusedLocalVariable | Avoid unused local variables such as 's'. | 3 | 190 |
JMockit Coverage Tests - integration/tests/ClassInRegularPackage.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessPureMethodCall | Do not call pure method toString if the result is not used. | 3 | 57 |
JMockit Coverage Tests - integration/tests/UnreachableStatements.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedLocalVariable | Avoid unused local variables such as 'a'. | 3 | 17 |
JMockit Coverage Tests - integration/tests/other/control/structures/SwitchStatements.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnusedLocalVariable | Avoid unused local variables such as 'b'. | 3 | 15 |
| UnusedLocalVariable | Avoid unused local variables such as 'b'. | 3 | 43 |
JMockit Coverage Tests - integration/tests/other/control/structures/SynchronizedBlocks.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessPureMethodCall | Do not call pure method toString if the result is not used. | 3 | 18 |
JMockit Coverage Tests - integration/tests/other/control/structures/TryCatchFinallyStatements.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 42 |
| UselessPureMethodCall | Do not call pure method toString if the result is not used. | 3 | 75 |
| UselessPureMethodCall | Do not call pure method toString if the result is not used. | 3 | 78 |
jmockit - mockit/Tested.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–173 |
jmockit - mockit/asm/annotations/AnnotationVisitor.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyControlStatement | Empty if statement | 3 | 113–119 |
jmockit - mockit/asm/classes/ClassWriter.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'BaseWriter': 'put' is already in scope | 4 | 271 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'BaseWriter': 'put' is already in scope | 4 | 272 |
jmockit - mockit/asm/classes/ConstantPoolCopying.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–232 |
jmockit - mockit/asm/constantPool/ConstantPoolGeneration.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–761 |
jmockit - mockit/asm/controlFlow/CFGAnalysis.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–549 |
jmockit - mockit/asm/controlFlow/Frame.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–1353 |
jmockit - mockit/asm/controlFlow/StackMapTableWriter.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–560 |
jmockit - mockit/asm/methods/MethodReader.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–722 |
jmockit - mockit/asm/methods/MethodWriter.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–603 |
jmockit - mockit/asm/types/JavaType.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyControlStatement | Empty while statement | 3 | 78–79 |
| EmptyControlStatement | Empty while statement | 3 | 179–180 |
jmockit - mockit/asm/types/PrimitiveType.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–196 |
jmockit - mockit/asm/util/BytecodeReader.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–593 |
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'ConstantPoolTypes': 'DYNAMIC' is already in scope because it is imported in this file | 4 | 510 |
jmockit - mockit/coverage/CallPoint.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 190–191 |
jmockit - mockit/coverage/CoverageCheck.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 70–71 |
jmockit - mockit/coverage/modification/ClassModification.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 49–51 |
jmockit - mockit/coverage/modification/ClassSelection.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 118–119 |
jmockit - mockit/coverage/modification/ClassesNotLoaded.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 47–49 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 83–84 |
jmockit - mockit/coverage/modification/CoverageModifier.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–221 |
jmockit - mockit/coverage/modification/MethodModifier.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–312 |
jmockit - mockit/integration/testng/TestNGRunnerDecorator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UnnecessaryFullyQualifiedName | Unnecessary qualifier 'TestRunnerDecorator': 'cleanUpAllMocks' is already in scope | 4 | 261 |
jmockit - mockit/internal/BaseClassModifier.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–348 |
jmockit - mockit/internal/ClassFile.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 49–50 |
jmockit - mockit/internal/ClassLoadingBridge.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 116–117 |
jmockit - mockit/internal/expectations/ActiveInvocations.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–202 |
jmockit - mockit/internal/expectations/invocation/ExpectedInvocation.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 366–367 |
jmockit - mockit/internal/expectations/invocation/MultiValuedConversion.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyControlStatement | Empty if statement | 3 | 51–57 |
jmockit - mockit/internal/expectations/invocation/ReturnTypeConversion.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–332 |
| EmptyControlStatement | Empty if statement | 3 | 122–134 |
| EmptyControlStatement | Empty if statement | 3 | 128–134 |
jmockit - mockit/internal/expectations/mocking/BaseTypeRedefinition.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–329 |
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 128 |
jmockit - mockit/internal/expectations/mocking/InterfaceImplementationGenerator.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–213 |
jmockit - mockit/internal/expectations/mocking/MockedClassModifier.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–282 |
jmockit - mockit/internal/expectations/mocking/MockedType.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 49–50 |
| OverrideBothEqualsAndHashcode | Ensure you override both equals() and hashCode() | 3 | 279 |
jmockit - mockit/internal/expectations/state/MockedTypeCascade.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–302 |
jmockit - mockit/internal/expectations/transformation/Capture.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–131 |
jmockit - mockit/internal/expectations/transformation/ExpectationsTransformer.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 75–76 |
jmockit - mockit/internal/expectations/transformation/InvocationBlockModifier.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–333 |
| EmptyControlStatement | Empty if statement | 3 | 80–89 |
jmockit - mockit/internal/faking/FakeClasses.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 40–41 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 127–128 |
jmockit - mockit/internal/faking/FakeMethodCollector.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 142–144 |
jmockit - mockit/internal/faking/FakedClassModifier.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–398 |
jmockit - mockit/internal/injection/InjectionPoint.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–533 |
jmockit - mockit/internal/injection/InjectionProviders.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessParentheses | Useless parentheses around `JAKARTA_INJECT_CLASS != null && Provider.class....`. | 4 | 124–127 |
jmockit - mockit/internal/injection/Injector.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–247 |
jmockit - mockit/internal/injection/LifecycleMethods.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–234 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 130–131 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 148–149 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 211–212 |
jmockit - mockit/internal/injection/constructor/ConstructorInjection.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–223 |
jmockit - mockit/internal/injection/constructor/ConstructorSearch.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–303 |
jmockit - mockit/internal/injection/full/FullInjection.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–403 |
jmockit - mockit/internal/injection/full/JPAJakartaDependencies.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 99–100 |
jmockit - mockit/internal/injection/full/JPAJavaxDependencies.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 98–99 |
jmockit - mockit/internal/reflection/GenericTypeReflection.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| AvoidBranchingStatementAsLastInLoop | Avoid using a branching statement as the last in a loop. | 2 | 634 |
jmockit - mockit/internal/reflection/RealMethodOrConstructor.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 93–94 |
jmockit - mockit/internal/reflection/ThrowOfCheckedException.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 23–24 |
jmockit - mockit/internal/startup/ClassLoadingBridgeFields.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| UselessPureMethodCall | Do not call pure method getName if the result is not used. | 3 | 39 |
| UselessPureMethodCall | Do not call pure method getName if the result is not used. | 3 | 43 |
jmockit - mockit/internal/startup/Startup.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 80–81 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 117–119 |
jmockit - mockit/internal/state/MockFixture.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–476 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 465–466 |
jmockit - mockit/internal/state/TestRun.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 205–206 |
jmockit - mockit/internal/util/DefaultValues.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–319 |
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 186–187 |
jmockit - mockit/internal/util/StackTrace.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| EmptyCatchBlock | Avoid empty catch blocks | 3 | 113–114 |
jmockit - mockit/internal/util/TypeConversionBytecode.java
| Rule | Violation | Priority | Line |
|---|---|---|---|
| TooManyStaticImports | Too many static imports may lead to messy code | 3 | 6–98 |


