From aa003f8fecee3eb74df0e17f7ac0c04c6053bc76 Mon Sep 17 00:00:00 2001 From: Adrian Antkowiak Date: Mon, 12 Jul 2021 11:55:39 +0200 Subject: [PATCH] HAProxyMessage.sourceAddress() can be null (#11475) Motivation: If `send-proxy-v2` is used `sourceAddress()` can be `null`. Modification: Update docs to reflect this. Result: Docs are more correct. --- .../java/io/netty/handler/codec/haproxy/HAProxyMessage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessage.java b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessage.java index ff92da3609..eefdbe607a 100644 --- a/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessage.java +++ b/codec-haproxy/src/main/java/io/netty/handler/codec/haproxy/HAProxyMessage.java @@ -501,7 +501,8 @@ public final class HAProxyMessage extends AbstractReferenceCounted { } /** - * Returns the human-readable source address of this {@link HAProxyMessage}. + * Returns the human-readable source address of this {@link HAProxyMessage} or {@code null} + * if HAProxy performs health check with {@code send-proxy-v2}. */ public String sourceAddress() { return sourceAddress;