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
This commit is contained in:
Norman Maurer 2020-03-05 12:42:46 +01:00 committed by GitHub
parent 7b946a781e
commit 65b1713ce7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ import static io.netty.util.internal.ObjectUtil.checkNotNull;
public final class ProtocolDetectionResult<T> {
@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<T> {
*/
@SuppressWarnings("unchecked")
public static <T> ProtocolDetectionResult<T> needsMoreData() {
return NEEDS_MORE_DATE;
return NEEDS_MORE_DATA;
}
/**