Skip to content

Commit 10f4ad1

Browse files
authored
Assert fixed in DefaultErrorResponseBuilder
Fixed assert on wrong constructor fields
1 parent 9457ed3 commit 10f4ad1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spring-web/src/main/java/org/springframework/web/DefaultErrorResponseBuilder.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ final class DefaultErrorResponseBuilder implements ErrorResponse.Builder {
5353

5454
DefaultErrorResponseBuilder(Throwable ex, HttpStatusCode statusCode, String detail) {
5555
Assert.notNull(ex, "Throwable is required");
56-
Assert.notNull(ex, "HttpStatusCode is required");
57-
Assert.notNull(ex, "`detail` is required");
56+
Assert.notNull(statusCode, "HttpStatusCode is required");
57+
Assert.notNull(detail, "`detail` is required");
5858
this.exception = ex;
5959
this.statusCode = statusCode;
6060
this.problemDetail = ProblemDetail.forStatusAndDetail(statusCode, detail);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy