In Java, if you import a deprecated class:
import SomeDeprecatedClass;
You get this warning: The type SomeDeprecatedClass is deprecat
The type SomeDeprecatedClass is deprecat
I solved this by changing the import to:
import package.*
then annotating the method that used the deprecated classes with@SuppressWarnings("deprecation")
@SuppressWarnings("deprecation")