Skip to content

Commit 33f7d52

Browse files
committed
Naming Fixes
1 parent ddc544a commit 33f7d52

3 files changed

Lines changed: 6 additions & 6 deletions

File tree

java/ql/src/semmle/code/java/frameworks/play/PlayController.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class PlayControllerActionMethod extends Method {
3535
this = controller.getAMethod() and
3636
(
3737
this.getReturnType() instanceof PlayAsyncResultPromise or
38-
this.getReturnType() instanceof PlayMVCResult or
38+
this.getReturnType() instanceof PlayMVCResultClass or
3939
this.getReturnType() instanceof PlayAsyncResultCompletionStage
4040
)
4141
)

java/ql/src/semmle/code/java/frameworks/play/PlayMVCResult.qll

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ import java
66
* @description Gets the play.mvc.Result class - Used to set a HTTP result with a status code, a set of HTTP headers and a body to be sent to the web client.
77
* (https://www.playframework.com/documentation/2.8.x/JavaActions)
88
*/
9-
class PlayMVCResult extends Class {
10-
PlayMVCResult() { this.hasQualifiedName("play.mvc", "Result") }
9+
class PlayMVCResultClass extends Class {
10+
PlayMVCResultClass() { this.hasQualifiedName("play.mvc", "Result") }
1111
}

java/ql/src/semmle/code/java/frameworks/play/PlayMVCResults.qll

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import java
66
* @description Gets the play.mvc.Results class - Helper utilities to generate results
77
* (https://www.playframework.com/documentation/2.8.x/JavaActions)
88
*/
9-
class PlayMVCResults extends Class {
10-
PlayMVCResults() { this.hasQualifiedName("play.mvc", "Results") }
9+
class PlayMVCResultsClass extends Class {
10+
PlayMVCResultsClass() { this.hasQualifiedName("play.mvc", "Results") }
1111
}
1212

1313
/**
@@ -17,7 +17,7 @@ class PlayMVCResults extends Class {
1717
* (https://www.playframework.com/documentation/2.5.8/api/java/play/mvc/Results.html)
1818
*/
1919
class PlayHTTPResultsMethods extends Method {
20-
PlayHTTPResultsMethods() { this.getDeclaringType() instanceof PlayMVCResults }
20+
PlayHTTPResultsMethods() { this.getDeclaringType() instanceof PlayMVCResultsClass }
2121

2222
/**
2323
* Gets all references to play.mvc.Results ok method

0 commit comments

Comments
 (0)