diff --git a/CHANGELOG.md b/CHANGELOG.md index 530016f..f3a99aa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -8,7 +8,7 @@ ### Changed - Using lists for :imports - Updated documentation of `split-pdf-at` in the README - +- Imports in `pdfboxing.common` comply with clj-kondo linting ## 0.1.15.1-SNAPSHOT diff --git a/src/pdfboxing/common.clj b/src/pdfboxing/common.clj index 0737584..aa2a153 100644 --- a/src/pdfboxing/common.clj +++ b/src/pdfboxing/common.clj @@ -1,9 +1,9 @@ (ns pdfboxing.common (:require [clojure.java.io :as io]) - (:import java.io.File - org.apache.pdfbox.pdmodel.PDDocument - org.apache.pdfbox.io.RandomAccessFile - org.apache.pdfbox.pdfparser.PDFParser)) + (:import (java.io File) + (org.apache.pdfbox.pdmodel PDDocument) + (org.apache.pdfbox.io RandomAccessFile) + (org.apache.pdfbox.pdfparser PDFParser))) (defn try-get-as-pdf "Try and get the pdf-file-or-path as a PDF. @@ -39,15 +39,15 @@ (obtain-document [source])) (extend-protocol PDFDocument - java.lang.String + String (obtain-document [source] (load-pdf source)) - java.io.File + File (obtain-document [source] (load-pdf source)) - org.apache.pdfbox.pdmodel.PDDocument + PDDocument (obtain-document [source] source))