@@ -19,7 +19,7 @@ class SpringControllerAnnotation extends AnnotationType {
19
19
/**
20
20
* An annotation type that identifies Spring rest controllers.
21
21
*
22
- * Rest controllers are the same as controllers, but imply the @ResponseBody annotation.
22
+ * Rest controllers are the same as controllers, but imply the ` @ResponseBody` annotation.
23
23
*/
24
24
class SpringRestControllerAnnotation extends SpringControllerAnnotation {
25
25
SpringRestControllerAnnotation ( ) { hasName ( "RestController" ) }
@@ -78,7 +78,7 @@ class SpringInitBinderMethod extends SpringControllerMethod {
78
78
}
79
79
80
80
/**
81
- * An `AnnotationType` which is used to indicate a `RequestMapping`.
81
+ * An `AnnotationType` that is used to indicate a `RequestMapping`.
82
82
*/
83
83
class SpringRequestMappingAnnotationType extends AnnotationType {
84
84
SpringRequestMappingAnnotationType ( ) {
@@ -91,7 +91,7 @@ class SpringRequestMappingAnnotationType extends AnnotationType {
91
91
}
92
92
93
93
/**
94
- * An `AnnotationType` which is used to indicate a `ResponseBody`.
94
+ * An `AnnotationType` that is used to indicate a `ResponseBody`.
95
95
*/
96
96
class SpringResponseBodyAnnotationType extends AnnotationType {
97
97
SpringResponseBodyAnnotationType ( ) {
@@ -126,12 +126,10 @@ class SpringRequestMappingMethod extends SpringControllerMethod {
126
126
requestMappingAnnotation .getValue ( "produces" ) .( CompileTimeConstantExpr ) .getStringValue ( )
127
127
}
128
128
129
- /** Holds if this is considered an @ResponseBody method. */
129
+ /** Holds if this is considered an ` @ResponseBody` method. */
130
130
predicate isResponseBody ( ) {
131
- getAnAnnotation ( ) .getType ( ) instanceof SpringResponseBodyAnnotationType
132
- or
133
- getDeclaringType ( ) .getAnAnnotation ( ) .getType ( ) instanceof SpringResponseBodyAnnotationType
134
- or
131
+ getAnAnnotation ( ) .getType ( ) instanceof SpringResponseBodyAnnotationType or
132
+ getDeclaringType ( ) .getAnAnnotation ( ) .getType ( ) instanceof SpringResponseBodyAnnotationType or
135
133
getDeclaringType ( ) instanceof SpringRestController
136
134
}
137
135
}
@@ -242,13 +240,13 @@ class SpringRequestMappingParameter extends Parameter {
242
240
not isImplicitRequestParam ( )
243
241
}
244
242
245
- /** Holds if this is an explicit or implicit @ModelAttribute parameter */
243
+ /** Holds if this is an explicit or implicit ` @ModelAttribute` parameter. */
246
244
predicate isModelAttribute ( ) {
247
245
isImplicitModelAttribute ( ) or
248
246
getAnAnnotation ( ) instanceof SpringModelAttributeAnnotation
249
247
}
250
248
251
- /** Holds if the input is tainted */
249
+ /** Holds if the input is tainted. */
252
250
predicate isTaintedInput ( ) {
253
251
isExplicitlyTaintedInput ( )
254
252
or
@@ -329,7 +327,7 @@ private RefType stripType(Type t) {
329
327
/**
330
328
* A user data type that may be populated from an HTTP request.
331
329
*
332
- * This includes types directly referred to as either @ModelAttribute or @RequestBody parameters,
330
+ * This includes types directly referred to as either ` @ModelAttribute` or ` @RequestBody` parameters,
333
331
* or types that are referred to by those types.
334
332
*/
335
333
class SpringUntrustedDataType extends RefType {
0 commit comments