You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Analysis: Suppress synchronized on suspend coroutines warning
Warning Messages: "@synchronized annotation is not applicable to suspend
functions and lambdas"
This coroutines warning is suppressed, that is, instead of it being
resolved, since it seems that:
1. Adding the '@synchronized' annotation was done deliberately, and
2. Changing that is a bit complicated as it would need a bit more
thought to properly fix this, using [Mutex] or otherwise.
For more info see:
- Fix crash in UploadStarter on Samsung devices with Android 5 #10878
(Introduced In): https://github.com/wordpress-mobile/WordPress-Android/
pull/10878
- Forbid @synchronized annotation on suspend functions (Kotlin Issue):
https://youtrack.jetbrains.com/issue/KT-27333/
Forbid-Synchronized-annotation-on-suspend-functions
- Coroutines and Java Synchronization Don't Mix (Blog Post:
https://blog.danlew.net/2020/01/28/
coroutines-and-java-synchronization-dont-mix/
0 commit comments