It seems to me that the legalComment
pattern is not applied to multiline comments. So you must solve your problem in the format
property.
One way of doing that would be to allow trailing comments for native methods, like so:
<module name="TrailingComment">
<property name="format" value="^(?:.+?\bnative\b.+?|[\s\}\);]*)$"/>
</module>