Issue #3361 thread safe addHandler

Updates from review:
 - private fields

Signed-off-by: Greg Wilkins <gregw@webtide.com>
This commit is contained in:
Greg Wilkins 2019-03-21 10:32:43 +11:00
parent 944636176f
commit 849920ce87
1 changed files with 3 additions and 3 deletions

View File

@ -37,7 +37,7 @@ import org.eclipse.jetty.util.log.Log;
*/
public class SerializedExecutor implements Executor
{
final AtomicReference<Link> _tail = new AtomicReference<>();
private final AtomicReference<Link> _tail = new AtomicReference<>();
@Override
public void execute(Runnable task)
@ -89,8 +89,8 @@ public class SerializedExecutor implements Executor
private class Link
{
final Runnable _task;
final AtomicReference<Link> _next = new AtomicReference<>();
private final Runnable _task;
private final AtomicReference<Link> _next = new AtomicReference<>();
public Link(Runnable task)
{