Fix java get function not return value