mod - update Java code