From 43b88e7573ee4ad75a08292971f92586e310ab41 Mon Sep 17 00:00:00 2001 From: GeWuYou <95328647+GeWuYou@users.noreply.github.com> Date: Tue, 10 Mar 2026 19:13:39 +0800 Subject: [PATCH] =?UTF-8?q?refactor(pool):=20=E7=AE=80=E5=8C=96=E5=AF=B9?= =?UTF-8?q?=E8=B1=A1=E6=B1=A0=E9=87=8A=E6=94=BE=E8=AD=A6=E5=91=8A=E6=B6=88?= =?UTF-8?q?=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除冗余的 'Attempting to release object for key' 文本 - 删除重复的 'or incorrect key' 描述 - 简化警告消息以提高可读性 - 保持核心警告信息不变 --- GFramework.Core/Pool/AbstractObjectPoolSystem.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GFramework.Core/Pool/AbstractObjectPoolSystem.cs b/GFramework.Core/Pool/AbstractObjectPoolSystem.cs index 2969b89..7afe321 100644 --- a/GFramework.Core/Pool/AbstractObjectPoolSystem.cs +++ b/GFramework.Core/Pool/AbstractObjectPoolSystem.cs @@ -73,8 +73,7 @@ public abstract class AbstractObjectPoolSystem { // 记录警告:检测到可能的双重释放或错误释放 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."); } // 检查容量限制