* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
*/
+
package org.opendaylight.yangtools.util.concurrent;
import static org.junit.Assert.assertEquals;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.atomic.AtomicReference;
import java.util.function.Supplier;
+import javax.annotation.Nonnull;
import org.junit.After;
import org.junit.Before;
import org.junit.Test;
@Override
@SuppressWarnings("checkstyle:parameterName")
- public void onFailure(final Throwable t) {
+ public void onFailure(@Nonnull final Throwable t) {
caughtEx.set(t);
futureCompletedLatch.countDown();
}