问个programming style 的问题# Programming - 葵花宝典
s*p
1 楼
I have one line code:
return mapping.findForward( s.login( u.getUsername(), u.getPassword()));
Should I write 4 lines like
String username = u.getUsername();
String passwrod = u.getPassword();
String retval = s.login( username, password );
return mapping.findForward( retval );
多谢指教!
return mapping.findForward( s.login( u.getUsername(), u.getPassword()));
Should I write 4 lines like
String username = u.getUsername();
String passwrod = u.getPassword();
String retval = s.login( username, password );
return mapping.findForward( retval );
多谢指教!