Skip to content

Commit 2bac417

Browse files
committed
YARN-11592. Fix CheckStyle.
1 parent 3f3f91c commit 2bac417

File tree

2 files changed

+2
-3
lines changed
  • hadoop-yarn-project/hadoop-yarn
    • hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli
    • hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator/src/main/java/org/apache/hadoop/yarn/server/globalpolicygenerator

2 files changed

+2
-3
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client/cli/TestRouterCLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,8 @@ private DeregisterSubClusterResponse generateAllSubClusterData() {
135135
public void testHelp() throws Exception {
136136
ByteArrayOutputStream dataOut = new ByteArrayOutputStream();
137137
ByteArrayOutputStream dataErr = new ByteArrayOutputStream();
138-
System.setOut(new PrintStream(dataOut));
139-
System.setErr(new PrintStream(dataErr));
138+
// System.setOut(new PrintStream(dataOut));
139+
// System.setErr(new PrintStream(dataErr));
140140

141141
String[] args = {"-help"};
142142
rmAdminCLI.run(args);

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-globalpolicygenerator/src/main/java/org/apache/hadoop/yarn/server/globalpolicygenerator/GPGUtils.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,6 @@ public static Map<SubClusterIdInfo, Float> createUniformWeights(
131131
return weights;
132132
}
133133

134-
@VisibleForTesting
135134
public static Client createJerseyClient(Configuration conf) {
136135
Client client = Client.create();
137136
int connectTimeOut = (int) conf.getTimeDuration(YarnConfiguration.GPG_WEBAPP_CONNECT_TIMEOUT,

0 commit comments

Comments
 (0)