[HER-1843] Possible int overflow in CheckpointService.java

* CheckpointService
  Made checkpointIntervalMinutes setter accept a long instead of an int (was missed when the class variable was made a long). While it was non-harmful the way it was, this is more in line with Java conventions.
This commit is contained in:
kristinn_sig
2010-11-18 08:53:56 +00:00
parent 675d71d557
commit e90eff9c84
@@ -92,7 +92,7 @@ public class CheckpointService implements Lifecycle, ApplicationContextAware, Ha
public long getCheckpointIntervalMinutes() {
return checkpointIntervalMinutes;
}
public void setCheckpointIntervalMinutes(int interval) {
public void setCheckpointIntervalMinutes(long interval) {
long oldVal = checkpointIntervalMinutes;
this.checkpointIntervalMinutes = interval;
if(checkpointIntervalMinutes!=oldVal) {