Skip to content

Commit

Permalink
YARN-6284. hasAlreadyRun should be final in ResourceManager.StandByTr…
Browse files Browse the repository at this point in the history
…ansitionRunnable

(Contributed by Laura Adams via Daniel Templeton)
  • Loading branch information
templedf committed Mar 21, 2017
1 parent c01d15a commit 0a05c5c
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -846,7 +846,7 @@ public void handleTransitionToStandByInNewThread() {
private class StandByTransitionRunnable implements Runnable {
// The atomic variable to make sure multiple threads with the same runnable
// run only once.
private AtomicBoolean hasAlreadyRun = new AtomicBoolean(false);
private final AtomicBoolean hasAlreadyRun = new AtomicBoolean(false);

@Override
public void run() {
Expand Down

0 comments on commit 0a05c5c

Please sign in to comment.