On Tue, 12 Apr 2022 19:38:33 GMT, Andrey Turbanov <[email protected]> wrote:
> Default `to` index for String.substring method call is length of the String. > We can simplify code a bit, by omitting default value. This pull request has now been integrated. Changeset: bf1c3ef0 Author: Andrey Turbanov <[email protected]> URL: https://git.openjdk.java.net/jdk/commit/bf1c3ef02b22a615101530642d245fef899d33b7 Stats: 19 lines in 6 files changed: 0 ins; 5 del; 14 mod 8284775: Simplify String.substring(_, length()) calls Reviewed-by: bpb, serb ------------- PR: https://git.openjdk.java.net/jdk/pull/8212
