Wrap ternary operator within parantheses

See gh-32157
This commit is contained in:
jee14 2024-01-30 16:32:41 +09:00 committed by Stéphane Nicoll
parent b55a4d3908
commit 6ffb74def3
1 changed files with 1 additions and 1 deletions

View File

@ -171,7 +171,7 @@ public final class ResponseCookie extends HttpCookie {
if (!this.maxAge.isNegative()) {
sb.append("; Max-Age=").append(this.maxAge.getSeconds());
sb.append("; Expires=");
long millis = this.maxAge.getSeconds() > 0 ? System.currentTimeMillis() + this.maxAge.toMillis() : 0;
long millis = (this.maxAge.getSeconds() > 0 ? System.currentTimeMillis() + this.maxAge.toMillis() : 0);
sb.append(HttpHeaders.formatDate(millis));
}
if (this.secure) {