!1218 修复BiMap.put错误的返回值

Merge pull request !1218 from emptypoint/fix-BiMap-put
This commit is contained in:
Looly 2024-05-14 01:50:46 +00:00 committed by Gitee
commit f97d3a73ea
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

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