Skip to content

Commit d789bf6

Browse files
committed
YARN-11483. Fix CheckStyle.
1 parent 5f8abdf commit d789bf6

File tree

5 files changed

+9
-7
lines changed

5 files changed

+9
-7
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-api/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/DeleteFederationApplicationRequest.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,8 @@
2424

2525
/**
2626
* This class is used for cleaning up an application that exists in the FederationStateStore.
27-
* This is a user-specified operation; we typically use this command to clean up an expired application.
27+
* This is a user-specified operation;
28+
* we typically use this command to clean up an expired application.
2829
* However, it can also be used to clean up non-expired application, although it is not recommended.
2930
*/
3031
@Private

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/main/java/org/apache/hadoop/yarn/client/cli/RouterCLI.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,8 @@ public class RouterCLI extends Configured implements Tool {
235235

236236
// Application Delete
237237
protected final static UsageInfo APPLICATION_DELETE_USAGE = new UsageInfo(
238-
"--delete <application_id>",
239-
"This command is used to delete the specified application.");
238+
"--delete <application_id>",
239+
"This command is used to delete the specified application.");
240240

241241
protected final static String APPLICATION_DELETE_USAGE_EXAMPLE_DESC =
242242
"If we want to delete application_1440536969523_0001.";

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/server/api/impl/pb/service/ResourceManagerAdministrationProtocolPBServiceImpl.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -453,8 +453,9 @@ public QueryFederationQueuePoliciesResponseProto listFederationQueuePolicies(
453453
}
454454

455455
@Override
456-
public DeleteFederationApplicationResponseProto deleteFederationApplication(RpcController controller,
457-
DeleteFederationApplicationRequestProto proto) throws ServiceException {
456+
public DeleteFederationApplicationResponseProto deleteFederationApplication(
457+
RpcController controller, DeleteFederationApplicationRequestProto proto)
458+
throws ServiceException {
458459
DeleteFederationApplicationRequest request =
459460
new DeleteFederationApplicationRequestPBImpl(proto);
460461
try {

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/impl/pb/DeleteFederationApplicationRequestPBImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ public int hashCode() {
6464
@Override
6565
public boolean equals(Object other) {
6666
if (!(other instanceof DeleteFederationApplicationRequest)) {
67-
return false;
67+
return false;
6868
}
6969
DeleteFederationApplicationRequestPBImpl otherImpl = this.getClass().cast(other);
7070
return new EqualsBuilder().append(this.getProto(), otherImpl.getProto()).isEquals();

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/server/api/protocolrecords/impl/pb/DeleteFederationApplicationResponsePBImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ public String getMessage() {
8181

8282
private synchronized void maybeInitBuilder() {
8383
if (viaProto || builder == null) {
84-
builder = DeleteFederationApplicationResponseProto.newBuilder(proto);
84+
builder = DeleteFederationApplicationResponseProto.newBuilder(proto);
8585
}
8686
viaProto = false;
8787
}

0 commit comments

Comments
 (0)