Skip to content

Commit 163bad3

Browse files
eddumelendezsbrannen
authored andcommitted
Fix attribute return types in @DeleteExchange and @PatchExchange
The return types for the `value` and `url` attributes don't match those in `@HttpExchange`. Closes gh-28498
1 parent d0afbe4 commit 163bad3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

spring-web/src/main/java/org/springframework/web/service/annotation/DeleteExchange.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()}.

spring-web/src/main/java/org/springframework/web/service/annotation/PatchExchange.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)