Skip to content

[Improvement-18051][alert] Remove unused dead code in WeChatSender mkString#18100

Merged
SbloodyS merged 2 commits intoapache:devfrom
asadjan4611:feature-18051-alert-wechat-mkstring-cleanup
Mar 27, 2026
Merged

[Improvement-18051][alert] Remove unused dead code in WeChatSender mkString#18100
SbloodyS merged 2 commits intoapache:devfrom
asadjan4611:feature-18051-alert-wechat-mkstring-cleanup

Conversation

@asadjan4611
Copy link
Copy Markdown
Contributor

Purpose

Closes #18051

WeChatSender.mkString() was unused and contained dead-code logic:
StringUtils.isEmpty("|") is always false.

Per reviewer guidance, this is handled as dead code cleanup.

What Changed

  • Removed unused mkString(Iterable<String> list) from:
    • dolphinscheduler-alert/dolphinscheduler-alert-plugins/dolphinscheduler-alert-wechat/src/main/java/org/apache/dolphinscheduler/plugin/alert/wechat/WeChatSender.java

Why

  • No call sites exist for mkString() in the codebase.
  • Removing it eliminates misleading dead logic and improves maintainability.

Scope

  • Only one source file changed.
  • No unrelated code/files included.

@asadjan4611 asadjan4611 requested a review from SbloodyS as a code owner March 26, 2026 17:30
@asadjan4611 asadjan4611 changed the title [Improvement][alert] Remove unused WeChatSender mkString method (#18051) [Improvement][alert] Remove unused dead code in WeChatSender mkString (#18051) Mar 26, 2026
@SbloodyS SbloodyS changed the title [Improvement][alert] Remove unused dead code in WeChatSender mkString (#18051) [Improvement-18051][alert] Remove unused dead code in WeChatSender mkString Mar 27, 2026
@SbloodyS SbloodyS added the improvement make more easy to user or prompt friendly label Mar 27, 2026
@SbloodyS SbloodyS added this to the 3.4.2 milestone Mar 27, 2026
@sonarqubecloud
Copy link
Copy Markdown

Copy link
Copy Markdown
Member

@SbloodyS SbloodyS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SbloodyS SbloodyS merged commit b2ac905 into apache:dev Mar 27, 2026
122 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backend improvement make more easy to user or prompt friendly

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement][alert] WeChatSender.mkString() contains dead code — StringUtils.isEmpty("|") always returns false

2 participants