Use java_import to silence deprecation warnings
Merge pull request #6 from pepijnve/silence_deprecation

Use java_import to silence deprecation warnings