Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Preserve casing of field names for customize entry types #9993

Merged
merged 13 commits into from
Jun 12, 2023
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ void writeCustomizedTypesInAlphabeticalOrder() throws Exception {
database.insertEntry(entry);
bibtexContext.setMode(BibDatabaseMode.BIBTEX);

databaseWriter.savePartOfDatabase(bibtexContext, Arrays.asList(entry, otherEntry));
databaseWriter.savePartOfDatabase(bibtexContext, List.of(entry, otherEntry));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there was a reason to pass a modifiable list

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I double checked the code - no modification of the list inside. I added a JavaDoc comment.


assertEquals(
"@Customizedtype{," + OS.NEWLINE + "}" + OS.NEWLINE + OS.NEWLINE
Expand Down