From 7d52e0622dd9acae8c5b200f564cde8e9e0bca28 Mon Sep 17 00:00:00 2001 From: Radoslaw Postolowicz Date: Mon, 1 Jul 2024 12:05:43 +0200 Subject: [PATCH] Suppress warnings in generated java source files (#365) --- jte/src/main/java/gg/jte/compiler/java/JavaCodeGenerator.java | 1 + 1 file changed, 1 insertion(+) diff --git a/jte/src/main/java/gg/jte/compiler/java/JavaCodeGenerator.java b/jte/src/main/java/gg/jte/compiler/java/JavaCodeGenerator.java index e747f064..ff351d51 100644 --- a/jte/src/main/java/gg/jte/compiler/java/JavaCodeGenerator.java +++ b/jte/src/main/java/gg/jte/compiler/java/JavaCodeGenerator.java @@ -73,6 +73,7 @@ public void onParam(String parameter) { } private void writeClass() { + javaCode.append("@SuppressWarnings(\"unchecked\")\n"); javaCode.append("public final class ").append(classInfo.className).append(" {\n"); fieldsMarker = javaCode.getMarkerOfCurrentPosition(); javaCode.append("\tpublic static void render(");