Skip to content

Commit f65cfc8

Browse files
committed
Fix typos
Signed-off-by: Andy Qin <qinandy@amazon.com>
1 parent e5c5b98 commit f65cfc8

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

libs/core/src/main/java/org/opensearch/core/common/io/stream/StreamInput.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1306,7 +1306,7 @@ public <E extends Enum<E>> EnumSet<E> readEnumSet(Class<E> enumClass) throws IOE
13061306
}
13071307

13081308
/**
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
13101310
* The set is expected to have been written using {@link StreamOutput#writeOptionalEnumSet(EnumSet)}
13111311
*
13121312
* @return the enum set of strings

libs/core/src/main/java/org/opensearch/core/common/io/stream/StreamOutput.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ public <E extends Enum<E>> void writeEnumSet(EnumSet<E> enumSet) throws IOExcept
12561256
}
12571257

12581258
/**
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
12601260
* For null or empty enum set, writes false;
12611261
*/
12621262
public <E extends Enum<E>> void writeOptionalEnumSet(@Nullable EnumSet<E> enumSet) throws IOException {

libs/core/src/test/java/org/opensearch/core/common/io/stream/BaseStreamTests.java

-1
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,6 @@ private void assertGenericRoundtrip(Object original) throws IOException {
567567
});
568568
}
569569

570-
571570
private enum TestEnum {
572571
A, B, C, D, E;
573572
}

0 commit comments

Comments
 (0)