From 7b9387fd576cea39d5a430312536d3723fdfeeed Mon Sep 17 00:00:00 2001 From: tkellner Date: Wed, 10 Apr 2013 18:54:16 +0000 Subject: Code houskeeping Tagged some string constants as NON-NLS Changed visibility of some logger instances for inner classes Added qualifier for access of class variables Organised imports Removed unused loggers git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@30 174cde9d-5d70-4d2a-aa98-46368bc2aaf7 --- .../at/asit/pdfover/signer/pdfas/ByteArrayPDFASDataSource.java | 8 -------- .../src/main/java/at/asit/pdfover/signer/pdfas/PDFASHelper.java | 9 +-------- .../main/java/at/asit/pdfover/signer/pdfas/PDFASSLRequest.java | 1 - .../java/at/asit/pdfover/signer/pdfas/PDFASSignerFactory.java | 7 ------- .../java/at/asit/pdfover/signer/pdfas/PDFASSigningState.java | 7 ------- .../at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java | 9 +-------- 6 files changed, 2 insertions(+), 39 deletions(-) (limited to 'pdf-over-signer/pdf-over-sigpdfas/src/main/java/at') diff --git a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/ByteArrayPDFASDataSource.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/ByteArrayPDFASDataSource.java index 31e522db..5998055a 100644 --- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/ByteArrayPDFASDataSource.java +++ b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/ByteArrayPDFASDataSource.java @@ -19,9 +19,6 @@ package at.asit.pdfover.signer.pdfas; import java.io.ByteArrayInputStream; import java.io.InputStream; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import at.gv.egiz.pdfas.api.io.DataSource; /** @@ -29,11 +26,6 @@ import at.gv.egiz.pdfas.api.io.DataSource; */ public class ByteArrayPDFASDataSource implements DataSource { - /** - * SFL4J Logger instance - **/ - private static final Logger log = LoggerFactory.getLogger(ByteArrayPDFASDataSource.class); - /** * Internal data byte array */ diff --git a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASHelper.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASHelper.java index 80617989..cac338ba 100644 --- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASHelper.java +++ b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASHelper.java @@ -18,8 +18,6 @@ package at.asit.pdfover.signer.pdfas; //Imports import java.io.File; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import at.asit.pdfover.signator.SignatureException; import at.gv.egiz.pdfas.api.PdfAs; import at.gv.egiz.pdfas.api.exceptions.PdfAsException; @@ -29,12 +27,7 @@ import at.gv.egiz.pdfas.api.internal.PdfAsInternal; * Encapsulates PDF AS API Object to need just one initialization */ public class PDFASHelper { - - /** - * SFL4J Logger instance - **/ - private static final Logger log = LoggerFactory.getLogger(PDFASHelper.class); - + /** * PDF AS Object */ diff --git a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSLRequest.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSLRequest.java index 7267db85..493b3e9c 100644 --- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSLRequest.java +++ b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSLRequest.java @@ -20,7 +20,6 @@ import org.slf4j.Logger; import org.slf4j.LoggerFactory; import at.asit.pdfover.signator.ByteArrayDocumentSource; -import at.asit.pdfover.signator.DocumentSource; import at.asit.pdfover.signator.SLRequest; /** diff --git a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSignerFactory.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSignerFactory.java index 94c13412..68a29341 100644 --- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSignerFactory.java +++ b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSignerFactory.java @@ -16,8 +16,6 @@ package at.asit.pdfover.signer.pdfas; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import at.asit.pdfover.signator.Signer; import at.asit.pdfover.signator.SignerFactory; @@ -26,11 +24,6 @@ import at.asit.pdfover.signator.SignerFactory; */ public class PDFASSignerFactory extends SignerFactory { - /** - * SFL4J Logger instance - **/ - private static final Logger log = LoggerFactory.getLogger(PDFASSignerFactory.class); - @Override public Signer createSigner() { return new PDFASSigner(); diff --git a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigningState.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigningState.java index 72e24747..4849d26e 100644 --- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigningState.java +++ b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PDFASSigningState.java @@ -16,8 +16,6 @@ package at.asit.pdfover.signer.pdfas; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import at.asit.pdfover.signator.SLRequest; import at.asit.pdfover.signator.SLResponse; import at.asit.pdfover.signator.SigningState; @@ -29,11 +27,6 @@ import at.gv.egiz.pdfas.api.sign.SignatureDetailInformation; */ public class PDFASSigningState implements SigningState { - /** - * SFL4J Logger instance - **/ - private static final Logger log = LoggerFactory.getLogger(PDFASSigningState.class); - /** * The Signature Layer request */ diff --git a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java index 4825785b..9aec98f7 100644 --- a/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java +++ b/pdf-over-signer/pdf-over-sigpdfas/src/main/java/at/asit/pdfover/signer/pdfas/PdfAsSignatureParameter.java @@ -16,23 +16,16 @@ package at.asit.pdfover.signer.pdfas; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; import at.asit.pdfover.signator.SignatureDimension; import at.asit.pdfover.signator.SignatureParameter; -import at.gv.egiz.pdfas.api.sign.pos.SignaturePositioning; import at.gv.egiz.pdfas.api.io.DataSource; +import at.gv.egiz.pdfas.api.sign.pos.SignaturePositioning; /** * Implementation of SignatureParameter specific for PDF - AS Library */ public class PdfAsSignatureParameter extends SignatureParameter { - /** - * SFL4J Logger instance - **/ - private static final Logger log = LoggerFactory.getLogger(PdfAsSignatureParameter.class); - @Override public SignatureDimension getPlaceholderDimension() { // TODO Auto-generated method stub -- cgit v1.2.3