Skip to content

Commit

Permalink
Update citeproc-java to 3.0.0-alpha.2 (JabRef#7911)
Browse files Browse the repository at this point in the history
  • Loading branch information
michel-kraemer authored Jul 15, 2021
1 parent ddce573 commit cb8fb55
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ dependencies {
implementation group: 'org.apache.logging.log4j', name: 'log4j-core', version: '3.0.0-SNAPSHOT'
annotationProcessor group: 'org.apache.logging.log4j', name: 'log4j-core', version: '3.0.0-SNAPSHOT'

implementation 'de.undercouch:citeproc-java:3.0.0-alpha.1'
implementation 'de.undercouch:citeproc-java:3.0.0-alpha.2'

implementation group: 'jakarta.activation', name: 'jakarta.activation-api', version: '1.2.1'
implementation group: 'jakarta.xml.bind', name: 'jakarta.xml.bind-api', version: '2.3.2'
Expand Down
2 changes: 1 addition & 1 deletion external-libraries.md
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ commons-codec:commons-codec:1.11
commons-logging:commons-logging:1.2
de.saxsys:mvvmfx-validation:1.9.0-SNAPSHOT
de.saxsys:mvvmfx:1.8.0
de.undercouch:citeproc-java:3.0.0-alpha.1
de.undercouch:citeproc-java:3.0.0-alpha.2
eu.lestard:doc-annotations:0.2
info.debatty:java-string-similarity:2.0.0
io.github.java-diff-utils:java-diff-utils:4.10
Expand Down
5 changes: 3 additions & 2 deletions src/main/java/org/jabref/logic/citationstyle/CSLAdapter.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import java.io.IOException;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import java.util.Objects;

Expand Down Expand Up @@ -124,10 +125,10 @@ public CSLItemData retrieveItem(String id) {
}

@Override
public String[] getIds() {
public Collection<String> getIds() {
return data.stream()
.map(entry -> entry.getCitationKey().orElse(""))
.toArray(String[]::new);
.toList();
}
}
}

0 comments on commit cb8fb55

Please sign in to comment.