Skip to content

Inconsistency around com.google.common.base.Predicate in the "NoGuava" recipe #908

@lredor

Description

@lredor

Before my issues regarding com.google.common.base.Predicate, the rule seemed fairly consistent: com.google.common.base.Predicate was migrated to java.util.function.Predicate, but many methods using com.google.common.base.Predicate as a parameter were not migrated; which caused numerous compilation errors.

  - org.openrewrite.java.ChangeMethodName:
      methodPattern: com.google.common.base.Predicate apply(..)
      newMethodName: test
      matchOverrides: true

I’ve been on sick leave for a few weeks now, including this week, and I’ve used the time to explore OpenRewrite by testing the NoGuava recipe on the Sirius Desktop codebase.
I’ll try to dig a bit deeper into this over the next few days, but my availability will decrease soon.

I’d like at least to clarify the current status around Predicate, though given its wide variety of use cases, that might be a challenging goal.
I’ll keep listing here the different cases I encounter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingguava

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions