Polishing

Remove overrides for default methods.

See gh-714
This commit is contained in:
Mark Paluch
2022-07-15 08:40:17 +02:00
parent f83733b302
commit 557bc13df5
2 changed files with 1 additions and 20 deletions

View File

@@ -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;
}
}
/**

View File

@@ -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)) {