Skip to content

Commit 26fc774

Browse files
committed
fix: extract the true to be constants to improve readability
1 parent 818436d commit 26fc774

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/main/java/org/jabref/logic/journals/JournalAbbreviationLoader.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@
2626
public class JournalAbbreviationLoader {
2727

2828
private static final Logger LOGGER = LoggerFactory.getLogger(JournalAbbreviationLoader.class);
29+
private static final boolean USE_FJOURNAL_FIELD = true;
30+
private static final boolean BUILTIN_LIST_ENABLED_BY_DEFAULT = true;
2931

3032
public static Collection<Abbreviation> readAbbreviationsFromCsvFile(Path file) throws IOException {
3133
LOGGER.debug("Reading journal list from file {}", file);
@@ -132,9 +134,9 @@ private static LtwaRepository loadLtwaRepository() throws IOException {
132134
}
133135

134136
public static JournalAbbreviationRepository loadBuiltInRepository() {
135-
JournalAbbreviationPreferences prefs = new JournalAbbreviationPreferences(Collections.emptyList(), true);
137+
JournalAbbreviationPreferences prefs = new JournalAbbreviationPreferences(Collections.emptyList(), USE_FJOURNAL_FIELD);
136138

137-
prefs.setSourceEnabled(JournalAbbreviationRepository.BUILTIN_LIST_ID, true);
139+
prefs.setSourceEnabled(JournalAbbreviationRepository.BUILTIN_LIST_ID, BUILTIN_LIST_ENABLED_BY_DEFAULT);
138140
return loadRepository(prefs);
139141
}
140142
}

0 commit comments

Comments
 (0)