refactor(pool): 简化对象池释放警告消息

- 移除冗余的 'Attempting to release object for key' 文本
- 删除重复的 'or incorrect key' 描述
- 简化警告消息以提高可读性
- 保持核心警告信息不变
This commit is contained in:
GeWuYou 2026-03-10 19:13:39 +08:00
parent 8e4e794661
commit 43b88e7573

View File

@ -73,8 +73,7 @@ public abstract class AbstractObjectPoolSystem<TKey, TObject>
{
// 记录警告:检测到可能的双重释放或错误释放
Debug.WriteLine(
$"[ObjectPool] Warning: Attempting to release object for key '{key}' " +
$"but ActiveCount is already 0. Possible double-release or incorrect key.");
$"[ObjectPool] Warning: Release called with key '{key}', but ActiveCount is already 0. Possible double release.");
}
// 检查容量限制