YARN-6410. FSContext.scheduler should be final (Contributed by Yeliang Cang via Daniel Templeton)

This commit is contained in:
Daniel Templeton 2017-07-09 19:34:35 +09:00
parent c5a0c38d8e
commit 9d27880442
1 changed files with 1 additions and 1 deletions

View File

@ -29,7 +29,7 @@ public class FSContext {
private boolean preemptionEnabled = false; private boolean preemptionEnabled = false;
private float preemptionUtilizationThreshold; private float preemptionUtilizationThreshold;
private FSStarvedApps starvedApps; private FSStarvedApps starvedApps;
private FairScheduler scheduler; private final FairScheduler scheduler;
FSContext(FairScheduler scheduler) { FSContext(FairScheduler scheduler) {
this.scheduler = scheduler; this.scheduler = scheduler;