Java: Rename Annotation value predicates

This commit is contained in:
Marcono1234
2022-03-27 23:09:35 +02:00
committed by Chris Smowton
parent c226758889
commit b96061aa7e
10 changed files with 19 additions and 18 deletions

View File

@@ -47,7 +47,7 @@ class SpringControllerRequestMappingGetMethod extends SpringControllerGetMethod
.getType()
.hasQualifiedName("org.springframework.web.bind.annotation", "RequestMapping") and
(
this.getAnAnnotation().getValueEnumConstant("method").getName() = "GET" or
this.getAnAnnotation().getEnumConstantValue("method").getName() = "GET" or
this.getAnAnnotation().getValue("method").(ArrayInit).getSize() = 0 //Java code example: @RequestMapping(value = "test")
) and
not this.getAParamType().getName() = "MultipartFile"