8304945: StringBuilder and StringBuffer should implement Appendable explicitly

Reviewed-by: alanb, rriggs
This commit is contained in:
Joe Darcy 2023-04-03 17:19:44 +00:00
parent 312bbe7d75
commit df819cfa5a
2 changed files with 4 additions and 4 deletions

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 1994, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 1994, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -111,7 +111,7 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
*/ */
public final class StringBuffer public final class StringBuffer
extends AbstractStringBuilder extends AbstractStringBuilder
implements Serializable, Comparable<StringBuffer>, CharSequence implements Appendable, Serializable, Comparable<StringBuffer>, CharSequence
{ {
/** /**

View file

@ -1,5 +1,5 @@
/* /*
* Copyright (c) 2003, 2021, Oracle and/or its affiliates. All rights reserved. * Copyright (c) 2003, 2023, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
* *
* This code is free software; you can redistribute it and/or modify it * This code is free software; you can redistribute it and/or modify it
@ -90,7 +90,7 @@ import java.io.StreamCorruptedException;
*/ */
public final class StringBuilder public final class StringBuilder
extends AbstractStringBuilder extends AbstractStringBuilder
implements java.io.Serializable, Comparable<StringBuilder>, CharSequence implements Appendable, java.io.Serializable, Comparable<StringBuilder>, CharSequence
{ {
/** use serialVersionUID for interoperability */ /** use serialVersionUID for interoperability */