Use <code> instead of {@code} for sample containing { and } (#12311)

Change-Id: Ibbcc48e5557521bfe50e73e63ad723fe7da29c9b