Remove notice about using generics from error message (#12873)

Change-Id: Id2f56090533fdce756051b32547b3dcaa4f94f93