Remove "with" methods in ProblemDetail

ProblemDetail is intended to be extended with additional fields. This
commit removes its "with" methods for chained initialization to keep
it as plain as possible and avoid imposing a particular style on
subclasses.

See gh-27052
This commit is contained in:
rstoyanchev
2022-06-24 11:08:32 +01:00
parent c139f3d526
commit 98c7d8100d
7 changed files with 25 additions and 79 deletions

View File

@@ -434,7 +434,8 @@ public class RequestResponseBodyMethodProcessorTests {
"\"title\":\"Bad Request\"," +
"\"status\":400," +
"\"detail\":null," +
"\"instance\":\"/path\"}");
"\"instance\":\"/path\"," +
"\"properties\":null}");
}
@Test // SPR-13135