Make ProblemDetail Serializable
This commit makes the `ProblemDetail` type implement `Serializable` in order to be serialized and shared in distributed systems. Closes gh-34409
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2002-2023 the original author or authors.
|
* Copyright 2002-2025 the original author or authors.
|
||||||
*
|
*
|
||||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||||
* you may not use this file except in compliance with the License.
|
* you may not use this file except in compliance with the License.
|
||||||
@@ -16,6 +16,7 @@
|
|||||||
|
|
||||||
package org.springframework.http;
|
package org.springframework.http;
|
||||||
|
|
||||||
|
import java.io.Serializable;
|
||||||
import java.net.URI;
|
import java.net.URI;
|
||||||
import java.util.LinkedHashMap;
|
import java.util.LinkedHashMap;
|
||||||
import java.util.Map;
|
import java.util.Map;
|
||||||
@@ -49,7 +50,9 @@ import org.springframework.util.ObjectUtils;
|
|||||||
* @see org.springframework.web.ErrorResponse
|
* @see org.springframework.web.ErrorResponse
|
||||||
* @see org.springframework.web.ErrorResponseException
|
* @see org.springframework.web.ErrorResponseException
|
||||||
*/
|
*/
|
||||||
public class ProblemDetail {
|
public class ProblemDetail implements Serializable {
|
||||||
|
|
||||||
|
private static final long serialVersionUID = 3307761915842206538L;
|
||||||
|
|
||||||
private static final URI BLANK_TYPE = URI.create("about:blank");
|
private static final URI BLANK_TYPE = URI.create("about:blank");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user