Code refactors

- Refactor LauncherFactory.LauncherProvider to LauncherFactory
- Refactor all launcher related components to launcher package
- some basic code cleanup
- Rename all, allSafe -> getList and first, firstSafe -> getString
- Rename Utils -> LegacyUtils

Signed-off-by: solonovamax <solonovamax@12oclockpoint.com>
This commit is contained in:
solonovamax
2022-10-27 19:52:09 -04:00
committed by TheKodeToad
parent 9062d28704
commit 107fa6b4f7
11 changed files with 227 additions and 171 deletions

View File

@ -53,6 +53,8 @@
package org.prismlauncher;
import org.prismlauncher.exception.ParseException;
import org.prismlauncher.launcher.Launcher;
import org.prismlauncher.launcher.LauncherFactory;
import org.prismlauncher.utils.Parameters;
import java.io.BufferedReader;
@ -81,7 +83,7 @@ public final class EntryPoint {
}
private Action parseLine(String inData) throws ParseException {
if (inData.length() == 0)
if (inData.isEmpty())
throw new ParseException("Unexpected empty string!");
String first = inData;