You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
The ChainedMethodInvocationRefactor will currently match on two chained method invocations, and swap them to a different method.
For example, getCurrentFoo().doFooThing()
can be swapped to doBarThing()
Expected behavior
This refactor should be updated so that:
Chains of arbitrary length can be matched
Those chains can themselves be replaced by other chains of arbitrary length, rather than just one method invocation.
For example, getCurrentFoo()
or getCurrentFoo().doFooThing().doOtherThing()
should be valid matchable, and replaced with getCurrentBar().doBarThing()
or any other chain of method invocations.
Additional context
See Javadoc on ChainedMethodInvocationRefactor and associated tests for further example usage.
The text was updated successfully, but these errors were encountered:
Describe the bug
The
ChainedMethodInvocationRefactor
will currently match on two chained method invocations, and swap them to a different method.For example,
getCurrentFoo().doFooThing()
can be swapped to
doBarThing()
Expected behavior
This refactor should be updated so that:
For example,
getCurrentFoo()
or
getCurrentFoo().doFooThing().doOtherThing()
should be valid matchable, and replaced with
getCurrentBar().doBarThing()
or any other chain of method invocations.
Additional context
See Javadoc on
ChainedMethodInvocationRefactor
and associated tests for further example usage.The text was updated successfully, but these errors were encountered: