3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00

Fix up Checkstyle styles from PR

Dieser Commit ist enthalten in:
Andrew Steinborn 2018-11-23 03:23:45 -05:00
Ursprung 38f460d56c
Commit 81d8c8374e

Datei anzeigen

@ -1,5 +1,7 @@
package com.velocitypowered.proxy; package com.velocitypowered.proxy;
import java.io.IOException;
import java.util.Arrays;
import joptsimple.OptionParser; import joptsimple.OptionParser;
import joptsimple.OptionSet; import joptsimple.OptionSet;
import joptsimple.OptionSpec; import joptsimple.OptionSpec;
@ -7,9 +9,6 @@ import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger; import org.apache.logging.log4j.Logger;
import org.checkerframework.checker.nullness.qual.Nullable; import org.checkerframework.checker.nullness.qual.Nullable;
import java.io.IOException;
import java.util.Arrays;
public final class ProxyOptions { public final class ProxyOptions {
private static final Logger logger = LogManager.getLogger(ProxyOptions.class); private static final Logger logger = LogManager.getLogger(ProxyOptions.class);
private final boolean help; private final boolean help;
@ -18,8 +17,11 @@ public final class ProxyOptions {
ProxyOptions(final String[] args) { ProxyOptions(final String[] args) {
final OptionParser parser = new OptionParser(); final OptionParser parser = new OptionParser();
final OptionSpec<Void> help = parser.acceptsAll(Arrays.asList("h", "help"), "Print help").forHelp(); final OptionSpec<Void> help = parser.acceptsAll(Arrays.asList("h", "help"), "Print help")
final OptionSpec<Integer> port = parser.acceptsAll(Arrays.asList("p", "port"), "Specify the bind port to be used. The configuration bind port will be ignored.").withRequiredArg().ofType(Integer.class); .forHelp();
final OptionSpec<Integer> port = parser.acceptsAll(Arrays.asList("p", "port"),
"Specify the bind port to be used. The configuration bind port will be ignored.")
.withRequiredArg().ofType(Integer.class);
final OptionSet set = parser.parse(args); final OptionSet set = parser.parse(args);
this.help = set.has(help); this.help = set.has(help);