aboutsummaryrefslogtreecommitdiff
path: root/libraries/launcher/org/prismlauncher/EntryPoint.java
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/launcher/org/prismlauncher/EntryPoint.java')
-rw-r--r--libraries/launcher/org/prismlauncher/EntryPoint.java14
1 files changed, 5 insertions, 9 deletions
diff --git a/libraries/launcher/org/prismlauncher/EntryPoint.java b/libraries/launcher/org/prismlauncher/EntryPoint.java
index 444e665f..be180d6a 100644
--- a/libraries/launcher/org/prismlauncher/EntryPoint.java
+++ b/libraries/launcher/org/prismlauncher/EntryPoint.java
@@ -55,7 +55,6 @@
package org.prismlauncher;
-
import org.prismlauncher.exception.ParseException;
import org.prismlauncher.launcher.Launcher;
import org.prismlauncher.launcher.LauncherFactory;
@@ -69,7 +68,6 @@ import java.nio.charset.StandardCharsets;
import java.util.logging.Level;
import java.util.logging.Logger;
-
public final class EntryPoint {
private static final Logger LOGGER = Logger.getLogger("EntryPoint");
@@ -92,11 +90,11 @@ public final class EntryPoint {
throw new ParseException("Unexpected empty string! You should not pass empty newlines to stdin.");
- if ("launch".equalsIgnoreCase(input)) {
+ if ("launch".equalsIgnoreCase(input))
return PreLaunchAction.LAUNCH;
- } else if ("abort".equalsIgnoreCase(input)) {
+ else if ("abort".equalsIgnoreCase(input))
return PreLaunchAction.ABORT;
- } else {
+ else {
String[] pair = StringUtils.splitStringPair(' ', input);
if (pair == null)
throw new ParseException(String.format(
@@ -119,11 +117,10 @@ public final class EntryPoint {
while (preLaunchAction == PreLaunchAction.PROCEED) {
//noinspection NestedAssignment
- if ((line = reader.readLine()) != null) {
+ if ((line = reader.readLine()) != null)
preLaunchAction = parseLine(line, parameters);
- } else {
+ else
preLaunchAction = PreLaunchAction.ABORT;
- }
}
} catch (IOException | ParseException e) {
LOGGER.log(Level.SEVERE, "Launcher abort due to exception", e);
@@ -165,7 +162,6 @@ public final class EntryPoint {
ABORT
}
-
private enum ExitCode {
NORMAL(0),
ABORT(1),