The following jdeps command will inspect any illegal usage in My.class and provide alternative way to fix problems. This tool exists in JDK9. Static analysis tool detect the usage of deprecated APIs. Advertisements