Skip to content

Commit dca1e65

Browse files
committed
Run rewriter to fix pull request
1 parent 52f6a33 commit dca1e65

File tree

2 files changed

+5
-10
lines changed

2 files changed

+5
-10
lines changed

src/main/java/org/jabref/gui/entryeditor/citationrelationtab/CitationRelationsTab.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.jabref.gui.entryeditor.citationrelationtab;
22

3+
import java.io.IOException;
34
import java.util.Arrays;
45
import java.util.List;
56
import java.util.stream.Collectors;
@@ -249,7 +250,7 @@ private void styleFetchedListView(CheckListView<CitationRelationItem> listView)
249250
try {
250251
JabRefDesktop.openBrowser(url, preferencesService.getFilePreferences());
251252
} catch (
252-
java.io.IOException ex) {
253+
IOException ex) {
253254
dialogService.notify(Localization.lang("Unable to open link."));
254255
}
255256
});
@@ -423,8 +424,6 @@ private void showNodes(Node... nodes) {
423424
Arrays.stream(nodes).forEach(node -> node.setVisible(true));
424425
}
425426

426-
// Absolute-phase phenomena in photoionization with few-cycle laser pulses
427-
428427
/**
429428
* Function to import selected entries to the database. Also writes the entries to import to the CITING/CITED field
430429
*

src/main/java/org/jabref/gui/entryeditor/citationrelationtab/semanticscholar/SemanticScholarFetcher.java

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,9 @@ public SemanticScholarFetcher(ImporterPreferences importerPreferences) {
2626
}
2727

2828
public String getAPIUrl(String entry_point, BibEntry entry) {
29-
return new StringBuilder(SEMANTIC_SCHOLAR_API)
30-
.append("paper/")
31-
.append("DOI:").append(entry.getDOI().orElseThrow().getDOI())
32-
.append("/").append(entry_point)
33-
.append("?fields=")
34-
.append("title,authors,year,citationCount,referenceCount,externalIds,publicationTypes,abstract,url")
35-
.append("&limit=1000").toString();
29+
return SEMANTIC_SCHOLAR_API + "paper/" + "DOI:" + entry.getDOI().orElseThrow().getDOI() + "/" + entry_point
30+
+ "?fields=" + "title,authors,year,citationCount,referenceCount,externalIds,publicationTypes,abstract,url"
31+
+ "&limit=1000";
3632
}
3733

3834
@Override

0 commit comments

Comments
 (0)