This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new f4adae2 Code clean-up: Add braces for clarity
f4adae2 is described below
commit f4adae24c82a69ff57b8079bb35f0c117304513d
Author: Mark Thomas <[email protected]>
AuthorDate: Mon May 24 11:53:59 2021 +0100
Code clean-up: Add braces for clarity
Trivial commit to trigger a CI build to test CI changes
---
java/jakarta/servlet/http/HttpServlet.java | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/java/jakarta/servlet/http/HttpServlet.java
b/java/jakarta/servlet/http/HttpServlet.java
index ba98853..15ad35c 100644
--- a/java/jakarta/servlet/http/HttpServlet.java
+++ b/java/jakarta/servlet/http/HttpServlet.java
@@ -725,10 +725,12 @@ public abstract class HttpServlet extends GenericServlet {
*/
private void maybeSetLastModified(HttpServletResponse resp,
long lastModified) {
- if (resp.containsHeader(HEADER_LASTMOD))
+ if (resp.containsHeader(HEADER_LASTMOD)) {
return;
- if (lastModified >= 0)
+ }
+ if (lastModified >= 0) {
resp.setDateHeader(HEADER_LASTMOD, lastModified);
+ }
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]