Fix the warnings properly
Signed-off-by: TheKodeToad <TheKodeToad@proton.me>
This commit is contained in:
		@@ -4,7 +4,7 @@ find_package(Java 1.7 REQUIRED COMPONENTS Development)
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
include(UseJava)
 | 
					include(UseJava)
 | 
				
			||||||
set(CMAKE_JAVA_JAR_ENTRY_POINT org.prismlauncher.EntryPoint)
 | 
					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
 | 
					set(SRC
 | 
				
			||||||
    org/prismlauncher/EntryPoint.java
 | 
					    org/prismlauncher/EntryPoint.java
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -70,6 +70,7 @@ import java.util.logging.Level;
 | 
				
			|||||||
import java.util.logging.Logger;
 | 
					import java.util.logging.Logger;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
public final class EntryPoint {
 | 
					public final class EntryPoint {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static final Logger LOGGER = Logger.getLogger("EntryPoint");
 | 
					    private static final Logger LOGGER = Logger.getLogger("EntryPoint");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private EntryPoint() {
 | 
					    private EntryPoint() {
 | 
				
			||||||
@@ -116,7 +117,6 @@ public final class EntryPoint {
 | 
				
			|||||||
            String line;
 | 
					            String line;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
            while (preLaunchAction == PreLaunchAction.PROCEED) {
 | 
					            while (preLaunchAction == PreLaunchAction.PROCEED) {
 | 
				
			||||||
                // noinspection NestedAssignment
 | 
					 | 
				
			||||||
                if ((line = reader.readLine()) != null)
 | 
					                if ((line = reader.readLine()) != null)
 | 
				
			||||||
                    preLaunchAction = parseLine(line, parameters);
 | 
					                    preLaunchAction = parseLine(line, parameters);
 | 
				
			||||||
                else
 | 
					                else
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -80,6 +80,7 @@ import java.util.logging.Logger;
 | 
				
			|||||||
public final class LegacyFrame extends JFrame {
 | 
					public final class LegacyFrame extends JFrame {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private static final Logger LOGGER = Logger.getLogger("LegacyFrame");
 | 
					    private static final Logger LOGGER = Logger.getLogger("LegacyFrame");
 | 
				
			||||||
 | 
					    private static final long serialVersionUID = 1L;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    private final Launcher launcher;
 | 
					    private final Launcher launcher;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user