cleanup: fix Java warnings