Package io.netty.handler.codec.http
Class EmptyHttpHeaders.InstanceInitializer
- java.lang.Object
-
- io.netty.handler.codec.http.EmptyHttpHeaders.InstanceInitializer
-
- Enclosing class:
- EmptyHttpHeaders
@Deprecated private static final class EmptyHttpHeaders.InstanceInitializer extends java.lang.ObjectDeprecated.This class is needed to break a cyclic static initialization loop betweenHttpHeadersandEmptyHttpHeaders.
-
-
Field Summary
Fields Modifier and Type Field Description private static EmptyHttpHeadersEMPTY_HEADERSDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description privateInstanceInitializer()Deprecated.
-
-
-
Field Detail
-
EMPTY_HEADERS
@Deprecated private static final EmptyHttpHeaders EMPTY_HEADERS
Deprecated.The instance is instantiated here to break the cyclic static initialization betweenEmptyHttpHeadersandHttpHeaders. The issue is that if someone accessesEmptyHttpHeaders.INSTANCEbeforeHttpHeaders.EMPTY_HEADERSthenHttpHeaders.EMPTY_HEADERSwill benull.
-
-