Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
getSymbols(Predicate, LookupKind)
compatibility method
Add a compatibility helper method for `getSymbols(Predicate<Symbol>, LookupKind)`. **Context:** In [gradle-baseline](https://github.com/palantir/gradle-baseline#baseline-error-prone-checks), we maintain our own set of error-prone rules and ran into similar JDK 17 compatibility problems as mentioned in #2330. However for our custom rules, we also need a compatibility helper for `getSymbols(Predicate, LookupKind)`. For now, we work around this by copying parts of the `ErrorProneScope` class (([PR](palantir/gradle-baseline#1936))) but ideally we could reuse the existing helper and wouldn't have to maintain our own fork of this class. Fixes #2629 COPYBARA_INTEGRATE_REVIEW=#2629 from fawind:fw/get-symbols-lookup-kind e843406 PiperOrigin-RevId: 404111704
- Loading branch information