src/share/classes/java/lang/StringBuffer.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File jdk Cdiff src/share/classes/java/lang/StringBuffer.java

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

Print this page

        

*** 333,346 **** * @param s the {@code CharSequence} to append. * @return a reference to this object. * @since 1.5 */ @Override ! public StringBuffer append(CharSequence s) { ! // Note, synchronization achieved via invocations of other StringBuffer methods after ! // narrowing of s to specific type ! // Ditto for toStringCache clearing super.append(s); return this; } /** --- 333,344 ---- * @param s the {@code CharSequence} to append. * @return a reference to this object. * @since 1.5 */ @Override ! public synchronized StringBuffer append(CharSequence s) { ! toStringCache = null; super.append(s); return this; } /**
src/share/classes/java/lang/StringBuffer.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File