Skip to content

Commit

Permalink
Removes debug lines
Browse files Browse the repository at this point in the history
  • Loading branch information
u7676493 committed Oct 26, 2024
1 parent eb8722b commit 4484154
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@
import org.jabref.logic.importer.ImportFormatReader;
import org.jabref.logic.importer.ImportFormatReader.UnknownFormatImport;
import org.jabref.logic.importer.ParseException;
import org.jabref.logic.importer.ParserResult;
import org.jabref.logic.importer.fileformat.BibtexParser;
import org.jabref.logic.l10n.Localization;
import org.jabref.logic.util.BackgroundTask;
Expand Down Expand Up @@ -118,7 +119,7 @@ public List<ImportFilesResultItemViewModel> call() {

try {
if (FileUtil.isPDFFile(file)) {
var pdfImporterResult = contentImporter.importPDFContent(file, bibDatabaseContext, filePreferences);
ParserResult pdfImporterResult = contentImporter.importPDFContent(file, bibDatabaseContext, filePreferences);
List<BibEntry> pdfEntriesInFile = pdfImporterResult.getDatabase().getEntries();

if (pdfImporterResult.hasWarnings()) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,6 @@ public ParserResult importDatabase(Path filePath) throws IOException {
* (Otherwise no path modification happens).
*
* @param filePath The unrelativized {@code filePath}.
* @param context Everything related to the BIB file
* @param preferences Preferences for linked files
*/
public ParserResult importDatabase(Path filePath, BibDatabaseContext context, FilePreferences preferences) throws IOException {
Objects.requireNonNull(context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,10 +98,8 @@ void importRelativizesFilePath() throws Exception {
Path directory = Path.of(PdfMergeMetadataImporter.class.getResource("/pdfs/").toURI());
preferences.setWorkingDirectory(directory);

// Set up results
List<BibEntry> result = importer.importDatabase(file, database, preferences).getDatabase().getEntries();

// Set up expected value
BibEntry expected = new BibEntry(StandardEntryType.InProceedings)
.withField(StandardField.AUTHOR, "1 ")
.withField(StandardField.TITLE, "Hello World")
Expand Down

0 comments on commit 4484154

Please sign in to comment.