[java] fix some ugly whitespaces