Skip to content

Commit f7d21c3

Browse files
committedMar 22, 2022
8283480: Make AbstractStringBuilder sealed
Reviewed-by: jjg, rriggs, jlaskey, dfuchs
1 parent d29c7e7 commit f7d21c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
 

‎src/java.base/share/classes/java/lang/AbstractStringBuilder.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2003, 2022, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -56,7 +56,8 @@
5656
* @author Ulf Zibis
5757
* @since 1.5
5858
*/
59-
abstract class AbstractStringBuilder implements Appendable, CharSequence {
59+
abstract sealed class AbstractStringBuilder implements Appendable, CharSequence
60+
permits StringBuilder, StringBuffer {
6061
/**
6162
* The value is used for character storage.
6263
*/

0 commit comments

Comments
 (0)
Please sign in to comment.