8300863: Remove C-style array declarations in java.io

Reviewed-by: alanb, rriggs, darcy, iris
This commit is contained in:
Per Minborg 2023-01-24 07:43:29 +00:00
parent 2292ce137c
commit 57f2d48e1e
8 changed files with 19 additions and 19 deletions

View file

@ -1,5 +1,5 @@
/*
* Copyright (c) 1996, 2022, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1996, 2023, 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
@ -73,8 +73,9 @@ public class BufferedWriter extends Writer {
private Writer out;
private char cb[];
private int nChars, nextChar;
private char[] cb;
private int nChars;
private int nextChar;
private final int maxChars; // maximum number of buffers chars
/**