Skip to content

Commit f50883d

Browse files
committed
fix: address trag-bot comments
1 parent c15e554 commit f50883d

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/main/java/org/jabref/gui/journals/UndoableAbbreviator.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ public UndoableAbbreviator(JournalAbbreviationRepository journalAbbreviationRepo
2727

2828
/**
2929
* Abbreviate the journal name of the given entry.
30+
* This method respects the enabled/disabled state of journal abbreviation sources.
31+
* If a journal name comes from a disabled source, it will not be abbreviated.
3032
*
3133
* @param database The database the entry belongs to, or null if no database.
3234
* @param entry The entry to be treated.

src/main/java/org/jabref/gui/preferences/journals/AbbreviationsFileViewModel.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ public void readAbbreviations() throws IOException {
9090

9191
List<AbbreviationViewModel> viewModels = abbreviationsFromFile.stream()
9292
.map(AbbreviationViewModel::new)
93-
.collect(Collectors.toCollection(ArrayList::new));
93+
.toList();
9494
abbreviations.setAll(viewModels);
9595
} catch (NoSuchFileException e) {
9696
LOGGER.debug("Journal abbreviation list {} does not exist", filePath, e);

0 commit comments

Comments
 (0)