[反例]超短代码,意义不明 博客分类: 技术
程序员文章站
2024-02-04 18:47:52
...
public String logout(HttpServletRequest request, HttpServletResponse response) throws Exception { String ticket = getTicket(request); if (ticket == null || ticket.equals("")) { return "success"; } setCookie(response, "", -1); setSecure(response, "", -1); return "success"; }
这种代码短到吐血
但可看价值真的不高