I am developing a web application and the feature to hot swap classes provided in Intellij IDEA is very useful for me. But, hot swap doesn't always succeed and IDEA reports that hot swap failed.
By looking at the code change I have done, is there a way to identify that a hot swap attempt will fail or not? So I can directly start a new debugging session instead of trying to hot swap?