Skip to content

Clone refactor default grouping event - #20

Merged
kamzyy786 merged 3 commits into
rilling:masterfrom
shibinkoshygit:clone-refactor-default-grouping-event
Apr 6, 2026
Merged

kamzyy786 merged 3 commits into
rilling:masterfrom
shibinkoshygit:clone-refactor-default-grouping-event

Conversation

@kamzyy786

Copy link
Copy Markdown
Collaborator

Jira URL

shibinkoshygit#7

Changes

Refactored codes from DefaultGroupingEventStrategyTest.java, DefaultParametrizedNotificationManagerTest.java and created a new file named NotificationTestEventFactory.java

Description

CPD detected duplicated helper code for creating mocked Event objects in DefaultGroupingEventStrategyTest and DefaultParametrizedNotificationManagerTest. I will extract the duplicated helper into a shared test utility class named NotificationTestEventFactory and update both tests to use it.

shibinkoshygit and others added 3 commits April 4, 2026 03:51
…iptService and MailStorageScriptService

DeprecatedMailStorageScriptService now extends MailStorageScriptService instead of
duplicating all shared methods (load, count, delete, deleteAll, normalizeFilterMap,
loadMessage, getConfiguration, resend, resendAsynchronously).

Only the differing ERROR_KEY and legacy resendAsynchronously(filterMap) method are
retained in the deprecated class.

Changed normalizeFilterMap() and loadMessage() visibility from private to protected
in MailStorageScriptService to support inheritance.

Detected by PMD CPD with --minimum-tokens 100.
…e-clone

Refactor: Remove 161-line code clone between DeprecatedMailStorageScr…
@kamzyy786
kamzyy786 merged commit 29d36c6 into rilling:master Apr 6, 2026
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.

2 participants