diff --git a/src/test/java/org/apache/commons/lang3/concurrent/UncheckedFutureTest.java b/src/test/java/org/apache/commons/lang3/concurrent/UncheckedFutureTest.java index fd7a5aed4..47a478f1c 100644 --- a/src/test/java/org/apache/commons/lang3/concurrent/UncheckedFutureTest.java +++ b/src/test/java/org/apache/commons/lang3/concurrent/UncheckedFutureTest.java @@ -39,16 +39,16 @@ public class UncheckedFutureTest { private static class TestFuture implements Future { private final V get; - private final Exception executionException; + private final Exception exception; TestFuture(final Exception throwable) { this.get = null; - this.executionException = throwable; + this.exception = throwable; } TestFuture(final V get) { this.get = get; - this.executionException = null; + this.exception = null; } @Override @@ -58,8 +58,8 @@ public class UncheckedFutureTest { @SuppressWarnings("unchecked") // Programming error if call site blows up at runtime. private void checkExecutionException() throws T { - if (executionException != null) { - throw (T) executionException; + if (exception != null) { + throw (T) exception; } }