chore(java): fix compiler warnings