summaryrefslogtreecommitdiff
path: root/pdf-over-signator/src/main
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:54:16 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-04-10 18:54:16 +0000
commit7b9387fd576cea39d5a430312536d3723fdfeeed (patch)
treef051b62fee1ec0c43dd69b64d6b112c9f73569f2 /pdf-over-signator/src/main
parentac2ce0739061c2a0f9303519ed7efd0eba4af925 (diff)
downloadpdf-over-7b9387fd576cea39d5a430312536d3723fdfeeed.tar.gz
pdf-over-7b9387fd576cea39d5a430312536d3723fdfeeed.tar.bz2
pdf-over-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')
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/ByteArrayDocumentSource.java8
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/PDFFileDocumentSource.java1
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignResultImpl.java10
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureDimension.java7
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureException.java7
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignatureParameter.java7
-rw-r--r--pdf-over-signator/src/main/java/at/asit/pdfover/signator/SignaturePosition.java9
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
*/