瀏覽代碼

Fixing checktyle warnings during rebase

vrushali 7 年之前
父節點
當前提交
3a5f1a6c26

+ 0 - 3
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/ResourceManager.java

@@ -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;

+ 2 - 2
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/bar-chart.js

@@ -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();
   }
-});
+});

+ 3 - 3
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/app/components/donut-chart.js

@@ -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 - 1
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/public/crossdomain.xml

@@ -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