[Java] Improve documentation