Skip to content

Refactor formatter cleanup classes#14285

Merged
koppor merged 5 commits into
JabRef:mainfrom
EricW123:issue-14280
Dec 22, 2025
Merged

Refactor formatter cleanup classes#14285
koppor merged 5 commits into
JabRef:mainfrom
EricW123:issue-14280

Conversation

@EricW123

Copy link
Copy Markdown
Contributor

Refactor Formatter and FieldFormatterCleanups in package org.jabref.logic.cleanup.

  • Move Formatter to logic.formatter package, as base class of other formatters.
  • Rename FieldFormatterCleanups to FieldFormatterCleanupActions.
  • Abstract parsing logic to a new class named FieldFormatterCleanupParser.

Closes #14280

Steps to test

Mandatory checks

Refactor Formatter and FieldFormatterCleanups in package
org.jabref.logic.cleanup.

- Move Formatter to logic.formatter package, as base class of
  other formatters.
- Rename FieldFormatterCleanups to FieldFormatterCleanupActions.
- Abstract parsing logic to a new class named
  FieldFormatterCleanupParser.
@Siedlerchr Siedlerchr changed the title Refactor formatter cleanup classes (Issue #14280) Refactor formatter cleanup classes Nov 11, 2025
@koppor

koppor commented Nov 11, 2025

Copy link
Copy Markdown
Member

@EricW123 Thank you for your contribution. Please fix the the issues discovered by the CI so that the code is proapred for human review.

@koppor koppor added the status: changes-required Pull requests that are not yet complete label Nov 11, 2025

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

@EricW123 Thank you for bringing this up. Since this PR tackles two problems, it gets hard to review. I split out the Formatter refactoring at #14385. - For the other thing, more work might be needed.

…-14280

# Conflicts:
#	jabgui/src/main/java/org/jabref/gui/cleanup/CleanupPresetPanel.java
#	jabgui/src/main/java/org/jabref/gui/commonfxcontrols/FieldFormatterCleanupsPanelViewModel.java
@github-actions github-actions Bot removed the status: changes-required Pull requests that are not yet complete label Nov 23, 2025
@calixtus

Copy link
Copy Markdown
Member

@EricW123 I took the liberty to merge upstream and to fix merge conflicts. Should be easier to for you, if you want to pick this PR up again.

@koppor koppor added the status: changes-required Pull requests that are not yet complete label Nov 28, 2025
@koppor

koppor commented Nov 29, 2025

Copy link
Copy Markdown
Member

@EricW123 Tests are still failing. Any interest to continue here or should we free this issue for another contributor?

@calixtus calixtus self-assigned this Dec 2, 2025
@calixtus calixtus added component: cleanup-ops dev: code-quality Issues related to code or architecture decisions labels Dec 12, 2025
@JabRef JabRef deleted a comment from jabref-machine Dec 22, 2025
@JabRef JabRef deleted a comment from jabref-machine Dec 22, 2025
@calixtus calixtus requested a review from koppor December 22, 2025 09:14
@koppor koppor removed the status: changes-required Pull requests that are not yet complete label Dec 22, 2025
@koppor koppor added this pull request to the merge queue Dec 22, 2025
Merged via the queue into JabRef:main with commit 23525e9 Dec 22, 2025
74 of 75 checks passed
tsantalis added a commit to tsantalis/RefactoringMiner that referenced this pull request Dec 22, 2025
JabRef/jabref#14285
Extract And Move Method	public serializeActions(actionList List<FieldFormatterCleanup>, newLineSeparator String) : String extracted from public getMetaDataString(actionList List<FieldFormatterCleanup>, newLineSeparator String) : String in class org.jabref.logic.cleanup.FieldFormatterCleanups & moved to class org.jabref.logic.cleanup.FieldFormatterCleanupMapper
maorethians pushed a commit to maorethians/RefactoringMiner that referenced this pull request Jun 8, 2026
JabRef/jabref#14285
Extract And Move Method	public serializeActions(actionList List<FieldFormatterCleanup>, newLineSeparator String) : String extracted from public getMetaDataString(actionList List<FieldFormatterCleanup>, newLineSeparator String) : String in class org.jabref.logic.cleanup.FieldFormatterCleanups & moved to class org.jabref.logic.cleanup.FieldFormatterCleanupMapper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component: cleanup-ops dev: code-quality Issues related to code or architecture decisions 📌 Pinned

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Refactor Formatter and FieldFormatterCleanups for clearer structure and simpler class responsibilities

3 participants