8261301: StringWriter.flush() is NOOP but documentation does not indicate it

Reviewed-by: naoto, rriggs
This commit is contained in:
Brian Burkhalter 2021-04-15 20:19:40 +00:00
parent 0b1b5c8d0b
commit e89fd15189
2 changed files with 6 additions and 2 deletions

View File

@ -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() { }

View File

@ -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() {
}