Skip to content

Commit ab58854

Browse files
committed
Remove full qualifier
1 parent 15290d1 commit ab58854

1 file changed

Lines changed: 4 additions & 7 deletions

File tree

httpclient5/src/main/java/org/apache/hc/client5/http/entity/compress/ContentCodecRegistry.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@
3737
import java.util.function.UnaryOperator;
3838
import java.util.zip.GZIPInputStream;
3939

40+
import org.apache.hc.client5.http.entity.DeflateCompressingEntity;
4041
import org.apache.hc.client5.http.entity.DeflateInputStream;
42+
import org.apache.hc.client5.http.entity.GzipCompressingEntity;
4143
import org.apache.hc.core5.annotation.Contract;
4244
import org.apache.hc.core5.annotation.Internal;
4345
import org.apache.hc.core5.annotation.ThreadingBehavior;
@@ -72,13 +74,8 @@ private static Map<ContentCoding, Codec> build() {
7274
final Map<ContentCoding, Codec> m = new EnumMap<>(ContentCoding.class);
7375

7476
m.put(ContentCoding.GZIP,
75-
new Codec(
76-
org.apache.hc.client5.http.entity.GzipCompressingEntity::new,
77-
ent -> new DecompressingEntity(ent, GZIPInputStream::new)));
78-
m.put(ContentCoding.DEFLATE,
79-
new Codec(
80-
org.apache.hc.client5.http.entity.DeflateCompressingEntity::new,
81-
ent -> new DecompressingEntity(ent, DeflateInputStream::new)));
77+
new Codec(GzipCompressingEntity::new, ent -> new DecompressingEntity(ent, GZIPInputStream::new)));
78+
m.put(ContentCoding.DEFLATE, new Codec(DeflateCompressingEntity::new, ent -> new DecompressingEntity(ent, DeflateInputStream::new)));
8279

8380
// 2) Commons-Compress (optional) — reflectively wired
8481
if (CommonsCompressSupport.isPresent()) {

0 commit comments

Comments
 (0)