From 0f8777952974daf03099bf48c6db1d91bd431bb2 Mon Sep 17 00:00:00 2001 From: Tobias Kellner Date: Sat, 15 Mar 2014 00:19:36 +0100 Subject: Remove unused imports and variables --- .../src/main/java/at/gv/egiz/pdfas/sigs/pades/PAdESSignerKeystore.java | 1 + .../java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'signature-standards') diff --git a/signature-standards/sigs-pades/src/main/java/at/gv/egiz/pdfas/sigs/pades/PAdESSignerKeystore.java b/signature-standards/sigs-pades/src/main/java/at/gv/egiz/pdfas/sigs/pades/PAdESSignerKeystore.java index 0a29c588..16a56c90 100644 --- a/signature-standards/sigs-pades/src/main/java/at/gv/egiz/pdfas/sigs/pades/PAdESSignerKeystore.java +++ b/signature-standards/sigs-pades/src/main/java/at/gv/egiz/pdfas/sigs/pades/PAdESSignerKeystore.java @@ -62,6 +62,7 @@ import at.gv.egiz.pdfas.lib.util.CertificateUtils; public class PAdESSignerKeystore implements IPlainSigner { + @SuppressWarnings("unused") private static final Logger logger = LoggerFactory .getLogger(PAdESSignerKeystore.class); diff --git a/signature-standards/sigs-pkcs7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java b/signature-standards/sigs-pkcs7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java index 85446486..7b45a45a 100644 --- a/signature-standards/sigs-pkcs7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java +++ b/signature-standards/sigs-pkcs7detached/src/main/java/at/gv/egiz/pdfas/sigs/pkcs7detached/PKCS7DetachedSigner.java @@ -101,8 +101,7 @@ public class PKCS7DetachedSigner implements IPlainSigner { si.addSignerInfo(signer1); InputStream dataIs = si.getInputStream(); byte[] buf = new byte[1024]; - int r; - while ((r = dataIs.read(buf)) > 0) + while ((dataIs.read(buf)) > 0) ; // skip data ContentInfo ci = new ContentInfo(si); logger.info("PKCS7 signature done."); -- cgit v1.2.3