< prev index next >

src/java.base/share/classes/java/lang/StringBuffer.java

Print this page
rev 53655 : imported patch 8218228-The-constructor-StringBuffer-CharSequence-violates-spec-for-negatively-sized-argument

*** 155,168 **** /** * Constructs a string buffer that contains the same characters * as the specified {@code CharSequence}. The initial capacity of * the string buffer is {@code 16} plus the length of the * {@code CharSequence} argument. - * <p> - * If the length of the specified {@code CharSequence} is - * less than or equal to zero, then an empty buffer of capacity - * {@code 16} is returned. * * @param seq the sequence to copy. * @since 1.5 */ public StringBuffer(CharSequence seq) { --- 155,164 ----
< prev index next >