-
Notifications
You must be signed in to change notification settings - Fork 627
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
Code Health: Observable in java.util has been deprecated #2051
Comments
what do you suggest to use instead @metaprime ? |
Just logging the issue that was shown in the build. I think it's potentially a pretty big fix. |
It's not clear whether there's an equivalent replacement or whether we really need to care about this. I dislike when things get deprecated without an equivalent better option recommended, but it does happen. |
chatgpt says flow is alternative, das this fit our use case?
|
Not sure. I don't think our case is really about concurrency, although it does have to do with concurrent updates. It might not matter that it's in the concurrency library; it might work anyway. |
Technically Observer is a pattern that doesn't really need the standard library to implement. The library's observer doesn't really provide all that much behavior per se. We could even essentially implement our own that is exactly what they do but keeps the method we want so that there's no other change to the code. |
And at that point, we should not bother moving off of the deprecated one. Nothing's broken here and it seems like change for change's sake. Maybe we can add some annotation to suppress the warning instead |
Ripme version: main, 2.1.13+1
Java version: openjdk 21.0.5 2024-10-15
OpenJDK Runtime Environment (build 21.0.5+11-Ubuntu-1ubuntu124.04)
OpenJDK 64-Bit Server VM (build 21.0.5+11-Ubuntu-1ubuntu124.04, mixed mode, sharing)
Operating system: WSL2 Ubuntu 24.04
Exact URL you were trying to rip when the problem occurred: N/A
Please include any additional information about how to reproduce the problem:
Expected Behavior
No warnings
Actual Behavior
The text was updated successfully, but these errors were encountered: