private boolean isGetMethod() {
if (requestMapping == null) return false;
RequestMethod[] method = requestMapping.method();
return method.length == 1 && method[0] == RequestMethod.GET;
}
<BUG>private boolean hasNoneMethodsOrPostMethod() {
if (requestMapping == null) return true;</BUG>
RequestMethod[] method = requestMapping.method();
if (method.length == 0) return true;
return method.length == 1 && method[0] == RequestMethod.POST;

private boolean isGetMethod() {
if (requestMapping == null) return false;
RequestMethod[] method = requestMapping.method();
return method.length == 1 && method[0] == RequestMethod.GET;
}
private boolean isPostMethodOrNone() {
if (requestMapping == null) return true;
RequestMethod[] method = requestMapping.method();
if (method.length == 0) return true;
return method.length == 1 && method[0] == RequestMethod.POST;
