当前位置: 动力学知识库 > 问答 > 编程问答 >

java ee - 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) ServiceFinder.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.
分享给朋友:
您可能感兴趣的文章:
随机阅读: