From 0451734731ea28f2c33ee26ac3911a7c7e05c53f Mon Sep 17 00:00:00 2001 From: EpicKnarvik97 Date: Wed, 2 Mar 2022 13:14:06 +0100 Subject: [PATCH] Prevents instantiation of the Translator class --- pom.xml | 4 ++-- .../net/knarcraft/permissionsigns/formatting/Translator.java | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index 9bdec8e..60c881b 100644 --- a/pom.xml +++ b/pom.xml @@ -33,8 +33,8 @@ maven-compiler-plugin 3.8.1 - ${java.version} - ${java.version} + 17 + 17 diff --git a/src/main/java/net/knarcraft/permissionsigns/formatting/Translator.java b/src/main/java/net/knarcraft/permissionsigns/formatting/Translator.java index 6a907d6..1b09dbb 100644 --- a/src/main/java/net/knarcraft/permissionsigns/formatting/Translator.java +++ b/src/main/java/net/knarcraft/permissionsigns/formatting/Translator.java @@ -21,6 +21,10 @@ public final class Translator { private static Map translatedMessages; private static Map backupTranslatedMessages; + private Translator() { + + } + /** * Loads the languages used by this translator */