File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed
main/java/org/elasticsearch/action/admin/indices/get
test/java/org/elasticsearch/action/admin/indices/get Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -81,7 +81,7 @@ public GetIndexRequest(StreamInput in) throws IOException {
81
81
features [i ] = Feature .fromId (in .readByte ());
82
82
}
83
83
humanReadable = in .readBoolean ();
84
- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
84
+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
85
85
includeDefaults = in .readBoolean ();
86
86
}
87
87
}
@@ -155,7 +155,7 @@ public void writeTo(StreamOutput out) throws IOException {
155
155
out .writeByte (feature .id );
156
156
}
157
157
out .writeBoolean (humanReadable );
158
- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
158
+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
159
159
out .writeBoolean (includeDefaults );
160
160
}
161
161
}
Original file line number Diff line number Diff line change @@ -189,7 +189,7 @@ public void readFrom(StreamInput in) throws IOException {
189
189
settings = settingsMapBuilder .build ();
190
190
191
191
ImmutableOpenMap .Builder <String , Settings > defaultSettingsMapBuilder = ImmutableOpenMap .builder ();
192
- if (in .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
192
+ if (in .getVersion ().onOrAfter (Version .V_6_4_0 )) {
193
193
int defaultSettingsSize = in .readVInt ();
194
194
for (int i = 0 ; i < defaultSettingsSize ; i ++) {
195
195
defaultSettingsMapBuilder .put (in .readString (), Settings .readSettingsFromStream (in ));
@@ -224,7 +224,7 @@ public void writeTo(StreamOutput out) throws IOException {
224
224
out .writeString (indexEntry .key );
225
225
Settings .writeSettingsToStream (indexEntry .value , out );
226
226
}
227
- if (out .getVersion ().onOrAfter (Version .V_7_0_0_alpha1 )) {
227
+ if (out .getVersion ().onOrAfter (Version .V_6_4_0 )) {
228
228
out .writeVInt (defaultSettings .size ());
229
229
for (ObjectObjectCursor <String , Settings > indexEntry : defaultSettings ) {
230
230
out .writeString (indexEntry .key );
Original file line number Diff line number Diff line change 52
52
public class GetIndexResponseTests extends AbstractStreamableXContentTestCase <GetIndexResponse > {
53
53
54
54
/**
55
- * The following byte response was generated from the v6.3.0 tag with the following code snippet
55
+ * The following byte response was generated from the v6.3.0 tag
56
56
*/
57
57
private static final String TEST_6_3_0_RESPONSE_BYTES =
58
58
"AQhteV9pbmRleAEIbXlfaW5kZXgBA2RvYwNkb2OePID6KURGTACqVkrLTM1JiTdUsqpWKqksSFWyUiouKcrMS1eqrQUAAAD//" +
You can’t perform that action at this time.
0 commit comments