We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b91c9d7 commit 8f9f37dCopy full SHA for 8f9f37d
api/src/main/java/io/serverlessworkflow/serialization/SerializeHelper.java
@@ -23,6 +23,9 @@ public class SerializeHelper {
23
public static void serializeOneOf(JsonGenerator jgen, Object item) throws IOException {
24
try {
25
for (Method m : item.getClass().getDeclaredMethods()) {
26
+ if (m.getParameterCount() > 0) {
27
+ continue;
28
+ }
29
Object value = m.invoke(item);
30
if (value != null) {
31
jgen.writeObject(value);
0 commit comments