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 4e1de6a1db..c4d2cbefaf 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 @@ -27,6 +27,8 @@ import java.util.concurrent.ThreadLocalRandom; */ 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 { @@ -40,6 +42,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 {