From 3537dc79b9d5d858df787f4777e0c648cfd74dc7 Mon Sep 17 00:00:00 2001 From: Norman Maurer Date: Thu, 5 Mar 2020 12:42:46 +0100 Subject: [PATCH] Update ProtocolDetectionResult to fix typo (#10086) Motivation: Correct a typo. Modification: Changed a name of a private constant variable, 'NEEDS_MORE_DATE' to 'NEEDS_MORE_DATA' Result: Cleanup --- .../java/io/netty/handler/codec/ProtocolDetectionResult.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/codec/src/main/java/io/netty/handler/codec/ProtocolDetectionResult.java b/codec/src/main/java/io/netty/handler/codec/ProtocolDetectionResult.java index 1f967c9c0a..e7fd113cd5 100644 --- a/codec/src/main/java/io/netty/handler/codec/ProtocolDetectionResult.java +++ b/codec/src/main/java/io/netty/handler/codec/ProtocolDetectionResult.java @@ -25,7 +25,7 @@ import static java.util.Objects.requireNonNull; public final class ProtocolDetectionResult { @SuppressWarnings({ "rawtypes", "unchecked" }) - private static final ProtocolDetectionResult NEEDS_MORE_DATE = + private static final ProtocolDetectionResult NEEDS_MORE_DATA = new ProtocolDetectionResult(ProtocolDetectionState.NEEDS_MORE_DATA, null); @SuppressWarnings({ "rawtypes", "unchecked" }) private static final ProtocolDetectionResult INVALID = @@ -39,7 +39,7 @@ public final class ProtocolDetectionResult { */ @SuppressWarnings("unchecked") public static ProtocolDetectionResult needsMoreData() { - return NEEDS_MORE_DATE; + return NEEDS_MORE_DATA; } /**