Skip to content

Commit f75a555

Browse files
author
slfan1989
committed
YARN-11252. Fix CheckStyle.
1 parent 6d11426 commit f75a555

File tree

4 files changed

+6
-12
lines changed

4 files changed

+6
-12
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/store/records/impl/pb/DeleteReservationHomeSubClusterResponsePBImpl.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
@Unstable
3333
public class DeleteReservationHomeSubClusterResponsePBImpl
3434
extends DeleteReservationHomeSubClusterResponse {
35-
3635
private DeleteReservationHomeSubClusterResponseProto proto =
3736
DeleteReservationHomeSubClusterResponseProto.getDefaultInstance();
3837
private DeleteReservationHomeSubClusterResponseProto.Builder builder = null;
@@ -74,5 +73,4 @@ public boolean equals(Object other) {
7473
public String toString() {
7574
return TextFormat.shortDebugString(getProto());
7675
}
77-
7876
}

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/store/records/impl/pb/UpdateReservationHomeSubClusterResponsePBImpl.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,5 +74,4 @@ public boolean equals(Object other) {
7474
public String toString() {
7575
return TextFormat.shortDebugString(getProto());
7676
}
77-
7877
}

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/store/utils/FederationReservationHomeSubClusterStoreInputValidator.java

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,9 +137,8 @@ private static void checkReservationId(ReservationId reservationId)
137137
public static void validate(UpdateReservationHomeSubClusterRequest request)
138138
throws FederationStateStoreInvalidInputException {
139139
if (request == null) {
140-
String message = "Missing UpdateReservationHomeSubCluster Request."
141-
+ " Please try again by specifying"
142-
+ " an ReservationHomeSubCluster information.";
140+
String message = "Missing UpdateReservationHomeSubCluster Request." +
141+
" Please try again by specifying an ReservationHomeSubCluster information.";
143142
LOG.warn(message);
144143
throw new FederationStateStoreInvalidInputException(message);
145144
}
@@ -161,8 +160,7 @@ public static void validate(DeleteReservationHomeSubClusterRequest request)
161160
throws FederationStateStoreInvalidInputException {
162161
if (request == null) {
163162
String message = "Missing DeleteReservationHomeSubCluster Request." +
164-
" Please try again by specifying" +
165-
" an ReservationHomeSubCluster information.";
163+
" Please try again by specifying an ReservationHomeSubCluster information.";
166164
LOG.warn(message);
167165
throw new FederationStateStoreInvalidInputException(message);
168166
}

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/federation/FederationStateStoreService.java

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -125,11 +125,10 @@ protected void serviceInit(Configuration conf) throws Exception {
125125

126126
heartbeatInterval = conf.getLong(
127127
YarnConfiguration.FEDERATION_STATESTORE_HEARTBEAT_INTERVAL_SECS,
128-
YarnConfiguration
129-
.DEFAULT_FEDERATION_STATESTORE_HEARTBEAT_INTERVAL_SECS);
128+
YarnConfiguration.DEFAULT_FEDERATION_STATESTORE_HEARTBEAT_INTERVAL_SECS);
130129
if (heartbeatInterval <= 0) {
131-
heartbeatInterval = YarnConfiguration
132-
.DEFAULT_FEDERATION_STATESTORE_HEARTBEAT_INTERVAL_SECS;
130+
heartbeatInterval =
131+
YarnConfiguration.DEFAULT_FEDERATION_STATESTORE_HEARTBEAT_INTERVAL_SECS;
133132
}
134133
LOG.info("Initialized federation membership service.");
135134

0 commit comments

Comments
 (0)