mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 06:45:07 +02:00
8283234: Improve @jls usage in java.base
Reviewed-by: iris
This commit is contained in:
parent
9b8afce379
commit
0cf291bc31
5 changed files with 21 additions and 21 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2015, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -142,10 +142,10 @@ public final class StringConcatFactory {
|
|||
* <ul>
|
||||
* <li>zero inputs, concatenation results in an empty string;</li>
|
||||
* <li>one input, concatenation results in the single
|
||||
* input converted as per JLS 5.1.11 "String Conversion"; otherwise</li>
|
||||
* input converted as per JLS {@jls 5.1.11} "String Conversion"; otherwise</li>
|
||||
* <li>two or more inputs, the inputs are concatenated as per
|
||||
* requirements stated in JLS 15.18.1 "String Concatenation Operator +".
|
||||
* The inputs are converted as per JLS 5.1.11 "String Conversion",
|
||||
* requirements stated in JLS {@jls 15.18.1} "String Concatenation Operator +".
|
||||
* The inputs are converted as per JLS {@jls 5.1.11} "String Conversion",
|
||||
* and combined from left to right.</li>
|
||||
* </ul>
|
||||
*
|
||||
|
@ -223,10 +223,10 @@ public final class StringConcatFactory {
|
|||
* <ul>
|
||||
* <li>zero inputs, concatenation results in an empty string;</li>
|
||||
* <li>one input, concatenation results in the single
|
||||
* input converted as per JLS 5.1.11 "String Conversion"; otherwise</li>
|
||||
* input converted as per JLS {@jls 5.1.11} "String Conversion"; otherwise</li>
|
||||
* <li>two or more inputs, the inputs are concatenated as per
|
||||
* requirements stated in JLS 15.18.1 "String Concatenation Operator +".
|
||||
* The inputs are converted as per JLS 5.1.11 "String Conversion",
|
||||
* requirements stated in JLS {@jls 15.18.1} "String Concatenation Operator +".
|
||||
* The inputs are converted as per JLS {@jls 5.1.11} "String Conversion",
|
||||
* and combined from left to right.</li>
|
||||
* </ul>
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue