Add explicit comment to denote idempotence of method call.
This commit is contained in:
@@ -65,6 +65,7 @@ public class StartDelayTimer extends CountdownTimer implements TimerCallback {
|
|||||||
if (super.getDuration() > 0) {
|
if (super.getDuration() > 0) {
|
||||||
super.start();
|
super.start();
|
||||||
} else {
|
} else {
|
||||||
|
// Idempotent
|
||||||
autoStartTimer.start();
|
autoStartTimer.start();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user