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

Fixed wrong logger import #2618

Merged
merged 1 commit into from
Mar 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions src/main/java/org/jabref/logic/pdf/PdfAnnotationImporter.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@
import org.jabref.model.pdf.FileAnnotation;
import org.jabref.preferences.JabRefPreferences;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.pdfbox.cos.COSArray;
import org.apache.pdfbox.cos.COSFloat;
import org.apache.pdfbox.cos.COSName;
Expand All @@ -25,10 +27,10 @@
import org.apache.pdfbox.pdmodel.interactive.annotation.PDAnnotation;
import org.apache.pdfbox.util.PDFTextStripperByArea;

import static org.jabref.gui.importer.actions.OpenDatabaseAction.LOGGER;

public class PdfAnnotationImporter implements AnnotationImporter {

private static final Log LOGGER = LogFactory.getLog(PdfAnnotationImporter.class);

/**
* Imports the comments from a pdf specified by its path
Expand Down Expand Up @@ -139,9 +141,9 @@ public List<FileAnnotation> importAnnotations(final String path, final BibDataba
*
* @param path the absolute path to the pdf file
* @return a PDDocument representing the pdf file
* @throws IOException
* @throws IOException if the document cannot be read from path
*/
public PDDocument importPdfFile(final String path) throws IOException {
private PDDocument importPdfFile(final String path) throws IOException {

if(path.toLowerCase(Locale.ROOT).endsWith(".pdf")){
return PDDocument.load("/"+ path);
Expand Down