Skip to content

Extract nested factory implementations into top-level classes #12014

In review

Description

@shamim-emon

Description

As part of the naming convention cleanup for the Konsist prefix rule, some factory implementations need to be refactored to avoid nested Factory classes implementing top-level factory interfaces.

This issue covers two cases:

  1. Nested Factory classes implementing a top-level factory interface

Move the factory implementation out of the enclosing class into its own top-level class.

Example:
LoadPreferencesSideEffect.Factory : MessageListStateSideEffectHandlerFactory

  1. Fragment factories sharing the same qualified name as their interface

Extract the nested Factory implementation into a separate top-level class with a distinct name.

Example:
SetupArchiveFolderDialogFragment.Factory : SetupArchiveFolderDialogFragmentFactory

Scope

  • Identify nested Factory classes implementing top-level factory interfaces.
  • Extract these implementations into dedicated top-level factory classes.
  • Ensure factory class names are distinct from their corresponding interfaces.
  • Update dependency injection bindings and references where necessary.
  • Update or add relevant unit tests to verify the refactoring.

Out of Scope

Other naming convention violations and refactorings covered by the broader prefix rule cleanup are not part of this issue.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions