More precise support of java completion.

Signed-off-by: Bao Haojun <baohaojun@gmail.com>