Re: java.util.regex.Matcher and StringBuilder/StringBuffer APIs

2019-06-21 Thread Robert Marcano
On 6/21/19 1:02 PM, Rob Spoor wrote: Maybe because Appendable comes with IOExceptions? Good catch. The alternative Appendable I was using don't declare throws IOException either, so I didn't noticed. Implementing the find/appendReplacement/appendTail for other kind of Appendable like object

Re: java.util.regex.Matcher and StringBuilder/StringBuffer APIs

2019-06-21 Thread Rob Spoor
Maybe because Appendable comes with IOExceptions? On 21/06/2019 17:06, Robert Marcano wrote: Greetings. Is there a reason the newest APIs added to Matcher (performance maybe?) with StringBuilder arguments weren't added as Appendable instead? For example:   public StringBuilder appendTail(S

java.util.regex.Matcher and StringBuilder/StringBuffer APIs

2019-06-21 Thread Robert Marcano
Greetings. Is there a reason the newest APIs added to Matcher (performance maybe?) with StringBuilder arguments weren't added as Appendable instead? For example: public StringBuilder appendTail(StringBuilder sb) public Matcher appendReplacement(StringBuilder sb, String replacement) Could