Fix the warnings properly

Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
TheKodeToad 2022-11-04 10:31:31 +00:00
parent 4abf3a20c6
commit 56d5035c63
3 changed files with 3 additions and 2 deletions

View File

@ -4,7 +4,7 @@ find_package(Java 1.7 REQUIRED COMPONENTS Development)
include(UseJava)
set(CMAKE_JAVA_JAR_ENTRY_POINT org.prismlauncher.EntryPoint)
set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7 -Xlint:deprecation -Xlint:unchecked)
set(CMAKE_JAVA_COMPILE_FLAGS -target 7 -source 7)
set(SRC
org/prismlauncher/EntryPoint.java

View File

@ -70,6 +70,7 @@ import java.util.logging.Level;
import java.util.logging.Logger;
public final class EntryPoint {
private static final Logger LOGGER = Logger.getLogger("EntryPoint");
private EntryPoint() {
@ -116,7 +117,6 @@ public final class EntryPoint {
String line;
while (preLaunchAction == PreLaunchAction.PROCEED) {
// noinspection NestedAssignment
if ((line = reader.readLine()) != null)
preLaunchAction = parseLine(line, parameters);
else

View File

@ -80,6 +80,7 @@ import java.util.logging.Logger;
public final class LegacyFrame extends JFrame {
private static final Logger LOGGER = Logger.getLogger("LegacyFrame");
private static final long serialVersionUID = 1L;
private final Launcher launcher;