InstanceOfPatternMatch
declares variable with conflicting name
#334
Labels
bug
Something isn't working
InstanceOfPatternMatch
declares variable with conflicting name
#334
The
InstanceOfPatternMatch
declares a pattern variable with a conflicting name if a variable with that name already exists in theif
body after the corresponding type cast as in the following example:Currently the recipe will change this to the following illegal code:
Fixing openrewrite/rewrite#2776 should address this issue and the corresponding test case can be enabled again.
VariableNameUtils#generateVariableName()
should consider following statements rewrite#2776The text was updated successfully, but these errors were encountered: