代码如下:
public void contextDestroyed(final ServletContextEvent sce) {
final ServletContext context=sce.getServletContext();
context.removeAttribute("idlist");//这行提示“Potential violation of Law of Demeter (object not created locally)”请问各位如何修改?
}
相关分类