(String s)
| 37 | } |
| 38 | |
| 39 | public StringBuilder append(String s) { |
| 40 | if (s == null) { |
| 41 | return append("null"); |
| 42 | } else { |
| 43 | if (s.length() > 0) { |
| 44 | if (buffer != null && s.length() <= buffer.length - position) { |
| 45 | s.getChars(0, s.length(), buffer, position); |
| 46 | position += s.length(); |
| 47 | } else { |
| 48 | flush(); |
| 49 | chain = new Cell(s, chain); |
| 50 | } |
| 51 | length += s.length(); |
| 52 | } |
| 53 | return this; |
| 54 | } |
| 55 | } |
| 56 | |
| 57 | public StringBuilder append(StringBuffer sb) { |
| 58 | return append(sb.toString()); |
no test coverage detected