update to java class