remove unneeded java4