Skip to content

Commit

Permalink
Code cleanup to fix checkstyle issue.
Browse files Browse the repository at this point in the history
Signed-off-by: Simone Bordet <simone.bordet@gmail.com>
  • Loading branch information
sbordet committed Nov 19, 2020
1 parent 88c03ac commit 7726c2e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private static void runMode(Mode mode, Request request, Runnable test)
case ASYNC_OTHER_WAIT:
{
CountDownLatch latch = new CountDownLatch(1);
HttpChannelState.State S = request.getHttpChannelState().getState();
HttpChannelState.State state = request.getHttpChannelState().getState();
new Thread(() ->
{
try
Expand All @@ -249,7 +249,7 @@ private static void runMode(Mode mode, Request request, Runnable test)
fail("latch expired");

// Spin until state change
while (request.getHttpChannelState().getState() == S)
while (request.getHttpChannelState().getState() == state)
{
Thread.yield();
}
Expand Down

0 comments on commit 7726c2e

Please sign in to comment.