Dead store to comboTrees in

com.jeecg.demo.controller.JeecgFormDemoController.getComboTreeData(HttpServletRequest,
ComboTree)
Bug type DLS_DEAD_LOCAL_STORE (click for details) 
In class com.jeecg.demo.controller.JeecgFormDemoController
In method
com.jeecg.demo.controller.JeecgFormDemoController.getComboTreeData(HttpServletRequest,
ComboTree)
Local variable named comboTrees
At JeecgFormDemoController.java:[line 117]
master
jiasudu 2019-05-28 15:58:13 +08:00
parent 96c1565d78
commit 390eaa60da
1 changed files with 2 additions and 2 deletions

View File

@ -114,9 +114,9 @@ public class JeecgFormDemoController extends BaseController {
} }
cq.add(); cq.add();
List<TSDepart> demoList = systemService.getListByCriteriaQuery(cq, false); List<TSDepart> demoList = systemService.getListByCriteriaQuery(cq, false);
List<ComboTree> comboTrees = new ArrayList<ComboTree>(); // List<ComboTree> comboTrees = new ArrayList<ComboTree>();
ComboTreeModel comboTreeModel = new ComboTreeModel("id", "departname", "TSDeparts"); ComboTreeModel comboTreeModel = new ComboTreeModel("id", "departname", "TSDeparts");
comboTrees = systemService.ComboTree(demoList, comboTreeModel, null, false); List<ComboTree> comboTrees = systemService.ComboTree(demoList, comboTreeModel, null, false);
return comboTrees; return comboTrees;
} }