Skip to content

Commit 59d4f03

Browse files
committed
Deprecate SpringRequestMappingMethod.getValue (which didn't work)
1 parent 708bbe3 commit 59d4f03

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

java/ql/lib/semmle/code/java/frameworks/spring/SpringController.qll

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -153,10 +153,8 @@ class SpringRequestMappingMethod extends SpringControllerMethod {
153153
result = this.getProducesExpr().(CompileTimeConstantExpr).getStringValue()
154154
}
155155

156-
/** Gets the "value" @RequestMapping annotation value, if present. */
157-
string getValue() { result = requestMappingAnnotation.getStringValue("value") }
158-
159-
156+
/** DEPRECATED: Use `getAValue()` instead. */
157+
deprecated string getValue() { result = requestMappingAnnotation.getStringValue("value") }
160158

161159
/** Gets the "value" @RequestMapping annotation array string value, if present. */
162160
string getAValue() { result = requestMappingAnnotation.getAStringArrayValue("value") }

0 commit comments

Comments
 (0)