mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8304945: StringBuilder and StringBuffer should implement Appendable explicitly
Reviewed-by: alanb, rriggs
This commit is contained in:
parent
312bbe7d75
commit
df819cfa5a
2 changed files with 4 additions and 4 deletions
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -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 */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue