You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
class A {
//@JsonMerge --> if this is added here, it will throw exception in the runtime
public Optional<List<String>> list = Optional.empty();
}
A obj = objectMapper.readValue("{list:['a']", A.class) --> obj.list = ["a"] as expected
readerForUpdating(obj).readValue({list:['b']) --> obj.list = ["b"] which is not as expected. I expected obj.list = ["a", "b"] here