I am fixing a big application that has lots of code that blocks the main thread by accessing the filesystem or the network, probably because the original developer did not get a warning from Java Swing when developing it.
Is there a way to get a warning if some code is blocking the main thread in Java Swing?
I would like to see https://developer.android.com/reference/android/os/StrictMode.html for Java Swing.