From a518cb8b9f589326c0569f87f1f67e41b6744b4f Mon Sep 17 00:00:00 2001 From: Enrique Gonzalez Martinez Date: Tue, 10 Oct 2023 08:57:26 +0200 Subject: [PATCH] fix for codecs registry --- .../events/mongodb/codec/EventMongoDBCodecProvider.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/addons/common/events/mongodb/src/main/java/org/kie/kogito/events/mongodb/codec/EventMongoDBCodecProvider.java b/addons/common/events/mongodb/src/main/java/org/kie/kogito/events/mongodb/codec/EventMongoDBCodecProvider.java index 778b1722a16..3b13948cf7d 100644 --- a/addons/common/events/mongodb/src/main/java/org/kie/kogito/events/mongodb/codec/EventMongoDBCodecProvider.java +++ b/addons/common/events/mongodb/src/main/java/org/kie/kogito/events/mongodb/codec/EventMongoDBCodecProvider.java @@ -32,10 +32,10 @@ public class EventMongoDBCodecProvider implements CodecProvider { @SuppressWarnings("unchecked") @Override public Codec get(Class aClass, CodecRegistry codecRegistry) { - if (aClass.isAssignableFrom(ProcessInstanceDataEvent.class)) { + if (ProcessInstanceDataEvent.class.isAssignableFrom(aClass)) { return (Codec) PROCESS_INSTANCE_DATA_EVENT_CODEC; } - if (aClass.isAssignableFrom(UserTaskInstanceDataEvent.class)) { + if (UserTaskInstanceDataEvent.class.isAssignableFrom(aClass)) { return (Codec) USER_TASK_INSTANCE_DATA_EVENT_CODEC; } return null;