diff options
author | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 18:54:16 +0000 |
---|---|---|
committer | tkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7> | 2013-04-10 18:54:16 +0000 |
commit | 7b9387fd576cea39d5a430312536d3723fdfeeed (patch) | |
tree | f051b62fee1ec0c43dd69b64d6b112c9f73569f2 /pdf-over-signator/src/main/java/at/asit/pdfover | |
parent | ac2ce0739061c2a0f9303519ed7efd0eba4af925 (diff) | |
download | mocca-7b9387fd576cea39d5a430312536d3723fdfeeed.tar.gz mocca-7b9387fd576cea39d5a430312536d3723fdfeeed.tar.bz2 mocca-7b9387fd576cea39d5a430312536d3723fdfeeed.zip |
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
Diffstat (limited to 'pdf-over-signator/src/main/java/at/asit/pdfover')
7 files changed, 2 insertions, 47 deletions
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; @@ -28,11 +25,6 @@ import java.io.InputStream; public class ByteArrayDocumentSource implements DocumentSource { /** - * SFL4J Logger instance - **/ - private static final Logger log = LoggerFactory.getLogger(ByteArrayDocumentSource.class); - - /** * Document content */ protected byte[] data; 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,8 +16,6 @@ package at.asit.pdfover.signator; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * The dimensions of the visible signature block @@ -25,11 +23,6 @@ import org.slf4j.LoggerFactory; public class SignatureDimension { /** - * SFL4J Logger instance - **/ - private static Logger log = LoggerFactory.getLogger(SignatureDimension.class); - - /** * The visible Signature block width */ protected int 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,8 +16,6 @@ package at.asit.pdfover.signator; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * Base class for signature exceptions @@ -25,11 +23,6 @@ import org.slf4j.LoggerFactory; public class SignatureException extends Exception { /** - * SFL4J Logger instance - **/ - private static Logger log = LoggerFactory.getLogger(SignatureException.class); - - /** * */ private static final long serialVersionUID = 711578398780816710L; 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,8 +16,6 @@ package at.asit.pdfover.signator; //Imports -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; /** * The Signature Parameter @@ -25,11 +23,6 @@ import org.slf4j.LoggerFactory; public abstract class SignatureParameter { /** - * SFL4J Logger instance - **/ - private static Logger log = LoggerFactory.getLogger(SignatureParameter.class); - - /** * The Signature Position * @uml.property name="signaturePosition" * @uml.associationEnd 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 */ |