netty5/codec-http2/src/main/java/io/netty/handler/codec/http2
Stephane Landelle ba95c401a7 Misc clean up
Motivation:
IntelliJ issues several warnings.

Modifications:

* `ClientCookieDecoder` and `ServerCookieDecoder`:
  * `nameEnd`, `valueBegin` and `valueEnd` don't need to be initialized
  * `keyValLoop` loop doesn't been to be labelled, as it's the most inner one (same thing for labelled breaks)
  * Remove `if (i != headerLen)` as condition is always true
* `ClientCookieEncoder` javadoc still mention old logic
* `DefaultCookie`, `ServerCookieEncoder` and `DefaultHttpHeaders` use ternary ops that can be turned into simple boolean ones
* `DefaultHeaders` uses a for(int) loop over an array. It can be turned into a foreach one as javac doesn't allocate an iterator to iterate over arrays
* `DefaultHttp2Headers` and `AbstractByteBuf` `equal` can be turned into a single boolean statement
Result:

Cleaner code
2016-11-22 15:17:05 -08:00
..
internal/hpack HTTP/2 HPACK Encoder remove unsued import 2016-10-17 09:25:49 -07:00
AbstractHttp2ConnectionHandlerBuilder.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
AbstractHttp2StreamChannel.java h2childchan: Ability to open outbound/local streams. Fixes #4913 2016-10-06 16:12:19 -07:00
AbstractHttp2StreamFrame.java h2childchan: Ability to open outbound/local streams. Fixes #4913 2016-10-06 16:12:19 -07:00
AbstractHttp2StreamStateEvent.java Split Http2MultiplexCodec into Frame- and MultiplexCodec + Tests. Fixes #4914 2016-06-29 07:22:09 +02:00
AbstractInboundHttp2ToHttpAdapterBuilder.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
CharSequenceMap.java Optimize HPACK usage to align more with Netty types and remove heavy object creations. Related to [#3597] 2016-06-22 14:26:05 +02:00
CompressorHttp2ConnectionEncoder.java Ensure the same ByteBufAllocator is used in the EmbeddedChannel when compress / decompress. Related to [#5294] 2016-05-31 09:08:33 +02:00
DecoratingHttp2ConnectionDecoder.java Http2ConnectionDecoder remove localSettings setter method 2016-08-10 12:23:03 -07:00
DecoratingHttp2ConnectionEncoder.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
DecoratingHttp2FrameWriter.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
DefaultHttp2Connection.java HTTP/2: Treat MAX_CONCURRENT_STREAMS exceeded as a stream error. 2016-08-17 14:47:15 +02:00
DefaultHttp2ConnectionDecoder.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
DefaultHttp2ConnectionEncoder.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
DefaultHttp2DataFrame.java h2childchan: Ability to open outbound/local streams. Fixes #4913 2016-10-06 16:12:19 -07:00
DefaultHttp2FrameReader.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
DefaultHttp2FrameWriter.java http2: Make MAX_HEADER_LIST_SIZE exceeded a stream error when encoding. 2016-10-17 09:24:06 -07:00
DefaultHttp2GoAwayFrame.java Split Http2MultiplexCodec into Frame- and MultiplexCodec + Tests. Fixes #4914 2016-06-29 07:22:09 +02:00
DefaultHttp2Headers.java Misc clean up 2016-11-22 15:17:05 -08:00
DefaultHttp2HeadersDecoder.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
DefaultHttp2HeadersEncoder.java http2: Make MAX_HEADER_LIST_SIZE exceeded a stream error when encoding. 2016-10-17 09:24:06 -07:00
DefaultHttp2HeadersFrame.java h2childchan: Ability to open outbound/local streams. Fixes #4913 2016-10-06 16:12:19 -07:00
DefaultHttp2LocalFlowController.java DefaultHttp2Connection.close Reentrant Modification 2016-05-09 14:16:30 -07:00
DefaultHttp2RemoteFlowController.java HTTP/2 limit streams in all states 2016-08-11 09:01:37 -07:00
DefaultHttp2ResetFrame.java h2childchan: Ability to open outbound/local streams. Fixes #4913 2016-10-06 16:12:19 -07:00
DefaultHttp2WindowUpdateFrame.java h2childchan: Ability to open outbound/local streams. Fixes #4913 2016-10-06 16:12:19 -07:00
DelegatingDecompressorFrameListener.java HTTP/2 DelegatingDecompressorFrameListener return bytes to flow control 2016-06-20 14:24:09 -07:00
EmptyHttp2Headers.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2ClientUpgradeCodec.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2Codec.java Allow non-default Http/2 server initial settings 2016-11-09 08:31:26 +01:00
Http2CodecUtil.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
Http2Connection.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
Http2ConnectionAdapter.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2ConnectionDecoder.java Http2ConnectionDecoder remove localSettings setter method 2016-08-10 12:23:03 -07:00
Http2ConnectionEncoder.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2ConnectionHandler.java Correctly release debugData and notify the promise when goAway was already sent 2016-10-14 10:57:18 +02:00
Http2ConnectionHandlerBuilder.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2DataFrame.java Split Http2MultiplexCodec into Frame- and MultiplexCodec + Tests. Fixes #4914 2016-06-29 07:22:09 +02:00
Http2DataWriter.java http2: count pad length field toward flow control. Fixes #5434 2016-06-25 09:51:36 -07:00
Http2Error.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2EventAdapter.java [#5862] Http2EventAdapter#onUnknownFrame(...) should throw Http2Exception 2016-09-29 14:22:13 +02:00
Http2Exception.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2Flags.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2FlowController.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
Http2Frame.java Split Http2MultiplexCodec into Frame- and MultiplexCodec + Tests. Fixes #4914 2016-06-29 07:22:09 +02:00
Http2FrameAdapter.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2FrameCodec.java Allow non-default Http/2 server initial settings 2016-11-09 08:31:26 +01:00
Http2FrameListener.java http2: count pad length field toward flow control. Fixes #5434 2016-06-25 09:51:36 -07:00
Http2FrameListenerDecorator.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2FrameLogger.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2FrameReader.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2FrameSizePolicy.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
Http2FrameTypes.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2FrameWriter.java http2: count pad length field toward flow control. Fixes #5434 2016-06-25 09:51:36 -07:00
Http2GoAwayFrame.java Split Http2MultiplexCodec into Frame- and MultiplexCodec + Tests. Fixes #4914 2016-06-29 07:22:09 +02:00
Http2Headers.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2HeadersDecoder.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
Http2HeadersEncoder.java http2: Make MAX_HEADER_LIST_SIZE exceeded a stream error when encoding. 2016-10-17 09:24:06 -07:00
Http2HeadersFrame.java Split Http2MultiplexCodec into Frame- and MultiplexCodec + Tests. Fixes #4914 2016-06-29 07:22:09 +02:00
Http2HeaderTable.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
Http2InboundFrameLogger.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2LifecycleManager.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2LocalFlowController.java http2: count pad length field toward flow control. Fixes #5434 2016-06-25 09:51:36 -07:00
Http2MultiplexCodec.java h2childchan: Ability to open outbound/local streams. Fixes #4913 2016-10-06 16:12:19 -07:00
Http2NoMoreStreamIdsException.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2OutboundFrameLogger.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2PromisedRequestVerifier.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2RemoteFlowController.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2ResetFrame.java Split Http2MultiplexCodec into Frame- and MultiplexCodec + Tests. Fixes #4914 2016-06-29 07:22:09 +02:00
Http2SecurityUtil.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2ServerDowngrader.java codec-http2: Mark requests as chunked in Http2ServerDowngrader 2016-09-15 15:58:40 -07:00
Http2ServerUpgradeCodec.java Clean-up unused imports 2016-09-30 09:08:50 +02:00
Http2Settings.java HTTP/2 Ensure default settings are correctly enforced and interfaces clarified 2016-10-07 13:00:45 -07:00
Http2Stream.java DefaultHttp2Connection.close Reentrant Modification 2016-05-09 14:16:30 -07:00
Http2StreamActiveEvent.java h2childchan: Ability to open outbound/local streams. Fixes #4913 2016-10-06 16:12:19 -07:00
Http2StreamChannelBootstrap.java h2childchan: Ability to open outbound/local streams. Fixes #4913 2016-10-06 16:12:19 -07:00
Http2StreamClosedEvent.java Split Http2MultiplexCodec into Frame- and MultiplexCodec + Tests. Fixes #4914 2016-06-29 07:22:09 +02:00
Http2StreamFrame.java h2childchan: Ability to open outbound/local streams. Fixes #4913 2016-10-06 16:12:19 -07:00
Http2StreamStateEvent.java Split Http2MultiplexCodec into Frame- and MultiplexCodec + Tests. Fixes #4914 2016-06-29 07:22:09 +02:00
Http2StreamVisitor.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
Http2WindowUpdateFrame.java Split Http2MultiplexCodec into Frame- and MultiplexCodec + Tests. Fixes #4914 2016-06-29 07:22:09 +02:00
HttpConversionUtil.java Http2 to Http1.1 converter on new Http2 server API 2016-05-09 13:24:46 -07:00
HttpToHttp2ConnectionHandler.java [#5866] HttpToHttp2ConnectionHandler / InboundHttp2ToHttpAdapter ignores STREAM_DEPENDENCY_ID and STREAM_WEIGHT. 2016-10-03 18:05:50 +02:00
HttpToHttp2ConnectionHandlerBuilder.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
InboundHttp2ToHttpAdapter.java Correctly add STREAM_WEIGHT header in InboundHttp2ToHttpAdapter.onPushPromiseRead(...) 2016-10-10 10:38:35 +02:00
InboundHttp2ToHttpAdapterBuilder.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
InboundHttp2ToHttpPriorityAdapter.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
InboundHttp2ToHttpPriorityAdapterBuilder.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
InboundHttpToHttp2Adapter.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
package-info.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
StreamBufferingEncoder.java Complete documentation of StreamBufferingEncoder. 2016-09-23 16:39:31 -07:00
StreamByteDistributor.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
UniformStreamByteDistributor.java [#5088] Add annotation which marks packages/interfaces/classes as unstable 2016-05-09 15:16:35 +02:00
WeightedFairQueueByteDistributor.java HTTP/2 WeightedFairQueueByteDistributor Bug 2016-11-14 16:40:13 -08:00