[FLINK-11334] Add good EnumSerializer.toString()

This makes it easier to understand failing tests where serializers
are being compared.
上级 c9f72822
......@@ -414,4 +414,12 @@ public final class EnumSerializer<T extends Enum<T>> extends TypeSerializer<T> {
Map<T, Integer> getValueToOrdinal() {
return valueToOrdinal;
}
@Override
public String toString() {
return "EnumSerializer{" +
"enumClass=" + enumClass +
", values=" + Arrays.toString(values) +
'}';
}
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册