summaryrefslogtreecommitdiff
path: root/pdf-over-commons/src
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-02-18 13:32:09 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-02-18 13:32:09 +0100
commitb8295c8f0cf1131888f65a03b30307cd27a34c14 (patch)
tree50047909922e806d49fb1449285b584246b5b4a5 /pdf-over-commons/src
parentb8deac65b30f52f2bd502f04b985a95744c4e4e1 (diff)
downloadpdf-over-b8295c8f0cf1131888f65a03b30307cd27a34c14.tar.gz
pdf-over-b8295c8f0cf1131888f65a03b30307cd27a34c14.tar.bz2
pdf-over-b8295c8f0cf1131888f65a03b30307cd27a34c14.zip
refactor getDefaultSignatureBlockNote to not be static
Diffstat (limited to 'pdf-over-commons/src')
-rw-r--r--pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java
index 34014cc7..dc6d0960 100644
--- a/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java
+++ b/pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java
@@ -28,11 +28,11 @@ public enum Profile {
return SIGNATURBLOCK_SMALL.name();
}
- public static String getSignatureBlockNoteTextAccordingToProfile(Profile profile, Locale locale){
+ public String getDefaultSignatureBlockNote(Locale locale){
- if (profile.equals(Profile.SIGNATURBLOCK_SMALL)){
+ if (this == Profile.SIGNATURBLOCK_SMALL){
return Messages.getString("simple_config.Note_Default_Standard", locale);
- } else if (profile.equals(Profile.AMTSSIGNATURBLOCK)){
+ } else if (this == Profile.AMTSSIGNATURBLOCK) {
return Messages.getString("simple_config.Note_Default_OfficialSignature", locale);
} else {
return "";