Your best option would be to fix the use of deprecated APIs. However, an option would be to add the @SupressWarnings("deprecation") annotation to the classes or methods that are using the deprecated APIs.
The first part of the code is written as a method in a common java file
The second part of the code is written as a call to that common method.
Ispite of these smiley is not drawn ?
Any idea of how to correct it?