From ad121c73b0e508b889e280c0315f54e55b451188 Mon Sep 17 00:00:00 2001 From: Trustin Lee Date: Sat, 8 Feb 2014 08:50:27 -0800 Subject: [PATCH] Prefer interface to implementation in type declaration This fixes the build failure with JDK 8 due to animal sniffer error --- .../handler/codec/http/multipart/DefaultHttpDataFactory.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/multipart/DefaultHttpDataFactory.java b/codec-http/src/main/java/io/netty/handler/codec/http/multipart/DefaultHttpDataFactory.java index ec05f5b0ac..202ec3851c 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/multipart/DefaultHttpDataFactory.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/multipart/DefaultHttpDataFactory.java @@ -23,7 +23,7 @@ import java.io.IOException; import java.nio.charset.Charset; import java.util.ArrayList; import java.util.List; -import java.util.concurrent.ConcurrentMap; +import java.util.Map; /** * Default factory giving Attribute and FileUpload according to constructor @@ -57,8 +57,7 @@ public class DefaultHttpDataFactory implements HttpDataFactory { /** * Keep all HttpDatas until cleanAllHttpData() is called. */ - private final ConcurrentMap> requestFileDeleteMap = - PlatformDependent.newConcurrentHashMap(); + private final Map> requestFileDeleteMap = PlatformDependent.newConcurrentHashMap(); /** * HttpData will be in memory if less than default size (16KB).