Fix PMD warning

This commit is contained in:
Clément Fournier 2022-07-22 17:30:54 +02:00
parent ee5fa8ee94
commit c1b8d6a5d8
No known key found for this signature in database
GPG Key ID: 4D8D42402E4F47E2

View File

@ -72,7 +72,7 @@ public class RuleTestRunner extends ParentRunner<TestDescriptor> {
RuleTestDescriptor focused = ruleTests.getFocusedTestOrNull();
for (RuleTestDescriptor t : ruleTests.getTests()) {
TestDescriptor td = new TestDescriptor(t);
if (focused != null && focused != t) {
if (focused != null && !focused.equals(t)) {
td.setRegressionTest(false); // disable it
}
tests.add(td);