102 Commits

Author SHA1 Message Date
Hannes Wallnöfer
2d4a4d04b8 8315921: Invalid CSS declarations in java.lang class documentation
Reviewed-by: jpai, alanb
2023-11-02 11:53:54 +00:00
Jorn Vernee
b12c471a99 8317837: Leftover FFM implementation-only changes
Co-authored-by: Maurizio Cimadamore <mcimadamore@openjdk.org>
Co-authored-by: Per Minborg <pminborg@openjdk.org>
Reviewed-by: mcimadamore
2023-10-13 19:05:47 +00:00
Aleksei Voitylov
cfcbfc6cae 8316879: RegionMatches1Tests fails if CompactStrings are disabled after JDK-8302163
Reviewed-by: simonis, rgiulietti, rriggs
2023-09-28 18:11:40 +00:00
Raffaello Giulietti
93ee19f58a 8305486: Add split() variants that keep the delimiters to String and j.u.r.Pattern
Reviewed-by: jpai, rriggs
2023-05-08 14:51:35 +00:00
Eirik Bjorsnos
7f56de8f78 8306036: Use @apiNote in String.toLowerCase, String.toUpperCase
Reviewed-by: alanb, jpai
2023-04-17 05:24:50 +00:00
Jim Laskey
9b9b5a7a5c 8302323: Add repeat methods to StringBuilder/StringBuffer
Reviewed-by: tvaleev, redestad
2023-04-03 15:29:21 +00:00
Raffaello Giulietti
4bf1fbb06d 8303648: Add String.indexOf(String str, int beginIndex, int endIndex)
Reviewed-by: rriggs
2023-03-21 08:43:23 +00:00
Raffaello Giulietti
5b2e2e4695 8302590: Add String.indexOf(int ch, int fromIndex, int toIndex)
Reviewed-by: rriggs, alanb
2023-03-03 20:51:13 +00:00
Glavo
7449e1c661 8299807: newStringNoRepl should avoid copying arrays for ASCII compatible charsets
Reviewed-by: rriggs
2023-03-03 15:41:03 +00:00
Claes Redestad
92dfa1175e 8302863: Speed up String::encodeASCII using countPositives
Reviewed-by: alanb
2023-02-21 13:31:15 +00:00
Claes Redestad
861e302011 8302163: Speed up various String comparison methods with ArraysSupport.mismatch
Reviewed-by: stsypanov, rriggs, alanb
2023-02-15 21:52:41 +00:00
Christian Wimmer
622b6594d1 8262994: Refactor String.split to help method inlining
Reviewed-by: plevart
2023-01-30 23:33:11 +00:00
Joe Darcy
7bf0d1465e 8300133: Use generalized see and link tags in core libs
Reviewed-by: jjg, mchung, naoto, smarks
2023-01-18 18:54:03 +00:00
Sergey Tsypanov
c6156f9123 8297561: Redundant index check in String.offsetByCodePoints()
Reviewed-by: aturbanov, rriggs, redestad
2022-12-01 15:28:39 +00:00
Sergey Tsypanov
efed7a7f65 8289908: Skip bounds check for cases when String is constructed from entirely used byte[]
Reviewed-by: prr, rriggs, aturbanov
2022-07-18 17:15:46 +00:00
Naoto Sato
2728770e3d 8288589: Files.readString ignores encoding errors for UTF-16
Reviewed-by: rriggs, iris, alanb
2022-06-23 15:49:43 +00:00
Naoto Sato
6fb84e2c91 8287541: Files.writeString fails to throw IOException for charset "windows-1252"
Reviewed-by: iris, bpb, alanb, jpai, lancea, aturbanov
2022-06-08 15:50:06 +00:00
Naoto Sato
cc7560e995 8286287: Reading file as UTF-16 causes Error which "shouldn't happen"
Reviewed-by: jpai, bpb, rriggs
2022-05-12 15:58:19 +00:00
Magnus Ihse Bursie
fb469fb894 8284893: Fix typos in java.base
Reviewed-by: iris, wetmore, lancea, mullan, naoto
2022-04-19 20:07:57 +00:00
Xin Liu
bab431cc12 8282429: StringBuilder/StringBuffer.toString() skip compressing for UTF16 strings
Reviewed-by: djelinski, redestad
2022-04-01 04:42:03 +00:00
Claes Redestad
002e366744 8283325: US_ASCII decoder relies on String.decodeASCII being exhaustive
Reviewed-by: rriggs, dcubed
2022-03-17 21:15:36 +00:00
Claes Redestad
beedae1141 8281146: Replace StringCoding.hasNegatives with countPositives
Co-authored-by: Lutz Schmidt <lucy@openjdk.org>
Co-authored-by: Martin Doerr <mdoerr@openjdk.org>
Reviewed-by: kvn, lucy, rriggs
2022-03-17 09:20:24 +00:00
Joe Darcy
9ca7ff3e4f 8281082: Improve javadoc references to JOSS
Reviewed-by: iris, rriggs, naoto, lancea
2022-02-01 22:30:08 +00:00
Claes Redestad
e314a4cfda 8280124: Reduce branches decoding latin-1 chars from UTF-8 encoded bytes
Reviewed-by: rriggs, alanb, naoto
2022-01-18 19:28:12 +00:00
Claes Redestad
c3d0a94040 8279833: Loop optimization issue in String.encodeUTF8_UTF16
Reviewed-by: shade, alanb
2022-01-11 14:49:03 +00:00
Petr Portnov
e30e676709 8277606: String(String) constructor could copy hashIsZero
Reviewed-by: redestad, rriggs
2021-11-30 20:50:13 +00:00
Pavel Rappo
bf4ddf9cb7 8276338: Minor improve of wording for String.to(Lower|Upper)Case
Reviewed-by: rriggs, naoto
2021-11-04 15:51:37 +00:00
Naoto Sato
495c828ae9 8276188: Clarify "default charset" descriptions in String class
Reviewed-by: iris, joehw
2021-11-02 16:08:11 +00:00
Sergey Tsypanov
e5f298a7f1 8273329: Remove redundant null check from String.getBytes(String charsetName)
Reviewed-by: rriggs, iris, naoto
2021-09-08 15:54:36 +00:00
Claes Redestad
30b0f820ce 8272626: Avoid C-style array declarations in java.*
Reviewed-by: dfuchs, alanb
2021-08-18 10:47:03 +00:00
Yi Yang
afe957cd97 8268698: Use Objects.check{Index,FromToIndex,FromIndexSize} for java.base
Reviewed-by: mchung, rriggs
2021-07-13 02:23:16 +00:00
Jim Laskey
e4c5446340 8268236: The documentation of the String.regionMatches method contains error
Reviewed-by: rriggs, dfuchs
2021-06-28 13:51:07 +00:00
Weijun Wang
6765f90250 8266459: Implement JEP 411: Deprecate the Security Manager for Removal
Co-authored-by: Sean Mullan <mullan@openjdk.org>
Co-authored-by: Lance Andersen <lancea@openjdk.org>
Co-authored-by: Weijun Wang <weijun@openjdk.org>
Reviewed-by: erikj, darcy, chegar, naoto, joehw, alanb, mchung, kcr, prr, lancea
2021-06-02 11:57:31 +00:00
Claes Redestad
95b1fa7a88 8267529: StringJoiner can create a String that breaks String::equals
Reviewed-by: naoto
2021-05-27 23:09:22 +00:00
Ian Graves
dd05158b24 8266155: Convert java.base to use Stream.toList()
Reviewed-by: bpb, naoto, iris, chegar
2021-04-30 19:52:26 +00:00
Peter Levart
98cb81b381 8265237: String.join and StringJoiner can be improved further
Reviewed-by: rriggs, redestad
2021-04-21 10:32:03 +00:00
Patrick Concannon
329697b02e 8263358: Update java.lang to use instanceof pattern variable
Reviewed-by: iris, chegar, mchung, dfuchs
2021-03-24 09:57:22 +00:00
Claes Redestad
433096a45e 8261744: Implement CharsetDecoder ASCII and latin-1 fast-paths
Reviewed-by: naoto, alanb
2021-02-19 15:05:25 +00:00
Jesper Wilhelmsson
9b7a8f1982 Merge 2021-02-04 02:06:33 +00:00
Aleksey Shipilev
081fa3e715 8260927: StringBuilder::insert is incorrect without Compact Strings
Reviewed-by: redestad, alanb, rriggs, jlaskey
2021-02-02 18:00:43 +00:00
Claes Redestad
58ceb25443 8259842: Remove Result cache from StringCoding
Reviewed-by: naoto, plevart, rriggs
2021-01-22 11:27:13 +00:00
Sergey Tsypanov
6eb25d7cb4 8254082: AbstractStringBuilder.insert(int dstOffset, CharSequence s, int start, int end) is missing fast-path for String
Reviewed-by: redestad
2020-11-30 17:43:19 +00:00
Jonathan Gibbons
0aa3c92577 8255262: Remove use of legacy custom @spec tag
Reviewed-by: lancea, mr, iris, alanb, darcy, mchung
2020-10-22 19:42:01 +00:00
Philippe Marschall
2a406f3ce5 8138732: Rename @HotSpotIntrinsicCandidate to @IntrinsicCandidate and move it to the jdk.internal.vm.annotation package
Reviewed-by: dholmes, alanb, psandoz, kvn, egahlin
2020-09-30 20:05:07 +00:00
Pavel Rappo
83b2411fd1 8253342: Fix typos in String.transform
Reviewed-by: jlaskey
2020-09-18 10:45:28 +00:00
Roger Riggs
afce1f4ebd 8251203: Fix "no comment" warnings in java.base/java.lang and java/io
Reviewed-by: dfuchs, lancea, mchung, naoto
2020-08-25 10:20:14 -04:00
Naoto Sato
1f63603288 8248655: Support supplementary characters in String case insensitive operations
8248434: some newly added locale cannot parse uppercased date string

Reviewed-by: jlaskey, joehw, rriggs, bchristi
2020-07-23 08:46:31 -07:00
Joe Darcy
b7c307c019 8249687: Use inline @jls and @jvm tages in more places in java.base
Reviewed-by: bpb, mchung, mikael
2020-07-17 17:27:31 -07:00
Mark Reinhold
55039aa1c6 8249205: Remove unnecessary trademark symbols
Reviewed-by: darcy, lancea, bpb, prr, jjg, cjplummer, iris, dfuchs, weijun, joehw, wetmore, bchristi
2020-07-15 14:21:54 -07:00
Jim Laskey
03642a01af 8230744: Several classes throw OutOfMemoryError without message
Reviewed-by: psandoz, martin, bchristi, rriggs, smarks
2020-06-11 10:08:23 -03:00