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 --- .../java/at/asit/pdfover/signator/ByteArrayDocumentSource.java | 8 -------- .../java/at/asit/pdfover/signator/PDFFileDocumentSource.java | 1 - .../src/main/java/at/asit/pdfover/signator/SignResultImpl.java | 10 +--------- .../main/java/at/asit/pdfover/signator/SignatureDimension.java | 7 ------- .../main/java/at/asit/pdfover/signator/SignatureException.java | 7 ------- .../main/java/at/asit/pdfover/signator/SignatureParameter.java | 7 ------- .../main/java/at/asit/pdfover/signator/SignaturePosition.java | 9 +-------- 7 files changed, 2 insertions(+), 47 deletions(-) (limited to 'pdf-over-signator/src/main/java/at') diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java index add8ca4b..8ff79374 100644 --- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java +++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java @@ -16,9 +16,6 @@ package at.asit.pdfover.signator; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import java.io.ByteArrayInputStream; import java.io.InputStream; @@ -27,11 +24,6 @@ import java.io.InputStream; */ public class ByteArrayDocumentSource implements DocumentSource { - /** - * SFL4J Logger instance - **/ - private static final Logger log = LoggerFactory.getLogger(ByteArrayDocumentSource.class); - /** * Document content */ diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/PDFFileDocumentSource.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/PDFFileDocumentSource.java index 04fab03a..6fdbfe29 100644 --- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/PDFFileDocumentSource.java +++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/PDFFileDocumentSource.java @@ -18,7 +18,6 @@ package at.asit.pdfover.signator; // Imports import java.io.File; import java.io.FileInputStream; -import java.io.FileNotFoundException; import java.io.IOException; import java.io.InputStream; diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResultImpl.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResultImpl.java index a8f8b63a..3fb15bba 100644 --- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResultImpl.java +++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResultImpl.java @@ -15,22 +15,14 @@ */ package at.asit.pdfover.signator; -import java.security.cert.X509Certificate; - //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; +import java.security.cert.X509Certificate; /** * The result of a signature operation */ public class SignResultImpl implements SignResult { - /** - * SFL4J Logger instance - **/ - private static Logger log = LoggerFactory.getLogger(Signator.class); - private SignaturePosition position; private DocumentSource source; private X509Certificate certificate; diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureDimension.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureDimension.java index d6d68d44..3b5c2969 100644 --- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureDimension.java +++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureDimension.java @@ -16,19 +16,12 @@ package at.asit.pdfover.signator; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * The dimensions of the visible signature block */ public class SignatureDimension { - /** - * SFL4J Logger instance - **/ - private static Logger log = LoggerFactory.getLogger(SignatureDimension.class); - /** * The visible Signature block width */ diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureException.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureException.java index 80a8ed5c..8feaee56 100644 --- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureException.java +++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureException.java @@ -16,19 +16,12 @@ package at.asit.pdfover.signator; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * Base class for signature exceptions */ public class SignatureException extends Exception { - /** - * SFL4J Logger instance - **/ - private static Logger log = LoggerFactory.getLogger(SignatureException.class); - /** * */ diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java index 1edb997b..f3ba2a34 100644 --- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java +++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java @@ -16,19 +16,12 @@ package at.asit.pdfover.signator; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * The Signature Parameter */ public abstract class SignatureParameter { - /** - * SFL4J Logger instance - **/ - private static Logger log = LoggerFactory.getLogger(SignatureParameter.class); - /** * The Signature Position * @uml.property name="signaturePosition" diff --git a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignaturePosition.java b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignaturePosition.java index 16aae296..edcb263d 100644 --- a/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignaturePosition.java +++ b/pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignaturePosition.java @@ -16,19 +16,12 @@ package at.asit.pdfover.signator; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * Represents the position of a visible signature block */ public class SignaturePosition { - - /** - * SFL4J Logger instance - **/ - private static Logger log = LoggerFactory.getLogger(SignaturePosition.class); - + /** * The x value of the position */ -- cgit v1.2.3