Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,11 @@ protected Object[] get(Event event, Struct[] source) {
// return all return types
return Arrays.stream(returnTypes).map(Class::arrayType).toArray(Class<?>[]::new);

// if a field is single and object, it should allow object stuff
if (isAnyFieldSingle && returnType == Object.class) {
return new Class<?>[]{Object.class};
}

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

i'd move this under the existing isAnyFieldSingle check but otherwise seems fine

// if the mode is set, always allow changes
if (mode == ChangeMode.SET)
// return all return types
Expand Down