feat:Fix parameter comparison and return optimization in ExecutableEl… #3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
修复 ExecutableElementComparator 中的参数比较错误并优化返回值处理
问题描述:
在
ExecutableElementComparator
类的compare
方法中,存在一个错误,原本应该比较e1
和e2
的参数,但错误地比较了e1
的参数两次。同时,方法的返回值处理存在冗余,进行了无必要的比较。解决方案:
修复了参数比较的错误,并优化了返回值处理,直接返回 value 而不是进行无必要的比较。
改动详情:
compare
方法中的参数比较错误。compare
方法的返回值处理,直接返回 value。