Affects PMD Version:
Rule: ShortVariable
Description:
_ is being flagged as shortvariable
Code Sample demonstrating the issue:
switch (myValue) {
case FirstClass _ -> throw new IllegalStateException("");
case SecondClass _ -> System.out.print("I'm in second class");
}
Expected outcome:
_ should not be flagged as short variable since its a special variable name
Running PMD through: Maven | PMD Intellij plugin