ok2c commented on code in PR #737:
URL:
https://github.com/apache/httpcomponents-client/pull/737#discussion_r2424887448
##########
httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/ContentCodecRegistry.java:
##########
@@ -62,15 +73,14 @@ private static Map<ContentCoding, Codec> build() {
m.put(ContentCoding.GZIP,
new Codec(
- // encoder
org.apache.hc.client5.http.entity.GzipCompressingEntity::new,
Review Comment:
@arturobernalg There is no need to use a fully qualified class name. It can
be imported
##########
httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/ContentCodecRegistry.java:
##########
@@ -62,15 +73,14 @@ private static Map<ContentCoding, Codec> build() {
m.put(ContentCoding.GZIP,
new Codec(
- // encoder
org.apache.hc.client5.http.entity.GzipCompressingEntity::new,
ent -> new DecompressingEntity(ent,
GZIPInputStream::new)));
m.put(ContentCoding.DEFLATE,
new Codec(
org.apache.hc.client5.http.entity.DeflateCompressingEntity::new,
Review Comment:
@arturobernalg Same.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]