Skip to content

Commit 40df01d

Browse files
committed
Update qldoc and method name
1 parent dc79901 commit 40df01d

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

java/ql/src/experimental/Security/CWE/CWE-489/EJBMain.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Main Method in Enterprise Java Bean
3-
* @description Jave EE applications with a main method.
3+
* @description Java EE applications with a main method.
44
* @kind problem
55
* @id java/main-method-in-enterprise-bean
66
* @tags security

java/ql/src/experimental/Security/CWE/CWE-489/ServletMain.ql renamed to java/ql/src/experimental/Security/CWE/CWE-489/WebComponentMain.ql

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/**
22
* @name Main Method in Java EE Web Components
3-
* @description Jave EE web applications with a main method.
3+
* @description Java EE web applications with a main method.
44
* @kind problem
55
* @id java/main-method-in-web-components
66
* @tags security
@@ -27,9 +27,9 @@ class ServletListenerClass extends Class {
2727
}
2828
}
2929

30-
/** The `main` method in `Servlet`. */
31-
class ServletMainMethod extends Method {
32-
ServletMainMethod() {
30+
/** The `main` method in `Servlet` and `Action` of the Spring and Struts framework. */
31+
class WebComponentMainMethod extends Method {
32+
WebComponentMainMethod() {
3333
(
3434
this.getDeclaringType() instanceof ServletClass or
3535
this.getDeclaringType() instanceof ServletFilterClass or
@@ -59,5 +59,5 @@ class ServletMainMethod extends Method {
5959
}
6060
}
6161

62-
from ServletMainMethod sm
62+
from WebComponentMainMethod sm
6363
select sm, "Web application has a main method."
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
experimental/Security/CWE/CWE-489/ServletMain.ql
1+
experimental/Security/CWE/CWE-489/WebComponentMain.ql

0 commit comments

Comments
 (0)