mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-26 22:34:27 +02:00
8257750: writeBuffer field of java.io.DataOutputStream should be final
Reviewed-by: lancea, naoto
This commit is contained in:
parent
dd0b9454a2
commit
e27ea4d12c
1 changed files with 2 additions and 2 deletions
|
@ -50,6 +50,8 @@ public class DataOutputStream extends FilterOutputStream implements DataOutput {
|
|||
*/
|
||||
private byte[] bytearr = null;
|
||||
|
||||
private final byte[] writeBuffer = new byte[8];
|
||||
|
||||
/**
|
||||
* Creates a new data output stream to write data to the specified
|
||||
* underlying output stream. The counter {@code written} is
|
||||
|
@ -207,8 +209,6 @@ public class DataOutputStream extends FilterOutputStream implements DataOutput {
|
|||
incCount(4);
|
||||
}
|
||||
|
||||
private byte writeBuffer[] = new byte[8];
|
||||
|
||||
/**
|
||||
* Writes a {@code long} to the underlying output stream as eight
|
||||
* bytes, high byte first. In no exception is thrown, the counter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue