Skip to content

Commit b06d1c7

Browse files
committed
Java: More qldoc and some formatting.
1 parent 5e9e7fe commit b06d1c7

File tree

5 files changed

+19
-4
lines changed

5 files changed

+19
-4
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
import java
22
import spring.SpringController
3-
import spring.SpringWeb
3+
import spring.SpringWeb

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,12 +154,14 @@ class SpringServletInputAnnotation extends Annotation {
154154
}
155155
}
156156

157+
/** An annotation of the type `org.springframework.web.bind.annotation.ModelAttribute`. */
157158
class SpringModelAttributeAnnotation extends Annotation {
158159
SpringModelAttributeAnnotation() {
159160
getType().hasQualifiedName("org.springframework.web.bind.annotation", "ModelAttribute")
160161
}
161162
}
162163

164+
/** A parameter of a `SpringRequestMappingMethod`. */
163165
class SpringRequestMappingParameter extends Parameter {
164166
SpringRequestMappingParameter() { getCallable() instanceof SpringRequestMappingMethod }
165167

java/ql/src/semmle/code/java/frameworks/spring/SpringHttp.qll

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
/**
2+
* Provides classes for working with Spring classes and interfaces from
3+
* `org.springframework.http`.
4+
*/
5+
16
import java
27

38
/** The class `org.springframework.http.HttpEntity` or an instantiation of it. */
Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,19 @@
1+
/**
2+
* Provides classes for working with Spring web requests.
3+
*/
4+
15
import java
26

37
/** An interface for web requests in the Spring framework. */
48
class SpringWebRequest extends Class {
59
SpringWebRequest() {
6-
hasQualifiedName("org.springframework.web.context.request", "WebRequest")
10+
this.hasQualifiedName("org.springframework.web.context.request", "WebRequest")
711
}
812
}
913

1014
/** An interface for web requests in the Spring framework. */
1115
class SpringNativeWebRequest extends Class {
1216
SpringNativeWebRequest() {
13-
hasQualifiedName("org.springframework.web.context.request", "NativeWebRequest")
17+
this.hasQualifiedName("org.springframework.web.context.request", "NativeWebRequest")
1418
}
15-
}
19+
}

java/ql/src/semmle/code/java/frameworks/spring/SpringWebClient.qll

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
/**
2+
* Provides classes for working with Spring web clients.
3+
*/
4+
15
import java
26
import SpringHttp
37

0 commit comments

Comments
 (0)