In the past, the HttpMethod was an enum that offered values() method. Currently the only way to get those values goes through a given value, like e.g. HttpMethod.GET.all() and that's quite strange. It looks like all() method in HttpMethod misses static keyword:
public Set<HttpMethod> all(){
return new HashSet<>(REGISTRY.values());
}
Is it supposed to be like that?
In the past, the
HttpMethodwas an enum that offeredvalues()method. Currently the only way to get those values goes through a given value, like e.g.HttpMethod.GET.all()and that's quite strange. It looks likeall()method inHttpMethodmissesstatickeyword:Is it supposed to be like that?