Prevents instantiation of the Translator class

This commit is contained in:
Kristian Knarvik 2022-03-02 13:14:06 +01:00
parent ff362f8d1d
commit 0451734731
2 changed files with 6 additions and 2 deletions

View File

@ -33,8 +33,8 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version> <version>3.8.1</version>
<configuration> <configuration>
<source>${java.version}</source> <source>17</source>
<target>${java.version}</target> <target>17</target>
</configuration> </configuration>
</plugin> </plugin>
</plugins> </plugins>

View File

@ -21,6 +21,10 @@ public final class Translator {
private static Map<TranslatableMessage, String> translatedMessages; private static Map<TranslatableMessage, String> translatedMessages;
private static Map<TranslatableMessage, String> backupTranslatedMessages; private static Map<TranslatableMessage, String> backupTranslatedMessages;
private Translator() {
}
/** /**
* Loads the languages used by this translator * Loads the languages used by this translator
*/ */