Polishing
Remove overrides for default methods. See gh-714
This commit is contained in:
@@ -186,16 +186,6 @@ public abstract class LifecycleAwareSessionManagerSupport extends Authentication
|
||||
this.nextExecutionTime = nextExecutionTime;
|
||||
}
|
||||
|
||||
@Nullable
|
||||
public Date nextExecutionTime(TriggerContext triggerContext) {
|
||||
|
||||
if (this.fired.compareAndSet(false, true)) {
|
||||
return this.nextExecutionTime;
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instant nextExecution(TriggerContext triggerContext) {
|
||||
if (this.fired.compareAndSet(false, true)) {
|
||||
@@ -204,6 +194,7 @@ public abstract class LifecycleAwareSessionManagerSupport extends Authentication
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -938,17 +938,7 @@ public class SecretLeaseContainer extends SecretLeaseEventPublisher implements I
|
||||
this.seconds = seconds;
|
||||
}
|
||||
|
||||
@Override
|
||||
@Nullable
|
||||
public Date nextExecutionTime(TriggerContext triggerContext) {
|
||||
|
||||
if (UPDATER.compareAndSet(this, STATUS_ARMED, STATUS_FIRED)) {
|
||||
return new Date(System.currentTimeMillis() + TimeUnit.SECONDS.toMillis(this.seconds));
|
||||
}
|
||||
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Instant nextExecution(TriggerContext triggerContext) {
|
||||
if (UPDATER.compareAndSet(this, STATUS_ARMED, STATUS_FIRED)) {
|
||||
|
||||
Reference in New Issue
Block a user