Skip to content

[ISSUE #674] Remove duplicate validate - #730

Merged
RongtongJin merged 2 commits into
apache:masterfrom
panzhi33:issue-674-2
Jun 16, 2025
Merged

RongtongJin merged 2 commits into
apache:masterfrom
panzhi33:issue-674-2

Conversation

@panzhi33

Copy link
Copy Markdown
Contributor

ExtRocketMQTemplateConfiguration 注解上面标注了Component注解,所以在spring容器初始化的时候,标注了ExtRocketMQTemplateConfiguration注解就会初始化一个对象,此时在这里检查是否存在重复的对象,就显得多此一举。

@RongtongJin RongtongJin changed the title [ISSUE #674] 修复validate [ISSUE #674] Remove duplicate validate Jun 16, 2025
@RongtongJin
RongtongJin merged commit d57e78c into apache:master Jun 16, 2025
@RockteMQ-AI

Copy link
Copy Markdown

Issue Evaluation

Category: enhancement | Status: Evaluated

This is a valid code cleanup suggestion. The @Component annotation on ExtRocketMQTemplateConfiguration already triggers Spring bean initialization during container startup, making the duplicate validation check redundant.

Feasibility: Feasible — straightforward removal of redundant validation logic.
Scope: ExtRocketMQTemplateConfiguration and its registration logic.
Compatibility: No breaking changes — this only removes a redundant runtime check.

The fix should:

  1. Remove the duplicate validation in the bean registration path
  2. Ensure the @Component-driven initialization path remains the sole mechanism

Automated evaluation by RockteMQ-AI

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.

3 participants