Skip to content

Commit 8a29bfb

Browse files
committed
Polishing external contribution
1 parent 0c817f0 commit 8a29bfb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

spring-webmvc/src/main/java/org/springframework/web/servlet/function/DefaultEntityResponseBuilder.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2022 the original author or authors.
2+
* Copyright 2002-2023 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -508,14 +508,14 @@ public NoContentLengthResponseWrapper(HttpServletResponse response) {
508508

509509
@Override
510510
public void addIntHeader(String name, int value) {
511-
if (name!=null && !HttpHeaders.CONTENT_LENGTH.equals(name)) {
511+
if (!HttpHeaders.CONTENT_LENGTH.equals(name)) {
512512
super.addIntHeader(name, value);
513513
}
514514
}
515515

516516
@Override
517517
public void addHeader(String name, String value) {
518-
if (name!= null && !HttpHeaders.CONTENT_LENGTH.equals(name)) {
518+
if (!HttpHeaders.CONTENT_LENGTH.equals(name)) {
519519
super.addHeader(name, value);
520520
}
521521
}

0 commit comments

Comments
 (0)