Replace type specification with diamond operator