Browse Source

Fix attribute return types in @PutExchange

The return types for the `value` and `url` attributes don't match those
in `@HttpExchange`.

See gh-28498
pull/28503/head
Sam Brannen 4 years ago
parent
commit
ea9b1fccbd
  1. 4
      spring-web/src/main/java/org/springframework/web/service/annotation/PutExchange.java

4
spring-web/src/main/java/org/springframework/web/service/annotation/PutExchange.java

@ -40,13 +40,13 @@ public @interface PutExchange { @@ -40,13 +40,13 @@ public @interface PutExchange {
* Alias for {@link HttpExchange#value}.
*/
@AliasFor(annotation = HttpExchange.class)
String[] value() default {};
String value() default "";
/**
* Alias for {@link HttpExchange#url()}.
*/
@AliasFor(annotation = HttpExchange.class)
String[] url() default {};
String url() default "";
/**
* Alias for {@link HttpExchange#contentType()}.

Loading…
Cancel
Save