We're trying to move our very large codebase from Guava 11 to Guava 14 and would like to catch uses of removed or deprecated APIs. Can FindBugs perform such checking? If so, how?
One solution would be to just use Oracle's Java compiler javac
to do this.
Removed methods in the API would result in compiler errors if they are used so it should be possible to find these by compiling the code.
Deprecated methods can be found using the javac -deprecation
option. More on -deprecation
here:
http://docs.oracle.com/javase/6/docs/technotes/tools/windows/javac.html
You could also use PMD Sourceforge for this task. There are rules out there that let you find deprecated methods
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With