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

Update citeproc-java to 2.1.0-SNAPSHOT and enable experimental pure-Java mode #5997

Closed
wants to merge 1 commit into from
Closed

Update citeproc-java to 2.1.0-SNAPSHOT and enable experimental pure-Java mode #5997

wants to merge 1 commit into from

Conversation

michel-kraemer
Copy link
Contributor

As discussed in #5622, this pull request updates citeproc-java to version 2.1.0-SNAPSHOT and enables the new experimental pure-Java mode. The entry previews are super fast now and seem to work well.

@JabRef JabRef deleted a comment from sonarcloud bot Feb 22, 2020
Copy link
Member

@koppor koppor left a comment

Choose a reason for hiding this comment

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

Thank you for the action taken. We need to test it.

@@ -66,7 +67,8 @@
private void initialize(String newStyle, CitationStyleOutputFormat newFormat) throws IOException {
if ((cslInstance == null) || !Objects.equals(newStyle, style)) {
// lang and forceLang are set to the default values of other CSL constructors
cslInstance = new CSL(dataProvider, new JabRefLocaleProvider(), newStyle, "en-US", false);
cslInstance = new CSL(dataProvider, new JabRefLocaleProvider(),
new DefaultAbbreviationProvider(), null, newStyle, "en-US", false, true);
Copy link
Member

Choose a reason for hiding this comment

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

Nitpick: Does CSL also provide a builder pattern (see https://github.com/HugoMatilla/Effective-JAVA-Summary#2-use-builders-when-faced-with-many-constructors). Passing "null" and "false" and "true" is wired ^^.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good catch! Actually, almost all classes from citeproc-java provide a Builder except for the most important one 😂I'll add this in the next version.

@Siedlerchr
Copy link
Member

Superseeded by #6010

@Siedlerchr Siedlerchr closed this Feb 27, 2020
@koppor
Copy link
Member

koppor commented Mar 17, 2020

Due to packaging for Debian, I would like to see things going here.

@koppor koppor reopened this Mar 17, 2020
@koppor
Copy link
Member

koppor commented Mar 17, 2020

We updated the lib in #6010

@koppor koppor closed this Mar 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants