Skip to content

Commit

Permalink
Polishing contribution
Browse files Browse the repository at this point in the history
Closes gh-33594
  • Loading branch information
rstoyanchev committed Oct 8, 2024
1 parent 1ec9a11 commit c4b6a02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -44,33 +44,33 @@
* @since 6.0.5
*/
@JsonInclude(NON_EMPTY)
@JacksonXmlRootElement(localName = "problem", namespace = ProblemDetailJacksonXmlMixin.RFC_7807_NAMESPACE)
@JacksonXmlRootElement(localName = "problem", namespace = ProblemDetailJacksonXmlMixin.NAMESPACE)
public interface ProblemDetailJacksonXmlMixin {

/** RFC 7807 (obsoleted by RFC 9457) namespace. */
String RFC_7807_NAMESPACE = "urn:ietf:rfc:7807";
String NAMESPACE = "urn:ietf:rfc:7807";


@JacksonXmlProperty(namespace = RFC_7807_NAMESPACE)
@JacksonXmlProperty(namespace = NAMESPACE)
URI getType();

@JacksonXmlProperty(namespace = RFC_7807_NAMESPACE)
@JacksonXmlProperty(namespace = NAMESPACE)
String getTitle();

@JacksonXmlProperty(namespace = RFC_7807_NAMESPACE)
@JacksonXmlProperty(namespace = NAMESPACE)
int getStatus();

@JacksonXmlProperty(namespace = RFC_7807_NAMESPACE)
@JacksonXmlProperty(namespace = NAMESPACE)
String getDetail();

@JacksonXmlProperty(namespace = RFC_7807_NAMESPACE)
@JacksonXmlProperty(namespace = NAMESPACE)
URI getInstance();

@JsonAnySetter
void setProperty(String name, @Nullable Object value);

@JsonAnyGetter
@JacksonXmlProperty(namespace = RFC_7807_NAMESPACE)
@JacksonXmlProperty(namespace = NAMESPACE)
Map<String, Object> getProperties();

}
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ default ErrorResponse build(@Nullable MessageSource messageSource, Locale locale


/**
* Callback to perform an action before an RFC-7807 {@link ProblemDetail}
* Callback to perform an action before an RFC-9457 {@link ProblemDetail}
* response is rendered.
*
* @author Rossen Stoyanchev
Expand Down

0 comments on commit c4b6a02

Please sign in to comment.