Deprecate SpringRequestMappingMethod.getValue (which didn't work)

This commit is contained in:
Owen Mansel-Chan
2025-05-22 12:23:04 +01:00
parent 708bbe391e
commit 59d4f039d8

View File

@@ -153,10 +153,8 @@ class SpringRequestMappingMethod extends SpringControllerMethod {
result = this.getProducesExpr().(CompileTimeConstantExpr).getStringValue()
}
/** Gets the "value" @RequestMapping annotation value, if present. */
string getValue() { result = requestMappingAnnotation.getStringValue("value") }
/** DEPRECATED: Use `getAValue()` instead. */
deprecated string getValue() { result = requestMappingAnnotation.getStringValue("value") }
/** Gets the "value" @RequestMapping annotation array string value, if present. */
string getAValue() { result = requestMappingAnnotation.getAStringArrayValue("value") }