Skip to content

Commit b5f297f

Browse files
Fix */* in Javadoc
" {@code} {@code text } Equivalent to <code>{@literal text }</code>. 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 &spring-projects#42;&spring-projects#47;&spring-projects#42;} isn't rendered as <code>*/*</code> as expected.
1 parent a532afb commit b5f297f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

spring-web/src/main/java/org/springframework/http/converter/ByteArrayHttpMessageConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
/**
2929
* Implementation of {@link HttpMessageConverter} that can read and write byte arrays.
3030
*
31-
* <p>By default, this converter supports all media types ({@code &#42;&#47;&#42;}), and
31+
* <p>By default, this converter supports all media types (<code>&#42;/&#42;</code>), and
3232
* writes with a {@code Content-Type} of {@code application/octet-stream}. This can be
3333
* overridden by setting the {@link #setSupportedMediaTypes supportedMediaTypes} property.
3434
*

spring-web/src/main/java/org/springframework/http/converter/StringHttpMessageConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
/**
3434
* Implementation of {@link HttpMessageConverter} that can read and write strings.
3535
*
36-
* <p>By default, this converter supports all media types ({@code &#42;&#47;&#42;}),
36+
* <p>By default, this converter supports all media types (<code>&#42;/&#42;</code>),
3737
* and writes with a {@code Content-Type} of {@code text/plain}. This can be overridden
3838
* by setting the {@link #setSupportedMediaTypes supportedMediaTypes} property.
3939
*

0 commit comments

Comments
 (0)