There's no real way to do this unfortunately (at least not that I know of.) I've been stung by this in the past and it's really rather annoying!
The two workarounds (neither is great) that sort-of get the right approach are:
Closing and reopening the code tag to exclude the annoying characters (so doing
}/{@code
)Ditching
{@code
altogether and just using the old fashioned<code>
tags.
Personally I'd favour the last approach because it's a bit neater and (presumably) easier to convert later if a fix ever arrives - but it's not ideal.