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
parent 7eadca1eeb
commit 3537dc79b9

View File

@ -25,7 +25,7 @@ import static java.util.Objects.requireNonNull;
public final class ProtocolDetectionResult<T> { public final class ProtocolDetectionResult<T> {
@SuppressWarnings({ "rawtypes", "unchecked" }) @SuppressWarnings({ "rawtypes", "unchecked" })
private static final ProtocolDetectionResult NEEDS_MORE_DATE = private static final ProtocolDetectionResult NEEDS_MORE_DATA =
new ProtocolDetectionResult(ProtocolDetectionState.NEEDS_MORE_DATA, null); new ProtocolDetectionResult(ProtocolDetectionState.NEEDS_MORE_DATA, null);
@SuppressWarnings({ "rawtypes", "unchecked" }) @SuppressWarnings({ "rawtypes", "unchecked" })
private static final ProtocolDetectionResult INVALID = private static final ProtocolDetectionResult INVALID =
@ -39,7 +39,7 @@ public final class ProtocolDetectionResult<T> {
*/ */
@SuppressWarnings("unchecked") @SuppressWarnings("unchecked")
public static <T> ProtocolDetectionResult<T> needsMoreData() { public static <T> ProtocolDetectionResult<T> needsMoreData() {
return NEEDS_MORE_DATE; return NEEDS_MORE_DATA;
} }
/** /**