Issue discovered with zookeeper-api/src/main/java/org/apache/helix/zookeeper/zkclient/callback/ZkAsyncCallbacks.java
Problem
Nested class Identifiers referencing the variable to be renamed not transformed.
Root cause:
RenamePrivateFieldsToCamelCase assumes RenameVariable will transform nested class identifers referencing the variable in a manner similar to the RenameVariableTest#renameInnerClassVariables.
Notes:
nested class identifiers referencing a named variable of thier parent class are not in the same name scope as the variable being renamed
The RenameVariableTest recipe is an anonymous inner class visiting ClassDeclarations then invoking RenameVariable for each matching variable within the class
RenameVariableTest#renameInnerClassVariables demonstrates the expected RenamePrivateFieldsToCamelCase behavior even though RenameLocalVariables will only rename identifiers whithin the same name scope as the target variable.
Issue discovered with
zookeeper-api/src/main/java/org/apache/helix/zookeeper/zkclient/callback/ZkAsyncCallbacks.java
Problem
Root cause:
Notes:
Expected transformation:
before:
after:
Example diff
Recipes in example diff:
org.openrewrite.java.cleanup.RenamePrivateFieldsToCamelCase
References:
undefined