JAVA代码规范
1、String对象比较时不使用==或!=,而是用equals方法。
2、定义对象如下时:
1 List<Ctte> cttes = new ArrayList<Ctte>();
2 cttes = ctteDao.getCtteList(schoolID,pagination.getPageSize(), pagination.getPageNumber());
In Computer programming, if we assign a value to a local variable, but the value is not read by any subsequent instruction, then it's called a Dead Store.
如果是这种情况,则直接这样定义:
List<Ctte> cttes = null;
cttes = ctteDao.getCtteList(schoolID,pagination.getPageSize(), pagination.getPageNumber());
浙公网安备 33010602011771号