41 Commits

Author SHA1 Message Date
Naoto Sato
d0dadf23c5 8041791: String.toLowerCase regression - violates Unicode standard
Reviewed-by: peytoia
2014-05-14 10:52:51 -07:00
Alexander Stepanov
0547ad2898 8030709: Tidy warnings cleanup for java.lang package; minor cleanup in java.math, javax.script
Reviewed-by: lancea
2014-05-12 14:12:33 +04:00
Brent Christian
1c27a0720c 8027640: String.indexOf(String,int) for the empty string case not specified
Spec & wording clean up of indexOf(), lastIndexOf()

Reviewed-by: psandoz
2014-02-26 13:02:05 -08:00
Xueming Shen
8cdace2575 8032012: String.toLowerCase/toUpperCase performance improvement
Updated the implementation to improve the performance

Reviewed-by: psandoz, forax
2014-02-07 09:04:17 -08:00
Stuart Marks
23803430bb 8028757: CharSequence.subSequence improperly requires a "new" CharSequence be returned
Reviewed-by: alanb, darcy, mduigou
2013-12-03 15:52:16 -08:00
Stuart Marks
99fc6852a3 7174936: several String methods claim to always create new String
Reviewed-by: dholmes, bchristi, alanb, lancea
2013-11-21 16:02:16 -08:00
Xueming Shen
dc1dba10e7 8028321: Fix for String.split() empty input sequence/JDK-6559590 triggers regression
To undo the change for 6559590

Reviewed-by: darcy
2013-11-13 22:22:28 -08:00
Xueming Shen
4208726b35 8027645: Pattern.split() with positive lookahead
6559590: Pattern.compile(".*").split("") returns incorrect result

Updated spec/impl for these two corner cases

Reviewed-by: alanb, psandoz
2013-11-13 11:26:01 -08:00
Roger Riggs
eb5d8c2f8b 8028041: Serialized Form description of j.l.String is not consistent with the implementation
Replaced incorrect description with reference to the serialization specification

Reviewed-by: alanb, smarks
2013-11-08 17:50:24 -05:00
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
Yuka Kamiya
fa9bbd8594 8020037: String.toLowerCase incorrectly increases length, if string contains \u0130 char
Reviewed-by: naoto
2013-10-22 06:13:01 +09:00
Naoto Sato
b1127783de 8023943: Method description fix for String.toLower/UpperCase() methods
Reviewed-by: okutsu
2013-09-05 10:14:53 -07:00
Henry Jen
25af2121aa 8023997: j.l.String.join(java.lang.CharSequence, java.lang.Iterable) sample doesn't compile and is incorrect
Reviewed-by: alanb
2013-09-03 16:05:45 -07:00
Brent Christian
e19945c794 8010325: Remove hash32() method and hash32 int field from java.lang.String
Reviewed-by: alanb, mduigou
2013-06-12 11:11:59 -07:00
Peter Levart
2548b20c9e 8014477: (str) Race condition in String.contentEquals when comparing with StringBuffer
Reviewed-by: alanb, mduigou, dholmes
2013-05-17 14:41:39 +02:00
Jim Gish
4c7d3a9bd1 5015163: (str) String merge/join that is the inverse of String.split()
7172553: A utility class that forms the basis of a String.join() operation

Integrate StringJoiner changes from lambda

Reviewed-by: alanb, mduigou
2013-04-02 18:41:04 -04: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
Alan Bateman
9b8e06e699 8000269: Cleanup javadoc warnings
Reviewed-by: lancea, darcy, ulfzibis, iris, naoto, dholmes
2012-10-01 15:36:57 +01:00
Jim Gish
558e1362a9 6914123: (str) Missing synchronization in java.lang.String#contentEquals(CharSequence)
Change contentEquals( CharSequence cs ) to do synchronization if cs is a StringBuffer

Reviewed-by: mduigou
2012-07-27 16:17:11 -04:00
Joe Bowbeer
826591b516 7170938: (str) incorrect wording in doc for String.subSequence
Reviewed-by: forax, mduigou
2012-06-29 16:16:13 -07:00
Mike Duigou
705c53b045 7126277: Alternative String hashing implementation
All of the hashing based Map implementations: HashMap, Hashtable, LinkedHashMap, WeakHashMap and ConcurrentHashMap are modified to use an enhanced hashing algorithm for string keys when the capacity of the hash table has ever grown beyond 512 entries. The enhanced hashing implementation uses the murmur3 hashing algorithm along with random hash seeds and index masks. These enhancements mitigate cases where colliding String hash values could result in a performance bottleneck.

Reviewed-by: alanb, forax, dl
2012-05-30 22:18:37 -07:00
Brian Doherty
f55750d05a 6924259: Remove offset and count fields from java.lang.String
Removes the use of shared character array buffers by String along with the two fields needed to support the use of shared buffers.

Reviewed-by: alanb, mduigou, forax, briangoetz
2012-05-17 10:06:19 -07:00
Joe Darcy
032af13e8b 7132338: Use @code friendly idiom for '\' in javadoc
Reviewed-by: alanb
2012-01-23 12:17:30 -08:00
Darryl Mocek
689ccf050d 5035850: (str) String.CASE_INSENSITIVE_ORDER should override readResolve()
Fix to ensure singleton property of String.CaseInsensitiveComparator is maintained through de/serialization.

Reviewed-by: alanb, forax, smarks, dholmes
2011-12-02 16:25:35 -08:00
Jim Holmlund
bbf16c0b3a 7032960: API files in java.awt need to be updated for references to JVM Spec with editions/hyperlinks
7032965: API files in java.io need to updated for references to JVM Spec with editions/hyperlinks
7032958: API files in java.lang need to updated for references to JLS with editions/hyperlinks
7032961: API files in java.lang need to updated for references to JVM with editions/hyperlinks
7032976: API files in javax.lang need to be updated for references to JLS with editions/hyperlinks
7032959: API files in java.util need to updated for references to JLS with editions/hyperlinks
7032962: API files in java.util need to updated for references to JVM Spec with editions/hyperlinks
7032967: API files in java.security need to updated for references to JVM Spec with editions/hyperlinks
7032955: API files in java.math need to updated for references to JLS with editions/hyperlinks

Removed URLs and 'edition' references

Reviewed-by: darcy
2011-04-13 12:16:13 -07:00
Lana Steuck
fb91d40572 Merge 2011-01-04 17:05:38 -08:00
Kelly O'Hair
6b6a611c8e 6962318: Update copyright year
Reviewed-by: xdono
2010-12-28 15:53:50 -08:00
Stuart Marks
6e7cb44eea 6880112: Project Coin: Port JDK core library code to use diamond operator
Reviewed-by: darcy, lancea, alanb, briangoetz, mduigou, mchung
2010-12-20 13:47:04 -08:00
Ulf Zibis
ff895e1ca9 6933322: Add methods highSurrogate(), lowSurrogate() to class Character
Add public variants of methods Surrogate.high, Surrogate.low

Reviewed-by: okutsu, sherman
2010-06-30 16:11:32 -07:00
Martin Buchholz
0af0decb66 6940381: Wording improvements for String.indexOf, String.lastIndexOf
Make wording of javadoc clearer and more consistent

Reviewed-by: sherman
2010-06-30 16:11:32 -07:00
Ulf Zibis
9c81e25271 6937112: String.lastIndexOf confused by unpaired trailing surrogate
Rewrite lastIndexOf for performance and correctness

Reviewed-by: sherman
2010-06-30 16:11:32 -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
Kelly O'Hair
fe008ae27a 6943119: Rebrand source copyright notices
Reviewed-by: darcy, weijun
2010-05-25 15:58:33 -07:00
Martin Buchholz
3adf1d8538 6937842: Unreadable \uXXXX in javadoc
Replace \uXXXX by \u005CXXXX, or simply delete

Reviewed-by: sherman
2010-05-09 16:37:06 -07:00
Alan Bateman
16b8431cf3 6921374: java.lang.String::hashCode() should check for count == 0 to avoid repeated stores hash = 0
Reviewed-by: darcy, ohair
2010-02-27 19:29:15 +00:00
Joe Darcy
debdf79d18 6480728: Byte.valueOf(byte) returns a cached value but Byte.valueOf(String)
6655735: Integer.toString() and String.valueOf(int) contain slow delegations

Reviewed-by: lancea
2009-10-07 14:04:20 -07:00
Xueming Shen
dfa68f9504 6840246: Lightweight implementation of String.split for simple use case
Added a fastpath for simple use case

Reviewed-by: alanb, martin
2009-08-13 10:50:23 -07:00
Yuka Kamiya
7a543510bd 6404304: RFE: Unicode 5.1 support
Reviewed-by: okutsu, naoto
2009-04-10 11:51:36 +09:00
J. Duke
319a3b9947 Initial load 2007-12-01 00:00:00 +00:00