Skip to content

Conversation

dongguabai
Copy link
Contributor

修复 ExecutableElementComparator 中的参数比较错误并优化返回值处理

问题描述
ExecutableElementComparator 类的 compare 方法中,存在一个错误,原本应该比较 e1e2 的参数,但错误地比较了 e1 的参数两次。同时,方法的返回值处理存在冗余,进行了无必要的比较。

解决方案
修复了参数比较的错误,并优化了返回值处理,直接返回 value 而不是进行无必要的比较。

改动详情

  • 修复了 compare 方法中的参数比较错误。
  • 优化了 compare 方法的返回值处理,直接返回 value。

@mercyblitz mercyblitz merged commit 4abde5d into microsphere-projects:main Jan 24, 2024
mercyblitz added a commit that referenced this pull request Apr 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants