From: Stephanie S. <say...@us...> - 2009-01-30 19:08:49
|
Update of /cvsroot/unitime/UniTime/JavaSource/org/unitime/timetable/model In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv27263/JavaSource/org/unitime/timetable/model Modified Files: Solution.java Log Message: Fixed bug in removeDivSecNumbers() that occurred when the classSuffix was less that 6 digits but was expected to be 6 digits Index: Solution.java =================================================================== RCS file: /cvsroot/unitime/UniTime/JavaSource/org/unitime/timetable/model/Solution.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Solution.java 9 Jul 2008 22:51:12 -0000 1.9 --- Solution.java 30 Jan 2009 19:08:39 -0000 1.10 *************** *** 1366,1370 **** for (Iterator i3=s.getClasses().iterator();i3.hasNext();) { Class_ clazz = (Class_)i3.next(); ! if (clazz.getClassSuffix()==null) continue; int clazzDivNum = Integer.parseInt(clazz.getClassSuffix().substring(0,3)); int clazzSecNum = Integer.parseInt(clazz.getClassSuffix().substring(3,6)); --- 1366,1370 ---- for (Iterator i3=s.getClasses().iterator();i3.hasNext();) { Class_ clazz = (Class_)i3.next(); ! if (clazz.getClassSuffix()==null || clazz.getClassSuffix().length() != 6) continue; int clazzDivNum = Integer.parseInt(clazz.getClassSuffix().substring(0,3)); int clazzSecNum = Integer.parseInt(clazz.getClassSuffix().substring(3,6)); |