mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8283480: Make AbstractStringBuilder sealed
Reviewed-by: jjg, rriggs, jlaskey, dfuchs
This commit is contained in:
parent
d29c7e740d
commit
f7d21c3523
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2003, 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
|
||||
|
@ -56,7 +56,8 @@ import static java.lang.String.checkOffset;
|
|||
* @author Ulf Zibis
|
||||
* @since 1.5
|
||||
*/
|
||||
abstract class AbstractStringBuilder implements Appendable, CharSequence {
|
||||
abstract sealed class AbstractStringBuilder implements Appendable, CharSequence
|
||||
permits StringBuilder, StringBuffer {
|
||||
/**
|
||||
* The value is used for character storage.
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue