Skip to content

Commit

Permalink
YARN-11236. Fix CheckStyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 committed Aug 10, 2022
1 parent 51d243c commit 1e5aa27
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ public String toString() {

@Override
public ReservationHomeSubCluster getReservationHomeSubCluster() {
AddReservationHomeSubClusterRequestProtoOrBuilder p =
viaProto ? proto : builder;
AddReservationHomeSubClusterRequestProtoOrBuilder p = viaProto ? proto : builder;
if (!p.hasAppSubclusterMap()) {
return null;
}
Expand All @@ -128,5 +127,4 @@ private ReservationHomeSubClusterProto convertToProtoFormat(
ReservationHomeSubCluster sc) {
return ((ReservationHomeSubClusterPBImpl) sc).getProto();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,7 @@ public void setHomeSubCluster(SubClusterId homeSubCluster) {

@Override
public SubClusterId getHomeSubCluster() {
AddReservationHomeSubClusterResponseProtoOrBuilder p =
viaProto ? proto : builder;
AddReservationHomeSubClusterResponseProtoOrBuilder p = viaProto ? proto : builder;

if (!p.hasHomeSubCluster()) {
return null;
Expand Down Expand Up @@ -113,5 +112,4 @@ private SubClusterId convertFromProtoFormat(SubClusterIdProto sc) {
private SubClusterIdProto convertToProtoFormat(SubClusterId sc) {
return ((SubClusterIdPBImpl) sc).getProto();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ public String toString() {

@Override
public ReservationId getReservationId() {
GetReservationHomeSubClusterRequestProtoOrBuilder p =
viaProto ? proto : builder;
GetReservationHomeSubClusterRequestProtoOrBuilder p = viaProto ? proto : builder;
if (reservationId != null) {
return reservationId;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,7 @@ public String toString() {

@Override
public ReservationHomeSubCluster getReservationHomeSubCluster() {
GetReservationHomeSubClusterResponseProtoOrBuilder p =
viaProto ? proto : builder;
GetReservationHomeSubClusterResponseProtoOrBuilder p = viaProto ? proto : builder;
if (!p.hasAppSubclusterMap()) {
return null;
}
Expand All @@ -128,5 +127,4 @@ private ReservationHomeSubClusterProto convertToProtoFormat(
ReservationHomeSubCluster sc) {
return ((ReservationHomeSubClusterPBImpl) sc).getProto();
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,4 @@ public boolean equals(Object other) {
public String toString() {
return TextFormat.shortDebugString(getProto());
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -171,13 +171,11 @@ public void remove() {
builder.addAllAppSubclusterMap(iterable);
}

private ReservationHomeSubCluster convertFromProtoFormat(
ReservationHomeSubClusterProto sc) {
private ReservationHomeSubCluster convertFromProtoFormat(ReservationHomeSubClusterProto sc) {
return new ReservationHomeSubClusterPBImpl(sc);
}

private ReservationHomeSubClusterProto convertToProtoFormat(
ReservationHomeSubCluster sc) {
private ReservationHomeSubClusterProto convertToProtoFormat(ReservationHomeSubCluster sc) {
return ((ReservationHomeSubClusterPBImpl) sc).getProto();
}
}

0 comments on commit 1e5aa27

Please sign in to comment.