update java class