From d2db22b3115223770abb6b661954ff05aa9f8241 Mon Sep 17 00:00:00 2001 From: Francisco Montiel Date: Fri, 16 Sep 2016 15:23:59 +0200 Subject: [PATCH] Corrected javadoc of the Cookie persistent() method: - It was claiming that returns true if the cookie expires and the end of the session and really is the opposite behavior. --- okhttp/src/main/java/okhttp3/Cookie.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/okhttp/src/main/java/okhttp3/Cookie.java b/okhttp/src/main/java/okhttp3/Cookie.java index d52f306e9..df882c01a 100644 --- a/okhttp/src/main/java/okhttp3/Cookie.java +++ b/okhttp/src/main/java/okhttp3/Cookie.java @@ -100,7 +100,7 @@ public final class Cookie { return value; } - /** Returns true if this cookie expires at the end of the current session. */ + /** Returns true if this cookie does not expire at the end of the current session. */ public boolean persistent() { return persistent; }