From 50cc647804c9f435274aa409f8c5561adf3707f6 Mon Sep 17 00:00:00 2001 From: Scott Mitchell Date: Thu, 27 Aug 2015 16:01:28 -0700 Subject: [PATCH] DefaultPropertyKey private member variable accessed outside scope Motivation: DefaultPropertyKey.index is currently private and accessed outside the class's scope. Modifications: - Change access level to package private Result: No chance of synthetic method generation for accessing this field --- .../io/netty/handler/codec/http2/DefaultHttp2Connection.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java b/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java index 51b38c8b7e..d62aa1c17d 100644 --- a/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java +++ b/codec-http2/src/main/java/io/netty/handler/codec/http2/DefaultHttp2Connection.java @@ -1153,7 +1153,7 @@ public class DefaultHttp2Connection implements Http2Connection { * Implementation of {@link PropertyKey} that specifies the index position of the property. */ final class DefaultPropertyKey implements PropertyKey { - private final int index; + final int index; DefaultPropertyKey(int index) { this.index = index;