String limits = name.substring(name.lastIndexOf("/")+1);\r
try\r
{\r
- StringTokenizer st = new StringTokenizer(limits, "-");\r
-\r
- if (st.countTokens() == 2)\r
- {\r
- setStart(Integer.valueOf(st.nextToken()).intValue());\r
- setEnd(Integer.valueOf(st.nextToken()).intValue());\r
- }\r
+ StringTokenizer st = new StringTokenizer(limits, "-");\r
+ setStart(Integer.valueOf(st.nextToken()).intValue());\r
+ setEnd(Integer.valueOf(st.nextToken()).intValue());\r
\r
// If we're still in this loop, parsing of start and end was ok\r
// Therefore remove it from the sequence name\r
catch (NumberFormatException ex)\r
{ }\r
}\r
-\r
}\r
\r
void checkValidRange()\r