update java generic