From c957ed69775102474d6c2352618570befc3273f2 Mon Sep 17 00:00:00 2001 From: slfan1989 Date: Fri, 4 Aug 2023 12:56:59 +0800 Subject: [PATCH] YARN-11536. Fix CheckStyle. --- .../api/protocolrecords/FederationQueueWeight.java | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/FederationQueueWeight.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/FederationQueueWeight.java index 0c12f75d77f1a..aa9d114527410 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/FederationQueueWeight.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/FederationQueueWeight.java @@ -199,12 +199,12 @@ protected static boolean isNumeric(String value) { @Override public String toString() { StringBuilder builder = new StringBuilder(); - builder.append("FederationQueueWeight{"); - builder.append("Queue:" + getQueue() + ", "); - builder.append("RouterWeight:" + getRouterWeight() + ", "); - builder.append("AmrmWeight:" + getAmrmWeight() + ", "); - builder.append("PolicyManagerClassName:" + getPolicyManagerClassName()); - builder.append("}"); + builder.append("FederationQueueWeight { "); + builder.append("Queue: ").append(getQueue()).append(", "); + builder.append("RouterWeight: ").append(getRouterWeight()).append(", "); + builder.append("AmrmWeight: ").append(getAmrmWeight()).append(", "); + builder.append("PolicyManagerClassName: ").append(getPolicyManagerClassName()); + builder.append(" }"); return builder.toString(); } }