src/share/classes/java/lang/StringBuilder.java

Print this page

        

*** 398,407 **** --- 398,437 ---- public StringBuilder reverse() { super.reverse(); return this; } + /** + * @throws NullPointerException {@inheritDoc} + * @since 1.7 + */ + @Override + public StringBuilder join(String delimiter, Object first, Object... elements) { + super.join(delimiter, first, elements); + return this; + } + + /** + * @throws NullPointerException {@inheritDoc} + * @since 1.7 + */ + @Override + public StringBuilder join(String delimiter, Object[] elements) { + super.join(delimiter, elements); + return this; + } + + /** + * @throws NullPointerException {@inheritDoc} + * @since 1.7 + */ + @Override + public StringBuilder join(String delimiter, Iterable<?> elements) { + super.join(delimiter, elements); + return this; + } + public String toString() { // Create a copy, don't share the array return new String(value, 0, count); }