Skip to content

Use collections4 MapUtils in DonkeyMessageController - #540

Merged
tonygermano merged 1 commit into
OpenIntegrationEngine:mainfrom
NicoPiel:modernise/collections3-mapUtils
Oct 31, 2026
Merged

tonygermano merged 1 commit into
OpenIntegrationEngine:mainfrom
NicoPiel:modernise/collections3-mapUtils

Conversation

@NicoPiel

Copy link
Copy Markdown
Contributor

What

DonkeyMessageController imports MapUtils from commons-collections4 instead of commons-collections 3.

Why

It was the last direct use of commons-collections 3 in our sources. The jar itself stays on the launcher classpath, because commons-beanutils and commons-configuration2 need it.

Reviewer notes

  • MapUtils.isNotEmpty(Map) has the same semantics in both versions. collections4 is already on the server classpath, and the file already imports collections4's CollectionUtils.
  • Verified with ./gradlew :server:compileJava.

🤖 Generated with Claude Code

Signed-off-by: Nico Piel <nico.piel@hotmail.de>
@github-actions

Copy link
Copy Markdown

Test Results

130 files  ±0  130 suites  ±0   4m 0s ⏱️ +49s
789 tests ±0  789 ✅ ±0  0 💤 ±0  0 ❌ ±0 
915 runs  ±0  909 ✅ ±0  6 💤 ±0  0 ❌ ±0 

Results for commit c3ac2be. ± Comparison against base commit 4589238.

@gibson9583 gibson9583 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks safe to merge.

@tonygermano tonygermano left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It's only used once in the whole file to check if a map is not empty 😄

@tonygermano
tonygermano merged commit ddda421 into OpenIntegrationEngine:main Oct 31, 2026
11 checks passed
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.

4 participants