mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8261301: StringWriter.flush() is NOOP but documentation does not indicate it
Reviewed-by: naoto, rriggs
This commit is contained in:
parent
0b1b5c8d0b
commit
e89fd15189
2 changed files with 6 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2021, 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
|
||||
|
@ -276,6 +276,8 @@ public class CharArrayWriter extends Writer {
|
|||
|
||||
/**
|
||||
* Flush the stream.
|
||||
*
|
||||
* <p> The {@code flush} method of {@code CharArrayWriter} does nothing.
|
||||
*/
|
||||
public void flush() { }
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 1996, 2016, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 1996, 2021, 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
|
||||
|
@ -229,6 +229,8 @@ public class StringWriter extends Writer {
|
|||
|
||||
/**
|
||||
* Flush the stream.
|
||||
*
|
||||
* <p> The {@code flush} method of {@code StringWriter} does nothing.
|
||||
*/
|
||||
public void flush() {
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue