Skip to content

Commit da90390

Browse files
committed
Fix Javadoc reference to MediaType#APPLICATION_CBOR_VALUE
{@value ...} cannot be used outside of the current type.
1 parent aa0a8d6 commit da90390

File tree

1 file changed

+15
-12
lines changed

1 file changed

+15
-12
lines changed

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

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2017 the original author or authors.
2+
* Copyright 2002-2019 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -25,15 +25,17 @@
2525
import org.springframework.util.Assert;
2626

2727
/**
28-
* Implementation of {@link org.springframework.http.converter.HttpMessageConverter HttpMessageConverter}
29-
* that can read and write <a href="https://cbor.io/">CBOR</a> data format using
30-
* <a href="https://github.com/FasterXML/jackson-dataformats-binary/tree/master/cbor">
28+
* Implementation of {@link org.springframework.http.converter.HttpMessageConverter
29+
* HttpMessageConverter} that can read and write the <a href="https://cbor.io/">CBOR</a>
30+
* data format using <a href="https://github.com/FasterXML/jackson-dataformats-binary/tree/master/cbor">
3131
* the dedicated Jackson 2.x extension</a>.
3232
*
33-
* <p>By default, this converter supports {@value MediaType#APPLICATION_CBOR_VALUE} media type. This can be
34-
* overridden by setting the {@link #setSupportedMediaTypes supportedMediaTypes} property.
33+
* <p>By default, this converter supports the {@link MediaType#APPLICATION_CBOR_VALUE}
34+
* media type. This can be overridden by setting the {@link #setSupportedMediaTypes
35+
* supportedMediaTypes} property.
3536
*
36-
* <p>The default constructor uses the default configuration provided by {@link Jackson2ObjectMapperBuilder}.
37+
* <p>The default constructor uses the default configuration provided by
38+
* {@link Jackson2ObjectMapperBuilder}.
3739
*
3840
* <p>Compatible with Jackson 2.9 and higher.
3941
*
@@ -43,17 +45,18 @@
4345
public class MappingJackson2CborHttpMessageConverter extends AbstractJackson2HttpMessageConverter {
4446

4547
/**
46-
* Construct a new {@code MappingJackson2CborHttpMessageConverter} using default configuration
47-
* provided by {@code Jackson2ObjectMapperBuilder}.
48+
* Construct a new {@code MappingJackson2CborHttpMessageConverter} using the
49+
* default configuration provided by {@code Jackson2ObjectMapperBuilder}.
4850
*/
4951
public MappingJackson2CborHttpMessageConverter() {
5052
this(Jackson2ObjectMapperBuilder.cbor().build());
5153
}
5254

5355
/**
54-
* Construct a new {@code MappingJackson2CborHttpMessageConverter} with a custom {@link ObjectMapper}
55-
* (must be configured with a {@code CBORFactory} instance).
56-
* You can use {@link Jackson2ObjectMapperBuilder} to build it easily.
56+
* Construct a new {@code MappingJackson2CborHttpMessageConverter} with a
57+
* custom {@link ObjectMapper} (must be configured with a {@code CBORFactory}
58+
* instance).
59+
* <p>You can use {@link Jackson2ObjectMapperBuilder} to build it easily.
5760
* @see Jackson2ObjectMapperBuilder#cbor()
5861
*/
5962
public MappingJackson2CborHttpMessageConverter(ObjectMapper objectMapper) {

0 commit comments

Comments
 (0)