openrewrite / rewrite-feature-flags

OpenRewrite recipes for LaunchDarkly.
Apache License 2.0
2 stars 2 forks source link

Prevent TraitErrors seen with custom method pattern #24

Closed timtebeek closed 3 months ago

timtebeek commented 3 months ago

What's changed?

Add a unit test that failed to replicate #23. Add defensive coding to not call CursorUtil unnecessarily.

What's your motivation?

Try to replicate #23

Anything in particular you'd like reviewers to focus on?

Not quite sure what's triggering the TraitErrors in #23, but this should at least prevent that for the simplest cases, providing immediate relief without diving into rewrite-analysis just yet, which could take up a lot more time.