Small change from MJ for getEnumSet

- set has no attribute getEnumSet, use bufferset
- see [this previous MJ commit](e20bf91a32)
This commit is contained in:
Shay Carter 2023-09-11 11:58:44 -06:00
parent cae26d16c3
commit 0797d070c2

View file

@ -29,7 +29,7 @@
# ------------ ---------- ----------- --------------------------
# 07/28/11 dgilling Initial Creation.
# 12/02/13 2537 bsteffen Serialize empty enum sets.
#
# 09/11/23 srcarter@ucar MJ change for set has no attribute getEnumClass
#
#
@ -43,7 +43,7 @@ ClassAdapter = ['java.util.EnumSet', 'java.util.RegularEnumSet']
def serialize(context, set):
setSize = len(set)
context.writeI32(setSize)
context.writeString(set.getEnumClass())
context.writeString(bufferset.getEnumClass())
for val in set:
context.writeString(val)