Many logging tools build a string representation out of getMessage() and ignores toString() completely.
Suppress false positives by adding the suppression annotation @SuppressWarnings("OverrideThrowableToString") to the enclosing element.
@SuppressWarnings("OverrideThrowableToString")
Get our FREE eBook "10 Programming Tips That Changed Everything" when you subscribe!
No spam. Unsubscribe anytime.