Fixing checktyle warnings during rebase
This commit is contained in:
parent
17213a0d27
commit
3a5f1a6c26
|
@ -30,9 +30,7 @@ import org.apache.hadoop.metrics2.MetricsSystem;
|
|||
import org.apache.hadoop.metrics2.lib.DefaultMetricsSystem;
|
||||
import org.apache.hadoop.metrics2.source.JvmMetrics;
|
||||
import org.apache.hadoop.http.HttpServer2;
|
||||
import org.apache.hadoop.http.lib.StaticUserWebFilter;
|
||||
import org.apache.hadoop.net.NetUtils;
|
||||
import org.apache.hadoop.security.AuthenticationFilterInitializer;
|
||||
import org.apache.hadoop.security.Groups;
|
||||
import org.apache.hadoop.security.SecurityUtil;
|
||||
import org.apache.hadoop.security.UserGroupInformation;
|
||||
|
@ -47,7 +45,6 @@ import org.apache.hadoop.util.ShutdownHookManager;
|
|||
import org.apache.hadoop.util.StringUtils;
|
||||
import org.apache.hadoop.util.curator.ZKCuratorManager;
|
||||
import org.apache.hadoop.util.VersionInfo;
|
||||
import org.apache.hadoop.util.ZKUtil;
|
||||
import org.apache.hadoop.yarn.YarnUncaughtExceptionHandler;
|
||||
import org.apache.hadoop.yarn.api.records.ApplicationAttemptId;
|
||||
import org.apache.hadoop.yarn.api.records.ApplicationId;
|
||||
|
|
|
@ -20,7 +20,7 @@ import Ember from 'ember';
|
|||
import BaseChartComponent from 'yarn-ui/components/base-chart-component';
|
||||
|
||||
export default BaseChartComponent.extend({
|
||||
// data:
|
||||
// data:
|
||||
// [{label=label1, value=value1}, ...]
|
||||
// ...
|
||||
renderBarChart: function(data, title, textWidth = 50) {
|
||||
|
@ -120,4 +120,4 @@ export default BaseChartComponent.extend({
|
|||
this.initChart();
|
||||
this.draw();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
@ -25,7 +25,7 @@ export default BaseChartComponent.extend({
|
|||
/*
|
||||
* data = [{label="xx", value=},{...}]
|
||||
*/
|
||||
renderDonutChart: function(data, title, showLabels = false,
|
||||
renderDonutChart: function(data, title, showLabels = false,
|
||||
middleLabel = "Total", middleValue = undefined, suffix = "") {
|
||||
var g = this.chart.g;
|
||||
var layout = this.getLayout();
|
||||
|
@ -184,7 +184,7 @@ export default BaseChartComponent.extend({
|
|||
this.colors = ColorUtils.getColors(this.get("data").length, targets, colorTargetReverse);
|
||||
}
|
||||
|
||||
this.renderDonutChart(this.get("data"), this.get("title"), this.get("showLabels"),
|
||||
this.renderDonutChart(this.get("data"), this.get("title"), this.get("showLabels"),
|
||||
this.get("middleLabel"), this.get("middleValue"));
|
||||
},
|
||||
|
||||
|
@ -192,4 +192,4 @@ export default BaseChartComponent.extend({
|
|||
this.initChart();
|
||||
this.draw();
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0"?>
|
||||
|
||||
|
||||
<!--
|
||||
* Licensed to the Apache Software Foundation (ASF) under one
|
||||
* or more contributor license agreements. See the NOTICE file
|
||||
|
|
Loading…
Reference in New Issue