Merge pull request #32157 from jee14
* pr/32157: Upgrade copyright year of changed file Wrap ternary operator within parantheses Closes gh-32157
This commit is contained in:
commit
3a518b60e7
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright 2002-2023 the original author or authors.
|
||||
* Copyright 2002-2024 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue