8288836: (fs) Files.writeString spec for IOException has "specified charset" when no charset is provided

Reviewed-by: alanb, lancea, iris
This commit is contained in:
Brian Burkhalter 2022-06-28 15:05:46 +00:00
parent 9048cef761
commit 6f9717b46b

View file

@ -3654,7 +3654,7 @@ public final class Files {
* if {@code options} contains an invalid combination of options
* @throws IOException
* if an I/O error occurs writing to or creating the file, or the
* text cannot be encoded using the specified charset
* text cannot be encoded using UTF-8
* @throws UnsupportedOperationException
* if an unsupported option is specified
* @throws SecurityException