Le 09/07/2010 01:45, er...@apache.org a écrit : > Author: erans > /** {...@inheritdoc} */ > @Override > public String getMessage() { > - return MessageFactory.buildMessage(Locale.US, pattern, arguments); > + final StringBuilder sb = new StringBuilder(); > + > + if (specific != null) { > + sb.append(MessageFactory.buildMessage(Locale.US, specific, > arguments)); > + sb.append(": "); > + } > + sb.append(MessageFactory.buildMessage(Locale.US, general, > arguments)); > + > + return sb.toString(); > } > > /** {...@inheritdoc} */ > @Override > public String getLocalizedMessage() { > - return MessageFactory.buildMessage(Locale.getDefault(), pattern, > arguments); > + final StringBuilder sb = new StringBuilder(); > + > + if (specific != null) { > + sb.append(MessageFactory.buildMessage(Locale.getDefault(), > specific, arguments)); > + sb.append(": "); > + } > + sb.append(MessageFactory.buildMessage(Locale.getDefault(), general, > arguments)); > + > + return sb.toString();
I don't how we can use the same arguments in both the general and specific messages and later combine them together. How is this different from a more complete message ? Luc --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org