Skip to content

Commit 7900ca8

Browse files
committed
DATAREST-1324 - Fixed return type of ConfigurableHttpMethods.enable(…).
We now also return ConfigurableHttpMethods from its ….enable(…) method to make sure it can be chained properly.
1 parent 5f4abe7 commit 7900ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-data-rest-core/src/main/java/org/springframework/data/rest/core/mapping/ConfigurableHttpMethods.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public ConfigurableHttpMethods disable(HttpMethod... methods) {
9595
* @param methods must not be {@literal null}.
9696
* @return
9797
*/
98-
public HttpMethods enable(HttpMethod... methods) {
98+
public ConfigurableHttpMethods enable(HttpMethod... methods) {
9999

100100
Assert.notNull(methods, "HttpMethods must not be null!");
101101

0 commit comments

Comments
 (0)