hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From templ...@apache.org
Subject hadoop git commit: YARN-6780. ResourceWeights.toString() cleanup (Contributed by weiyuan via Daniel Templeton)
Date Thu, 31 Aug 2017 16:38:03 GMT
Repository: hadoop
Updated Branches:
  refs/heads/trunk f9e0cc8cd -> d4417dae4


YARN-6780. ResourceWeights.toString() cleanup (Contributed by weiyuan via Daniel Templeton)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d4417dae
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d4417dae
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d4417dae

Branch: refs/heads/trunk
Commit: d4417dae4f38b58d41517a0263484da73ed41b75
Parents: f9e0cc8
Author: Daniel Templeton <templedf@apache.org>
Authored: Thu Aug 31 09:35:01 2017 -0700
Committer: Daniel Templeton <templedf@apache.org>
Committed: Thu Aug 31 09:35:01 2017 -0700

----------------------------------------------------------------------
 .../yarn/server/resourcemanager/resource/ResourceWeights.java     | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/d4417dae/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/resource/ResourceWeights.java
----------------------------------------------------------------------
diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/resource/ResourceWeights.java
b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/resource/ResourceWeights.java
index 3ce1517..b66a5d0 100644
--- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/resource/ResourceWeights.java
+++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/resource/ResourceWeights.java
@@ -54,8 +54,9 @@ public class ResourceWeights {
     return weights[resourceType.ordinal()];
   }
   
+  @Override
   public String toString() {
-    StringBuffer sb = new StringBuffer();
+    StringBuilder sb = new StringBuilder();
     sb.append("<");
     for (int i = 0; i < ResourceType.values().length; i++) {
       if (i != 0) {


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message