开发者

warning - @return tag has no arguments

开发者 https://www.devze.com 2023-04-09 06:53 出处:网络
I have 2 Warnings : --The First is: HELPDESKGESTION2\\src\\java\\glpi\\action\\LoginAction.java:37: warning - @return tag has no arguments.

I have 2 Warnings : --The First is : HELPDESKGESTION2\src\java\glpi\action\LoginAction.java:37: warning - @return tag has no arguments. --The second is : HELPDESKGESTION2\src\java\glpi\actionform\UtilisateurActionForm.java:67: warning - @return tag has no arguments.

The Code is :

@Override
public ActionForward execute(ActionMapping mapping, ActionForm form,
        HttpServletRequest request, HttpServletResponse response)
        throws Exception {

    UtilisateurActionForm utiAF =(UtilisateurActionForm) form;
    Utilisateur utilisateur = new Utilisateur();
    utilisateur.setLogin(utiAF.getLogin());
    utilisateur.setPassword(utiAF.getPassword());
    IUtilisateurBO IutiBO = (IUtilisateurBO) Ser开发者_如何转开发viceFinder.getContext(request).getBean("UtilisateurBO");
    if (IutiBO.checkLogin(utilisateur)==true){
        return mapping.findForward(SUCCESS);
        }
    return mapping.findForward(ERROR);
}


the only @return that i'm aware of is javadoc. are you sure your "warnings" aren't generated by you ide to make sure you document your code properly?


@return is the javadoc for the methods return value. Can you check if the javadocs in the java file has an description for thr return comments. e.g.

* @return num squared.
0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号