Skip to content

Commit

Permalink
Refactor FetchAndMergeEntry class for improved functionality and read…
Browse files Browse the repository at this point in the history
…ability

- Rename SUPPORTED_FIELDS to SUPPORTED_IDENTIFIER_FIELDS for clarity
- Remove unnecessary hasAnySupportedField method and associated checks
- Refactor duplicate code into utility methods (getFields, getJointFields)
- Improve error handling with more specific exception messages
- Remove edited boolean flag in favor of NamedCompound#hasEdits()
- Enhance use of Optional, Stream, and method references
- Reduce method parameters for better maintainability
- Improve user notifications with entry citation keys
- Restructure methods to separate concerns more effectively

Minor modifications to MergeWithFetchedEntryAction.java to align with
the new version of FetchAndMergeEntry.java
  • Loading branch information
KUMOAWAI committed Oct 20, 2024
1 parent f8267ac commit 74f2473
Show file tree
Hide file tree
Showing 2 changed files with 164 additions and 155 deletions.
Loading

0 comments on commit 74f2473

Please sign in to comment.