/** * Returns the formatted message. * @return the formatted message. */ @Override public String getFormattedMessage() { final StringBuilder sb = getBuffer(); formatTo(sb); final String result = sb.toString(); StringBuilders.trimToMaxSize(sb, Constants.MAX_REUSABLE_MESSAGE_SIZE); return result; }
/** * Returns the formatted message. * @return the formatted message. */ @Override public String getFormattedMessage() { final StringBuilder sb = getBuffer(); formatTo(sb); final String result = sb.toString(); StringBuilders.trimToMaxSize(sb, Constants.MAX_REUSABLE_MESSAGE_SIZE); return result; }