diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketUtil.java b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketUtil.java index 8699f6412c..f2805d9cfb 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketUtil.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/websocketx/WebSocketUtil.java @@ -31,6 +31,8 @@ import java.security.NoSuchAlgorithmException; */ final class WebSocketUtil { + // Suppress a warning about weak hash algorithm since it's defined in draft-ietf-hybi-thewebsocketprotocol-00 + @SuppressWarnings("lgtm[java/weak-cryptographic-algorithm]") private static final FastThreadLocal MD5 = new FastThreadLocal() { @Override protected MessageDigest initialValue() throws Exception { @@ -44,6 +46,8 @@ final class WebSocketUtil { } }; + // Suppress a warning about weak hash algorithm since it's defined in draft-ietf-hybi-thewebsocketprotocol-00 + @SuppressWarnings("lgtm[java/weak-cryptographic-algorithm]") private static final FastThreadLocal SHA1 = new FastThreadLocal() { @Override protected MessageDigest initialValue() throws Exception {