23 Commits

Author SHA1 Message Date
Roger Riggs
93dcac6266 8026982: javadoc errors in core libs
Cleanup of javadoc -Xlint errors

Reviewed-by: lancea, mduigou, darcy, mullan, mchung
2013-10-22 17:02:08 -04:00
Ivan Gerasimov
86af118ec0 8016018: Typo in AbstractStringBuilder#indexOf and #lastIndexOf descriptions
Reviewed-by: alanb, chegar
2013-08-26 18:26:35 +04:00
Brian Burkhalter
a1fe63768f 7032154: Performance tuning of sun.misc.FloatingDecimal/FormattedFloatingDecimal
Performance improvements for double/float -> String and decimal/hex String -> double/float conversions.

Co-authored-by: Sergey Kuksenko <sergey.kuksenko@oracle.com>
Co-authored-by: Dmitry Nadezhin <dmitry.nadezhin@oracle.com>
Co-authored-by: Olivier Lagneau <olivier.lagneau@oracle.com>
Reviewed-by: martin, iris
2013-06-05 21:01:02 -07:00
Martin Buchholz
35d38242d2 8010849: (str) Optimize StringBuilder.append(null)
Append 4 chars instead of the string "null"

Reviewed-by: mduigou, forax, jgish
2013-04-08 16:37:35 -07:00
Martin Buchholz
edcaf23233 8010316: Improve handling of char sequences containing surrogates
Fix and optimize codePointAt, codePointBefore and similar methods

Reviewed-by: sherman, okutsu, ulfzibis, kizune
2013-03-26 13:36:51 -07:00
Jim Gish
43b8609138 4247235: (spec str) StringBuffer.insert(int, char[]) specification is inconsistent
Add blanket null-handling statement to StringBuilder and StringBuffer

Reviewed-by: mduigou
2013-01-22 11:14:13 -05:00
Jim Gish
2fc01efdd8 8005118: Javadoc styles are inconsistent
Use a common javadoc style in the String classes

Reviewed-by: darcy
2012-12-28 16:56:54 -05:00
Mike Duigou
2a4b35660e 6553074: String{Buffer,Builder}.indexOf(Str, int) contains unnecessary allocation
It is not necessary to extract the value array with toCharArray. The value array can now be used directly.

Reviewed-by: alanb
2012-11-29 14:09:45 -08:00
Jim Gish
a865f8b91a 6206780: (str) Forwarding append methods in String{Buffer,Builder} are inconsistent
Update StringBuilder & StringBuffer to consistently handle forwarding to AbstractStringBuilder. Some additional cleanup (removal of refs to sub-classes from AbstractStringBuilder)

Reviewed-by: chegar, alanb, mduigou
2012-10-29 16:51:59 -07:00
Chris Hegarty
4752833181 7199500: Minor typo in AbstractStringBuilder.java header
Reviewed-by: coffeys
2012-09-19 14:55:40 +01:00
Jim Gish
ae79d50df2 4722265: (spec str) StringBuffer.ensureCapacity() should mention that capacity is mutable
Add usage note to AbstractStringBuilder ensureCapacity()

Reviewed-by: mduigou, dholmes, chegar
2012-09-19 08:52:21 -04:00
Joe Darcy
032af13e8b 7132338: Use @code friendly idiom for '\' in javadoc
Reviewed-by: alanb
2012-01-23 12:17:30 -08:00
Kelly O'Hair
6b6a611c8e 6962318: Update copyright year
Reviewed-by: xdono
2010-12-28 15:53:50 -08:00
Mandy Chung
d0f3de3b59 6992121: StringBuilder.ensureCapacity(int minCap) throws OutOfMemoryError with minCap=Integer.MIN_VALUE
Reviewed-by: dholmes, alanb
2010-10-19 10:02:25 -07:00
Martin Buchholz
500a66b0d8 6955504: (str) String[Builder/Buffer].append(char[],int,int) throws OutOfMemoryError in b94
Let arraycopy throw AIOOBE for invalid negative length

Reviewed-by: chegar, forax
2010-08-03 12:22:49 -07:00
Ulf Zibis
a0f3e72c24 6934265: Add public method Character.isBmpCodePoint
Move isBmpCodePoint from sun.nio.cs.Surrogate to Character

Reviewed-by: sherman
2010-06-30 16:11:32 -07:00
Lana Steuck
fd45b4188c Merge 2010-05-28 12:10:14 -07:00
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Martin Buchholz
3927da83d0 6952330: Fix for 6933217 broke contract of StringBuffer.ensureCapacity
Make sure to grow with size => size * 2 + 2

Reviewed-by: dholmes, chegar, ohair
2010-05-13 21:56:13 -07:00
Martin Buchholz
4a29f05c6a 6933217: Huge arrays handled poorly in core libraries
Write overflow-conscious array resizing code

Reviewed-by: chegar
2010-05-09 00:59:30 -07:00
Xiomara Jayasena
6e86513c3a 6754988: Update copyright year
Update for files that have been modified starting July 2008

Reviewed-by: ohair, tbell
2008-10-02 19:58:32 -07:00
Martin Buchholz
77dfe98c4e 6728229: (str) StringBuilder.append(CharSequence) does not throw IndexOutOfBoundsException
Major spec rework

Reviewed-by: alanb
2008-09-09 15:20:07 -07:00
J. Duke
319a3b9947 Initial load 2007-12-01 00:00:00 +00:00