Make DefaultHttp2FrameStream.stream private (#10442)

Motivation:

`DefaultHttp2FrameStream.stream` is not used outside of its class and
therefore can be private.

Modifications:

- Make `DefaultHttp2FrameStream.stream` private;

Result:

Correct visibility scoping for `DefaultHttp2FrameStream.stream`.
This commit is contained in:
Idel Pivnitskiy 2020-08-02 22:55:13 -07:00 committed by Norman Maurer
parent f23704736d
commit e919708edc

View File

@ -659,7 +659,7 @@ public class Http2FrameCodec extends Http2ConnectionHandler {
static class DefaultHttp2FrameStream implements Http2FrameStream { static class DefaultHttp2FrameStream implements Http2FrameStream {
private volatile int id = -1; private volatile int id = -1;
volatile Http2Stream stream; private volatile Http2Stream stream;
final Http2FrameStreamEvent stateChanged = Http2FrameStreamEvent.stateChanged(this); final Http2FrameStreamEvent stateChanged = Http2FrameStreamEvent.stateChanged(this);
final Http2FrameStreamEvent writabilityChanged = Http2FrameStreamEvent.writabilityChanged(this); final Http2FrameStreamEvent writabilityChanged = Http2FrameStreamEvent.writabilityChanged(this);