Skip to content

Update WordUtils from deprecated version - #48

Merged
tonygermano merged 1 commit into
OpenIntegrationEngine:mainfrom
rogin:update-wordutils
Dec 21, 2025
Merged

Update WordUtils from deprecated version#48
tonygermano merged 1 commit into
OpenIntegrationEngine:mainfrom
rogin:update-wordutils

Conversation

@rogin

Copy link
Copy Markdown
Contributor

Usage of WordUtils was showing as deprecated.

Code was using WordUtils from common-lang3 jar where it became deprecated at v3.6 (we're using v3.13). This change uses WordUtils from commons-text as recommended. As third party libs aren't shared across subprojects, I had to duplicate the commons-text jar under donkey/lib/commons/.

@jonbartelsjonbartels 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.

LGTM

@jonbartelsjonbartels added this to the Technical Preview 2 milestone May 6, 2025
@kpalang
kpalang requested review from a team, gibson9583, kayyagari, kpalang and tonygermano and removed request for a teamAugust 1, 2025 12:08

CopilotAI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR updates all usages of WordUtils from the deprecated org.apache.commons.lang3.text package (deprecated since commons-lang3 v3.6) to the recommended org.apache.commons.text package. The change is necessary as the project is using commons-lang3 v3.13.0, and the deprecated API should be replaced with the supported version.

  • Updates 20 Java files to import WordUtils from org.apache.commons.text instead of the deprecated org.apache.commons.lang3.text package
  • Ensures compatibility with the currently used commons-lang3 v3.13.0 library
  • Leverages existing commons-text-1.10.0.jar already present in all affected modules (server, donkey, and client)

Reviewed changes

Copilot reviewed 20 out of 21 changed files in this pull request and generated no comments.

Show a summary per file
FileDescription
server/src/com/mirth/connect/util/CodeTemplateUtil.javaUpdates WordUtils import for code template utility methods
server/src/com/mirth/connect/userutil/ContentType.javaUpdates WordUtils import for content type enum string formatting
server/src/com/mirth/connect/server/userutil/DeployedState.javaUpdates WordUtils import for deployed state enum formatting
server/src/com/mirth/connect/plugins/rulebuilder/RuleBuilderRule.javaUpdates WordUtils import for rule builder functionality
server/src/com/mirth/connect/plugins/destinationsetfilter/DestinationSetFilterStep.javaUpdates WordUtils import for destination filter step
server/src/com/mirth/connect/model/codetemplates/ContextType.javaUpdates WordUtils import for context type enum
server/src/com/mirth/connect/model/codetemplates/CodeTemplate.javaUpdates WordUtils import for code template model
server/src/com/mirth/connect/model/codetemplates/BasicCodeTemplateProperties.javaUpdates WordUtils import for basic template properties
server/src/com/mirth/connect/model/DatabaseTask.javaUpdates WordUtils import for database task model
server/src/com/mirth/connect/connectors/http/HttpStaticResource.javaUpdates WordUtils import for HTTP static resource
server/src/com/mirth/connect/connectors/doc/PageSize.javaUpdates WordUtils import for page size enum
donkey/src/main/java/com/mirth/connect/donkey/model/message/ContentType.javaUpdates WordUtils import for donkey content type enum
donkey/src/main/java/com/mirth/connect/donkey/model/event/MessageEventType.javaUpdates WordUtils import for message event type enum
donkey/src/main/java/com/mirth/connect/donkey/model/event/ErrorEventType.javaUpdates WordUtils import for error event type enum
donkey/src/main/java/com/mirth/connect/donkey/model/event/DeployedStateEventType.javaUpdates WordUtils import for deployed state event type enum
donkey/src/main/java/com/mirth/connect/donkey/model/event/ConnectionStatusEventType.javaUpdates WordUtils import for connection status event type enum
donkey/src/main/java/com/mirth/connect/donkey/model/channel/DeployedState.javaUpdates WordUtils import for donkey deployed state enum
client/src/com/mirth/connect/client/ui/editors/filter/IteratorRulePanel.javaUpdates WordUtils import for iterator rule panel UI component
client/src/com/mirth/connect/client/ui/editors/BaseEditorPane.javaUpdates WordUtils import for base editor pane UI component
client/src/com/mirth/connect/client/ui/dependencies/ChannelDependenciesWarningDialog.javaUpdates WordUtils import for channel dependencies warning dialog

The changes are well-executed and consistent across all files. The PR successfully migrates from deprecated API to the supported commons-text package, with the necessary library already present in all affected modules.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This PR updates all usages of WordUtils from the deprecated
org.apache.commons.lang3.text package (deprecated since commons-lang3
v3.6) to the recommended org.apache.commons.text package. The change is
necessary as the project is using commons-lang3 v3.13.0, and the
deprecated API should be replaced with the supported version.
- Updates 20 Java files to import WordUtils from org.apache.commons.text
instead of the deprecated org.apache.commons.lang3.text package
- Ensures compatibility with the currently used commons-lang3 v3.13.0
library
- Leverages existing commons-text-1.10.0.jar already present in the
server and client sub-projects and adds the same library to the donkey
sub-project
Signed-off-by: Richard Ogin <rogin@users.noreply.github.com>
@tonygermano
tonygermano merged commit 33db9bb into OpenIntegrationEngine:mainDec 21, 2025
2 checks passed
Sign up for freeto 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.

5 participants

@rogin@kpalang@jonbartels@tonygermano