avoid unnecessary autoboxing

This commit is contained in:
igor-suhorukov
2018-03-29 00:22:37 +03:00
committed by Juergen Hoeller
parent b8d72516e1
commit e6020ed377
4 changed files with 5 additions and 5 deletions

View File

@@ -352,7 +352,7 @@ public class CronSequenceGenerator {
if (!split[0].contains("-")) {
range[1] = max - 1;
}
int delta = Integer.valueOf(split[1]);
int delta = Integer.parseInt(split[1]);
if (delta <= 0) {
throw new IllegalArgumentException("Incrementer delta must be 1 or higher: '" +
field + "' in expression \"" + this.expression + "\"");