8261301: StringWriter.flush() is NOOP but documentation does not indicate it
Reviewed-by: naoto, rriggs
This commit is contained in:
parent
0b1b5c8d0b
commit
e89fd15189
@ -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…
Reference in New Issue
Block a user