Skip to content

Commit

Permalink
fix for codecs registry
Browse files Browse the repository at this point in the history
  • Loading branch information
elguardian committed Oct 10, 2023
1 parent 1149ae6 commit a518cb8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ public class EventMongoDBCodecProvider implements CodecProvider {
@SuppressWarnings("unchecked")
@Override
public <T> Codec<T> get(Class<T> aClass, CodecRegistry codecRegistry) {
if (aClass.isAssignableFrom(ProcessInstanceDataEvent.class)) {
if (ProcessInstanceDataEvent.class.isAssignableFrom(aClass)) {
return (Codec<T>) PROCESS_INSTANCE_DATA_EVENT_CODEC;
}
if (aClass.isAssignableFrom(UserTaskInstanceDataEvent.class)) {
if (UserTaskInstanceDataEvent.class.isAssignableFrom(aClass)) {
return (Codec<T>) USER_TASK_INSTANCE_DATA_EVENT_CODEC;
}
return null;
Expand Down

0 comments on commit a518cb8

Please sign in to comment.