Use java_import to silence deprecation warnings