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.
This commit is contained in:
Oliver Drotbohm
2018-12-21 14:32:02 +01:00
parent 5f4abe70f3
commit 7900ca8657

View File

@@ -95,7 +95,7 @@ public class ConfigurableHttpMethods implements HttpMethods {
* @param methods must not be {@literal null}.
* @return
*/
public HttpMethods enable(HttpMethod... methods) {
public ConfigurableHttpMethods enable(HttpMethod... methods) {
Assert.notNull(methods, "HttpMethods must not be null!");