Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative for Kotlin's replaceWith #59

Open
kezz opened this issue Aug 25, 2021 · 2 comments
Open

Alternative for Kotlin's replaceWith #59

kezz opened this issue Aug 25, 2021 · 2 comments

Comments

@kezz
Copy link

kezz commented Aug 25, 2021

It would be really nice to have an annotation, perhaps @ApiStatus.SuggestedAlternative, @ApiStatus.UseInstead or @ApiStatus.ReplaceWith that used the same internal logic as Kotlin's deprecation system to allow Java developers to provide alternatives to deprecated elements that can be picked up by an IDE.

@vlsi
Copy link

vlsi commented Nov 26, 2021

See also: http://errorprone.info/docs/inlineme

@CheeseTastisch
Copy link

It's nice that such a function exists in another API, but it would be better if all possible functions are combined in one API, because then you only have to include one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants