This is mentioned on Github:
“For Mendix < 9.5 this action keeps track of changes to the object except when 'changing to the same value'. For Mendix >= 9.5 this action keeps track of all changes. This is a result of a change of the underlying Mendix runtime-server behaviour.“
I hope they can revert this, or this java action loses much if not all of it’s value.