Open marschall opened 5 years ago
This does not seem to be a showstopper or have significant impact on the outside for users of the API, does it?
No, not at all. It’s just a clean up or code quality thing that affects only the implementation. The behavior users see is exactly the same.
I had a look at the implementation of AbstractContextBuilder.set(Class, T) and I'm a bit confused:
It calls
#set(String, Object)
, however this method does not return the old value butthis
so "old" is a confusing name. Then it makes tests whether "old" (which isthis
) is a super type of the value class. If it is it returns "old", which isthis
, otherwise it returnsthis
.I believe the method should just be: