From b8295c8f0cf1131888f65a03b30307cd27a34c14 Mon Sep 17 00:00:00 2001 From: Jakob Heher Date: Fri, 18 Feb 2022 13:32:09 +0100 Subject: refactor getDefaultSignatureBlockNote to not be static --- pdf-over-commons/src/main/java/at/asit/pdfover/commons/Profile.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pdf-over-commons/src') 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 ""; -- cgit v1.2.3