fix document for Java