File tree Expand file tree Collapse file tree 5 files changed +19
-4
lines changed
java/ql/src/semmle/code/java/frameworks Expand file tree Collapse file tree 5 files changed +19
-4
lines changed Original file line number Diff line number Diff line change 1
1
import java
2
2
import spring.SpringController
3
- import spring.SpringWeb
3
+ import spring.SpringWeb
Original file line number Diff line number Diff line change @@ -154,12 +154,14 @@ class SpringServletInputAnnotation extends Annotation {
154
154
}
155
155
}
156
156
157
+ /** An annotation of the type `org.springframework.web.bind.annotation.ModelAttribute`. */
157
158
class SpringModelAttributeAnnotation extends Annotation {
158
159
SpringModelAttributeAnnotation ( ) {
159
160
getType ( ) .hasQualifiedName ( "org.springframework.web.bind.annotation" , "ModelAttribute" )
160
161
}
161
162
}
162
163
164
+ /** A parameter of a `SpringRequestMappingMethod`. */
163
165
class SpringRequestMappingParameter extends Parameter {
164
166
SpringRequestMappingParameter ( ) { getCallable ( ) instanceof SpringRequestMappingMethod }
165
167
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Provides classes for working with Spring classes and interfaces from
3
+ * `org.springframework.http`.
4
+ */
5
+
1
6
import java
2
7
3
8
/** The class `org.springframework.http.HttpEntity` or an instantiation of it. */
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Provides classes for working with Spring web requests.
3
+ */
4
+
1
5
import java
2
6
3
7
/** An interface for web requests in the Spring framework. */
4
8
class SpringWebRequest extends Class {
5
9
SpringWebRequest ( ) {
6
- hasQualifiedName ( "org.springframework.web.context.request" , "WebRequest" )
10
+ this . hasQualifiedName ( "org.springframework.web.context.request" , "WebRequest" )
7
11
}
8
12
}
9
13
10
14
/** An interface for web requests in the Spring framework. */
11
15
class SpringNativeWebRequest extends Class {
12
16
SpringNativeWebRequest ( ) {
13
- hasQualifiedName ( "org.springframework.web.context.request" , "NativeWebRequest" )
17
+ this . hasQualifiedName ( "org.springframework.web.context.request" , "NativeWebRequest" )
14
18
}
15
- }
19
+ }
Original file line number Diff line number Diff line change
1
+ /**
2
+ * Provides classes for working with Spring web clients.
3
+ */
4
+
1
5
import java
2
6
import SpringHttp
3
7
You can’t perform that action at this time.
0 commit comments