Commit f65cfc8 1 parent e5c5b98 commit f65cfc8 Copy full SHA for f65cfc8
File tree 3 files changed +2
-3
lines changed
main/java/org/opensearch/core/common/io/stream
test/java/org/opensearch/core/common/io/stream
3 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -1306,7 +1306,7 @@ public <E extends Enum<E>> EnumSet<E> readEnumSet(Class<E> enumClass) throws IOE
1306
1306
}
1307
1307
1308
1308
/**
1309
- * Reads an optional enum set with type E that was serialized based on the value of the enum's ordinal
1309
+ * Reads an optional enum set with type E that was serialized based on the value of each enum's ordinal
1310
1310
* The set is expected to have been written using {@link StreamOutput#writeOptionalEnumSet(EnumSet)}
1311
1311
*
1312
1312
* @return the enum set of strings
Original file line number Diff line number Diff line change @@ -1256,7 +1256,7 @@ public <E extends Enum<E>> void writeEnumSet(EnumSet<E> enumSet) throws IOExcept
1256
1256
}
1257
1257
1258
1258
/**
1259
- * Writes an optional EnumSet with type E that serializes enum each based on it's ordinal value
1259
+ * Writes an optional EnumSet with type E that serializes each enum based on its ordinal value
1260
1260
* For null or empty enum set, writes false;
1261
1261
*/
1262
1262
public <E extends Enum <E >> void writeOptionalEnumSet (@ Nullable EnumSet <E > enumSet ) throws IOException {
Original file line number Diff line number Diff line change @@ -567,7 +567,6 @@ private void assertGenericRoundtrip(Object original) throws IOException {
567
567
});
568
568
}
569
569
570
-
571
570
private enum TestEnum {
572
571
A , B , C , D , E ;
573
572
}
You can’t perform that action at this time.
0 commit comments