mirror of
https://github.com/internetarchive/heritrix3.git
synced 2026-09-24 14:45:56 +00:00
[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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user