suppress warnings

This commit is contained in:
Marcel Haßlinger 2021-11-11 16:01:58 +01:00
parent 9137caba59
commit dfccf1f994

View File

@ -76,6 +76,7 @@ public class TranslationNode {
this.children.put(key, node); this.children.put(key, node);
} }
@SuppressWarnings("unchecked")
public @NotNull TranslationNode setChildren(@NotNull String key) { public @NotNull TranslationNode setChildren(@NotNull String key) {
try { try {
TranslationNode node = new TranslationNode(this.children.getClass().getDeclaredConstructor().newInstance()); TranslationNode node = new TranslationNode(this.children.getClass().getDeclaredConstructor().newInstance());