Skip to content

Commit 6ec8f5c

Browse files
committed
PR feedback: restore comment, move instance variable
1 parent 15b93c1 commit 6ec8f5c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

server/src/main/java/org/elasticsearch/cluster/routing/SplitShardCountSummary.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,8 @@ public static SplitShardCountSummary fromInt(int payload) {
134134
return new SplitShardCountSummary(payload);
135135
}
136136

137+
private final int shardCountSummary;
138+
137139
/**
138140
* Return an integer representation of this summary
139141
* Used for serialization.
@@ -142,15 +144,14 @@ public int asInt() {
142144
return shardCountSummary;
143145
}
144146

145-
private final int shardCountSummary;
146-
147147
/**
148148
* Returns whether this shard count summary is carrying an actual value or is UNSET
149149
*/
150150
public boolean isUnset() {
151151
return this.shardCountSummary == UNSET.shardCountSummary;
152152
}
153153

154+
// visible for testing
154155
SplitShardCountSummary(int shardCountSummary) {
155156
this.shardCountSummary = shardCountSummary;
156157
}

0 commit comments

Comments
 (0)