Skip to content

Commit 2fbdbac

Browse files
wenshaocl4es
authored andcommitted
8337245: Fix wrong comment of StringConcatHelper
Reviewed-by: phh, redestad
1 parent 034297a commit 2fbdbac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/java.base/share/classes/java/lang/StringConcatHelper.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ static long prepend(long indexCoder, byte[] buf, boolean value, String prefix) {
185185
* @param indexCoder final char index in the buffer, along with coder packed
186186
* into higher bits.
187187
* @param buf buffer to append to
188-
* @param value boolean value to encode
188+
* @param value char value to encode
189189
* @param prefix a constant to prepend before value
190190
* @return updated index (coder value retained)
191191
*/
@@ -211,7 +211,7 @@ static long prepend(long indexCoder, byte[] buf, char value, String prefix) {
211211
* @param indexCoder final char index in the buffer, along with coder packed
212212
* into higher bits.
213213
* @param buf buffer to append to
214-
* @param value boolean value to encode
214+
* @param value int value to encode
215215
* @param prefix a constant to prepend before value
216216
* @return updated index (coder value retained)
217217
*/
@@ -237,7 +237,7 @@ static long prepend(long indexCoder, byte[] buf, int value, String prefix) {
237237
* @param indexCoder final char index in the buffer, along with coder packed
238238
* into higher bits.
239239
* @param buf buffer to append to
240-
* @param value boolean value to encode
240+
* @param value long value to encode
241241
* @param prefix a constant to prepend before value
242242
* @return updated index (coder value retained)
243243
*/

0 commit comments

Comments
 (0)