fix(GracefulShutdownContext): remove non-null requirement

This commit is contained in:
glarwood 2018-12-13 12:12:55 -08:00
parent c1b1f9b74d
commit f42037eefd

View file

@ -28,9 +28,6 @@ class GracefulShutdownContext {
this.shutdownCompleteLatch = shutdownCompleteLatch; this.shutdownCompleteLatch = shutdownCompleteLatch;
this.notificationCompleteLatch = notificationCompleteLatch; this.notificationCompleteLatch = notificationCompleteLatch;
this.worker = worker; this.worker = worker;
Objects.requireNonNull(shutdownCompleteLatch);
Objects.requireNonNull(notificationCompleteLatch);
Objects.requireNonNull(worker);
} }
boolean isShutdownAlreadyCompleted() { boolean isShutdownAlreadyCompleted() {