修复BiMap.put错误的返回值

This commit is contained in:
Looly 2024-05-14 09:54:05 +08:00
parent 6e94ec8c34
commit ffc6c5ea76

View File

@ -51,7 +51,8 @@ public class BiMap<K, V> extends MapWrapper<K, V> {
}
this.inverse.put(value, key);
}
return super.put(key, value);
return oldValue;
}
@Override