Remove Java warnings