Closed nguyenhoan closed 1 month ago
Hi @nguyenhoan ; thanks a lot for the detailed report, and immediately working out the cause. Would you want to create a PR such that you get credit for the fix as well as a contributor? Just let me know, otherwise I'll make the change myself.
Thanks for the suggestion!
Here it is https://github.com/openrewrite/rewrite-static-analysis/pull/291
What version of OpenRewrite are you using?
I am using the latest version at the time of this writing at commit https://github.com/openrewrite/rewrite-static-analysis/commit/1ed9c44b1413a388a7d436e8a7ca5bcacc40fc94
How are you running OpenRewrite?
I am running the unit tests.
What is the smallest, simplest way to reproduce the problem?
Adding this unit test to
org.openrewrite.staticanalysis.InstanceOfPatternMatchTest.If
What did you expect to see?
What did you see instead?
What is the full stack trace of any errors you encountered?
Are you interested in contributing a fix to OpenRewrite?
There's a bug on this line where
is missing the increment to go the next character after
.