[ https://issues.apache.org/jira/browse/TEXT-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16061902#comment-16061902 ]
Bruno P. Kinoshita commented on TEXT-95: ---------------------------------------- It sounds interesting! Reduces verbosity, makes code simpler. I haven't used much the ExtendedMessageFormat, so will spend some time reading the code, javadocs, and playing with it over the next days before committing to a aye or nay :-) Thanks for reporting. Bruno > Convenience formatting method in ExtendedMethodFormat > ----------------------------------------------------- > > Key: TEXT-95 > URL: https://issues.apache.org/jira/browse/TEXT-95 > Project: Commons Text > Issue Type: Improvement > Reporter: Arend v. Reinersdorff > > It would be nice to have a simple formatting method in ExtendedMethodFormat: > {code} > String format(Object... arguments) > {code} > Intended use: > {code} > ExtendedMessageFormat messageFormat = new ExtendedMessageFormat("{0}, {1}", > Locale.ROOT); > String output = messageFormat.format("Hello", "World"); > {code} > The current formatting method of (Extended)MethodFormat is quite inconvenient > for simple use cases: > {code} > ExtendedMessageFormat messageFormat = new ExtendedMessageFormat("{0}, {1}", > Locale.ROOT); > Object[] arguments = { "Hello", "World" }; > StringBuffer outputBuffer = messageFormat.format(arguments, new > StringBuffer(), null); > String output = outputBuffer.toString(); > {code} -- This message was sent by Atlassian JIRA (v6.4.14#64029)