From c44f365ee7784dd3af2ecec73ed18b8f6239f674 Mon Sep 17 00:00:00 2001 From: norman Date: Mon, 16 Apr 2012 10:43:21 +0200 Subject: [PATCH] Add some javadocs notes that explain the behavior of CookieEncoder.encode(). See #94 --- .../main/java/io/netty/handler/codec/http/CookieEncoder.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/codec-http/src/main/java/io/netty/handler/codec/http/CookieEncoder.java b/codec-http/src/main/java/io/netty/handler/codec/http/CookieEncoder.java index a8de9a8e46..1675344b50 100644 --- a/codec-http/src/main/java/io/netty/handler/codec/http/CookieEncoder.java +++ b/codec-http/src/main/java/io/netty/handler/codec/http/CookieEncoder.java @@ -82,6 +82,8 @@ public class CookieEncoder { * Encodes the {@link Cookie}s which were added by {@link #addCookie(Cookie)} * so far into an HTTP header value. If no {@link Cookie}s were added, * an empty string is returned. + * + * Be aware that calling this method will clear the contends of the {@link CookieEncoder} */ public String encode() { String answer;