Skip to content

Commit ccf70b6

Browse files
committed
Restore no-argument constructor for backward compatibility
Restores the public no-argument constructor removed in the previous commit. As noted in review feedback, removing public APIs constitutes a breaking change that should not occur in minor/patch releases. Signed-off-by: raccoonback <[email protected]>
1 parent e3b8172 commit ccf70b6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

spring-cloud-gateway-server-webmvc/src/main/java/org/springframework/cloud/gateway/server/mvc/invoke/convert/ConversionServiceParameterValueMapper.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import java.util.Objects;
2020

21+
import org.springframework.boot.convert.ApplicationConversionService;
2122
import org.springframework.cloud.gateway.server.mvc.invoke.OperationParameter;
2223
import org.springframework.cloud.gateway.server.mvc.invoke.ParameterMappingException;
2324
import org.springframework.cloud.gateway.server.mvc.invoke.ParameterValueMapper;
@@ -28,13 +29,19 @@
2829
*
2930
* @author Stephane Nicoll
3031
* @author Phillip Webb
31-
* @author raccoonback
3232
* @since 2.0.0
3333
*/
3434
public class ConversionServiceParameterValueMapper implements ParameterValueMapper {
3535

3636
private final ConversionService conversionService;
3737

38+
/**
39+
* Create a new {@link ConversionServiceParameterValueMapper} instance.
40+
*/
41+
public ConversionServiceParameterValueMapper() {
42+
this(ApplicationConversionService.getSharedInstance());
43+
}
44+
3845
/**
3946
* Create a new {@link ConversionServiceParameterValueMapper} instance backed by a
4047
* specific conversion service.

0 commit comments

Comments
 (0)