@@ -4161,18 +4161,18 @@ private static Date getStartDate(String s) throws IOException {
4161
4161
}
4162
4162
if (date != null ) {
4163
4163
if (date .matches ("\\ d\\ d\\ d\\ d\\ /\\ d\\ d\\ /\\ d\\ d" )) {
4164
- c .set (Integer .valueOf (date .substring (0 , 4 )),
4165
- Integer .valueOf (date .substring (5 , 7 ))-1 ,
4166
- Integer .valueOf (date .substring (8 , 10 )));
4164
+ c .set (Integer .parseInt (date .substring (0 , 4 )),
4165
+ Integer .parseInt (date .substring (5 , 7 ))-1 ,
4166
+ Integer .parseInt (date .substring (8 , 10 )));
4167
4167
} else {
4168
4168
throw ioe ;
4169
4169
}
4170
4170
}
4171
4171
if (time != null ) {
4172
4172
if (time .matches ("\\ d\\ d:\\ d\\ d:\\ d\\ d" )) {
4173
- c .set (Calendar .HOUR_OF_DAY , Integer .valueOf (time .substring (0 , 2 )));
4174
- c .set (Calendar .MINUTE , Integer .valueOf (time .substring (3 , 5 )));
4175
- c .set (Calendar .SECOND , Integer .valueOf (time .substring (6 , 8 )));
4173
+ c .set (Calendar .HOUR_OF_DAY , Integer .parseInt (time .substring (0 , 2 )));
4174
+ c .set (Calendar .MINUTE , Integer .parseInt (time .substring (3 , 5 )));
4175
+ c .set (Calendar .SECOND , Integer .parseInt (time .substring (6 , 8 )));
4176
4176
c .set (Calendar .MILLISECOND , 0 );
4177
4177
} else {
4178
4178
throw ioe ;
0 commit comments