From b5f297f53c739d91cdf340b2b8787696a0573f75 Mon Sep 17 00:00:00 2001 From: Daniel Le Date: Fri, 9 Aug 2019 13:25:09 +0800 Subject: [PATCH] Fix */* in Javadoc " {@code} {@code text } Equivalent to {@literal text }. Displays text in code font without interpreting the text as HTML markup or nested Javadoc tags. " https://docs.oracle.com/en/java/javase/12/docs/specs/doc-comment-spec.html This is why {@code */*} isn't rendered as */* as expected. --- .../http/converter/ByteArrayHttpMessageConverter.java | 2 +- .../http/converter/StringHttpMessageConverter.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spring-web/src/main/java/org/springframework/http/converter/ByteArrayHttpMessageConverter.java b/spring-web/src/main/java/org/springframework/http/converter/ByteArrayHttpMessageConverter.java index 43d1f7ed30fc..648f2406bd9d 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/ByteArrayHttpMessageConverter.java +++ b/spring-web/src/main/java/org/springframework/http/converter/ByteArrayHttpMessageConverter.java @@ -28,7 +28,7 @@ /** * Implementation of {@link HttpMessageConverter} that can read and write byte arrays. * - *

By default, this converter supports all media types ({@code */*}), and + *

By default, this converter supports all media types (*/*), and * writes with a {@code Content-Type} of {@code application/octet-stream}. This can be * overridden by setting the {@link #setSupportedMediaTypes supportedMediaTypes} property. * diff --git a/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java b/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java index 49aace6e560a..d1365943a5a8 100644 --- a/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java +++ b/spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java @@ -33,7 +33,7 @@ /** * Implementation of {@link HttpMessageConverter} that can read and write strings. * - *

By default, this converter supports all media types ({@code */*}), + *

By default, this converter supports all media types (*/*), * and writes with a {@code Content-Type} of {@code text/plain}. This can be overridden * by setting the {@link #setSupportedMediaTypes supportedMediaTypes} property. *