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
It calls #set(String, Object), however this method does not return the old value but this so "old" is a confusing name. Then it makes tests whether "old" (which is this) is a super type of the value class. If it is it returns "old", which is this, otherwise it returns this.
I believe the method should just be:
public <T> Bset(Class<T> key, Tvalue) {
returnset(key.getName(), Objects.requireNonNull(value));
}
The text was updated successfully, but these errors were encountered:
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:
The text was updated successfully, but these errors were encountered: