Skip to content
Permalink
Browse files
8257750: writeBuffer field of java.io.DataOutputStream should be final
Reviewed-by: lancea, naoto
  • Loading branch information
Brian Burkhalter committed Dec 4, 2020
1 parent dd0b945 commit e27ea4d12ca4e7a4fae2f4f85ee0f00bd200c903
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/java.base/share/classes/java/io/DataOutputStream.java
@@ -50,6 +50,8 @@
*/
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 final void writeInt(int v) throws IOException {
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

1 comment on commit e27ea4d

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on e27ea4d Dec 4, 2020

Please sign in to comment.