We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9eb8ec7 commit 45f9125Copy full SHA for 45f9125
java/ql/src/experimental/Security/CWE/CWE-489/EJBMain.java
@@ -3,7 +3,7 @@ public class EJBMain implements SessionBean {
3
* Create the session bean (empty implementation)
4
*/
5
public void ejbCreate() throws javax.ejb.CreateException {
6
- System.out.println("ServiceBean:ejbCreate()");
+ System.out.println("EJBMain:ejbCreate()");
7
}
8
9
public void ejbActivate() throws javax.ejb.EJBException, java.rmi.RemoteException {
@@ -24,7 +24,7 @@ public String doService() {
24
25
// BAD - Implement a main method in session bean.
26
public static void main(String[] args) throws Exception {
27
- ServiceBean b = new ServiceBean();
+ EJBMain b = new EJBMain();
28
b.doService();
29
30
0 commit comments