Skip to content

Commit ea9b1fc

Browse files
committed
Fix attribute return types in @PutExchange
The return types for the `value` and `url` attributes don't match those in `@HttpExchange`. See gh-28498
1 parent 163bad3 commit ea9b1fc

File tree

1 file changed

+2
-2
lines changed
  • spring-web/src/main/java/org/springframework/web/service/annotation

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
* Alias for {@link HttpExchange#value}.
4141
*/
4242
@AliasFor(annotation = HttpExchange.class)
43-
String[] value() default {};
43+
String value() default "";
4444

4545
/**
4646
* Alias for {@link HttpExchange#url()}.
4747
*/
4848
@AliasFor(annotation = HttpExchange.class)
49-
String[] url() default {};
49+
String url() default "";
5050

5151
/**
5252
* Alias for {@link HttpExchange#contentType()}.

0 commit comments

Comments
 (0)